This is a migrated thread and some comments may be shown as answers.

Is it possible of using Splitter in this way?

5 Answers 63 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
roger
Top achievements
Rank 1
roger asked on 20 Jan 2014, 10:18 PM
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

5 Answers, 1 is accepted

Sort by
0
roger
Top achievements
Rank 1
answered on 21 Jan 2014, 03:37 PM
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

0
Vessy
Telerik team
answered on 22 Jan 2014, 09:51 AM
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.
0
roger
Top achievements
Rank 1
answered on 22 Jan 2014, 07:15 PM
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
0
Vessy
Telerik team
answered on 23 Jan 2014, 03:22 PM
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.
0
roger
Top achievements
Rank 1
answered on 24 Jan 2014, 05:12 PM
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
Tags
Splitter
Asked by
roger
Top achievements
Rank 1
Answers by
roger
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or