Making Rad child PanelItem visible from client side.

4 posts, 0 answers
  1. Anagha Kulkarni
    Anagha Kulkarni avatar
    3 posts
    Member since:
    Apr 2010

    Posted 23 Apr 2010 Link to this post

    Following is one of the radpanelitems on a panelbar. It has a button on this button’s click (client Side) I want to make  radpanel CheckingAddbucAdd visible. How do I do this?


    <telerik:RadPanelItem value="CheckingAdd" runat="server" Text="" Expanded="true" style="display:none;">


                                                          <telerik:RadPanelItem value="CheckingAddbtn" runat="server" Text="" Expanded="true">


                                                                      <br />

                                                                      <asp:ImageButton ID="btnAddAccountChecking" runat="server"  />



                                                          <telerik:RadPanelItem value="CheckingAddbucAdd" Text="AddCheckingAccount" runat="server"   Visible="false">


                                                                      <UC1:CheckingAcct ID="CheckingAcct1" runat="server"   AcctID="0" />





  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Apr 2010 Link to this post

    Hello Anagha,

    You could get reference to corresponding panelItem and set the visibility using set_visible() method which accepts Boolean value.

    function setVisibility() 
       var panelBar = $find("<%= RadPanelBar1.ClientID %>"); 
       var item = panelBar.findItemByValue("CheckingAddbucAdd"); 

  3. DevCraft R3 2016 release webinar banner
  4. A K
    A K avatar
    49 posts
    Member since:
    Apr 2010

    Posted 26 Apr 2010 Link to this post

    I am trying to do opposite, design time it's vibible ="false". And At run time on button click I want to set it's visibility="true". If visible is false at design time. it it not rendered and on client side since it doesn't find that panelItem I get object null error.
  5. T. Tsonev
    T. Tsonev avatar
    2760 posts

    Posted 27 Apr 2010 Link to this post


    As you've noticed, the item is not rendered at all when you set Visible to "false" and as a consequence it can't be shown on the client - it doesn't exist there. You can create it entirely on the client-side, please see this example:

    I hope this helps.

    Tsvetomir Tsonev
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top