Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8397845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:53:27+00:00 2026-06-09T20:53:27+00:00

hello this is my code and I hope you can help me because telerik

  • 0

hello this is my code and I hope you can help me because telerik support forum sucks

code:

  function SearchClick() {

            var search = $get("<%= ApplicationSearchResult.ClientID %>").value;
            var treeView = $find("<%= MainTree.ClientID %>");
            var nodes = treeView.get_allNodes();
            var NextNode = document.getElementById("<%=NextNode.ClientID %>");
            NextNode.style.display = "block";
            for (var i = 0; i < nodes.length; i++) {
                var node = nodes[i];
                if (node.get_text() == search) {
                    node.select();
                    expandAllAncestors(node);
                    return;
                }
            }

         }

Markup:

<telerik:RadTreeView ID="MainTree" runat="server" CssClass="NewClass" OnNodeClick="NodeClick" 
    Skin="Office2010Silver">
<Nodes>
<telerik:RadTreeNode Selected="true" Text="Hello"  Value="0">
    <Nodes>
        <telerik:RadTreeNode runat="server" Text="Hi" Value="1">
        </telerik:RadTreeNode>
    </Nodes>
    </telerik:RadTreeNode>
<telerik:RadTreeNode  Text="Hellooooooooooooo" Value="2">
    <Nodes>
        <telerik:RadTreeNode runat="server" Text="helloooo" Value="3">
        </telerik:RadTreeNode>
    </Nodes>
    </telerik:RadTreeNode>

    <Nodes>
    <telerik:RadTreeNode  Text="Hi" Value="7"></telerik:RadTreeNode>
    <telerik:RadTreeNode  Text="Hiiiiiiiiiiiiiii" Value="8"></telerik:RadTreeNode>
    <telerik:RadTreeNode  Text="Hello" Value="9"></telerik:RadTreeNode> 
    </Nodes>
    </telerik:RadTreeView>
    <telerik:RadTextBox ID="ApplicationSearchResult" runat="server"></telerik:RadTextBox>
    <asp:Image src="Magnifier.png" ToolTip="search" onclick="SearchClick();"  style="cursor:pointer;" runat="server" height="17" width="17" ID="Search" />

my problem is when node.select() is reached it automatically execute the NodeClick server event how can i prevent this from happening and just when the user click on a node the NodeClick is executed

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T20:53:28+00:00Added an answer on June 9, 2026 at 8:53 pm

    Change node.select(); to node.set_selected(true)

    Maybe telerik support really sucks but did you tried to read documentation?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I get a weird error in this code: function validateForm(aform) { var s=;
Hello all I hope someone can help me resolve this issue.. I'm curious as
Hello I hope someone can explain this problem. This is the code: class Memory{
Hello this is code snippet which i get from Jquery Ajax based search I
Hello all I hope someone can help me I am working on a simple
Hello I have a problem with UIScrollView and I hope someone can help me.
Hello I'm stuck on a simple Java exercise, I hope someone can help. Sorry
Hello all I hope you can help me understand why getopt used an int
Hello I have this code class Triplets { public: int nVal1; int nVal2; NodeT
hello I have this code that use to sort a datatable. Dim sortingIndex As

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.