Linkbutton disapear after radtreeview node clicked

2 posts, 0 answers
  1. Kev
    Kev avatar
    3 posts
    Member since:
    Jan 2016

    Posted 26 Jan 2016 Link to this post


    I have a little problem with Radtreeview and a hide linkbutton. When i click on a node with the event "OnClientNodeClicked", the js execute a function that show the linkbutton, but after couple of second the linkbutton disapear or return to his start states (hide).

    Have you a solution to this problem.

    Thanks a lot


     My client code:


    <asp:LinkButton runat="server" ID="lkbAdd"  OnClientClick="OnClientClickAdd()"><img src="Images/Add-24.png" alt="Add" title="Add node"/></asp:LinkButton>


    <telerik:RadTreeView ID="RadTreeView2" runat="server" Width="400px" Height="400px" OnNodeClick="RadTreeView2_NodeClick" OnNodeDataBound="RadTreeView2_NodeDataBound" BorderColor="Black" BorderWidth="1" OnClientNodeClicked="OnClientNodeClicked">
                   <telerik:RadTreeNodeBinding Expanded="True"></telerik:RadTreeNodeBinding>



     function OnClientNodeClicked(sender, eventArgs)
                var listItem = document.getElementById('<%= lkbAdd.ClientID %>');

                var node = eventArgs.get_node();
                var nodeValue = node.get_value();

                if(nodeValue > 9990000000)
           = "inline-block";
           = "none";




    My Server Code:

     protected void Page_Load(object sender, EventArgs e)
            if (!Page.IsPostBack)

                lkbAdd.Style.Add("display", "none");

  2. Eyup
    Eyup avatar
    3620 posts

    Posted 29 Jan 2016 Link to this post

    Hello Kev,

    Please try achieving this using the hide() method provided by jQuery and let me know about the result:

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top