Is it possible of using Splitter in this way?

6 posts, 0 answers
  1. roger
    roger avatar
    26 posts
    Member since:
    Jun 2012

    Posted 20 Jan 2014 Link to this post

    Hi friends,

    I have a special case in which I have a RadSplitter in my master page and inside the splitter, I have to put a ContentPlaceHolder NOT a RadPane directly. So in my content page which using my master page, I will fill out the ContentPlaceHolder  with my user control which contains a RadPane and some simple .net controls inside the RadPane. I think this should work but actually after the page loading, the HTML Table rendered by the RadSplitter is empty (no JavaScript error occurred).

    can someone help me with this? or having a workaround?
    very appreciate!

    thanks,
    Roger
  2. roger
    roger avatar
    26 posts
    Member since:
    Jun 2012

    Posted 21 Jan 2014 Link to this post

    Hi Support Team,

    This is kind of urgent according to our project, so please help us. if you need code example, i can provide it.

    thanks in advance,
    Roger

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 22 Jan 2014 Link to this post

    Hi Roger,

    By design the only direct children of a RadSplitter could be only RadPanes and RadSplitBars, so I am afraid the answer to your question is "No".

    In order to achieve the desired scenario, you will need to put the place holder inside the RadPane, instead of placing it directly in the Splitter. For example:
    <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" Width="100%" Orientation="Horizontal">
        <telerik:RadPane ID="RadPane1" runat="server" Height="200px"></telerik:RadPane>
        <telerik:RadPane ID="RadPane2" runat="server">
            <asp:ContentPlaceHolder ID="body" runat="server" />
        </telerik:RadPane>
    </telerik:RadSplitter>

    Come to that, could you provide more details on why do you need to place the RadPane inside the content page so we could possibly suggest you another approach to achieve the desired functionality?

    Regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  5. roger
    roger avatar
    26 posts
    Member since:
    Jun 2012

    Posted 22 Jan 2014 Link to this post

    Hi Veselina,

    Thanks for your response and code example!

    The purpose we want to achieve here is that the RadSplitter with the ContentPlaceHolder in our master page actually is a place holder (i.e. side bar) in which we can dynamically add RadPanes (each RadPane contains different widget) into the RadSplitter and the number of RadPanes will be decided at run-time based on some business logics, so we can't just pre-define how many RadPanes should be inside the RadSplitter in our master page.

    Let me know if it's unclear to you.

    thanks for help,
    Roger
  6. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 23 Jan 2014 Link to this post

    Hi Roger,

    Thank you for the explanation.

    In such case, I would suggest you to implement a nested Splitters scenario, first adding a nested Splitter content page. In this case you will be able to add RadPanes to this additional Splitter from your contain page, keeping the proper configuration of the control.

    Please, just note that each Splitter have to contain at least two RadPanes in order to behave properly.

    Kind regards,
    Veselina Raykova
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  7. roger
    roger avatar
    26 posts
    Member since:
    Jun 2012

    Posted 24 Jan 2014 Link to this post

    Hi Veselina,

    Thank you very much for your suggestion.

    We will discuss with your suggested solution to see it's durable in our project to always have at least two RadPanes in each Splitter.
    Very appreciate your support!

    thanks,
    Roger
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017