Default Pane to Open

4 posts, 0 answers
  1. Adam Thompson
    Adam Thompson avatar
    4 posts
    Member since:
    Nov 2009

    Posted 19 Nov 2009 Link to this post


    Hi,

    I have a question about the following example.

    http://demos.telerik.com/aspnet-ajax/splitter/examples/default/defaultcs.aspx

    Is it possable to default the contacts pane to be open on pageload? If so, how do I do it. I have tried a couple of things and can't get it to work.

    thanks,

    -Adam
  2. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 20 Nov 2009 Link to this post

    Hi Adam,

    Yes, it is possible to set default expanded pane ID by using the ExpandedPaneId property of the RadSlidingZone and set it to the ClientID of the desired RadSlidingPane.


    Kind regards,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jason
    Jason avatar
    19 posts
    Member since:
    Mar 2009

    Posted 29 Jan 2010 Link to this post

    I had the same problem and couldn't find any examples on how to it with c#.  I am working with master pages so this was key.  The code below worked for me.

    RadSlidingPane

     

    toolboxpane = (RadSlidingPane)Page.Master.FindControl("ToolBox");

     

     

     

    RadSlidingZone

     

    toolboxzone = (RadSlidingZone)Page.Master.FindControl("LeftSide");

     

     

    toolboxzone.DockedPaneId =

    "ToolBox";

    Adisa

     

  5. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 01 Feb 2010 Link to this post

    Hello Adisa,

    As far as I see, you are using a MasterPage and the MasterPage is an INaming Container which means that it changes the actual IDs of the controls. In order to get the desired result you should use the ClientID property as shown below:

    toolboxzone.DockedPaneId = toolboxpane.ClientID


    All the best,
    Svetlina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top