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

Loading contents using nested RadSplitters and RadPanes

5 Answers 86 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Felix Ruben Melendez Batres
Top achievements
Rank 1
Felix Ruben Melendez Batres asked on 18 Mar 2011, 05:48 AM
Hi there,

I was wondering if anyone could help me with the following:

I'm developing a web interface that consist of Nested RadSplitters and RadPanes. I've attached a picture that depicts what I'd like the web interface look like. Practically it consists of 3 panes: a Left Pane (that contains a treeview) and a Right Pane divided by a vertical RadSplitter. The Right Pane is divided into 2 RadPanes and therefore divided by an horizontal RadSplitter. On the upper part, I'd like to load some content such as a RadGrid, and on the lower part,  I'd like to load data (details or just related data) as a result of clicking on a row on the RadGrid (on the upper part).

And by the way, right now I'm also facing the problem that when I click on a node (menu option), in order to load the RadGrid (upper RadPane), it gets loaded inside the RadPane but also a new Internet Explorer window with such RadGrid as well (another copy), see the attached image as well.

Thanks in advance for any help,

Felix

5 Answers, 1 is accepted

Sort by
0
Niko
Telerik team
answered on 18 Mar 2011, 01:10 PM
Hello Felix,

Could you, please, provide a stripped-down sample project so that I can investigate the problem you are experiencing? Opening another tab sounds like Target="_blank", but still I will need some code samples. Otherwise I can only be guessing.

Greetings,
Niko
the Telerik team
0
Felix Ruben Melendez Batres
Top achievements
Rank 1
answered on 18 Mar 2011, 02:49 PM
Niko,

Thanks for your response. I'm working on a stripped-down sample project (as you state) to upload asap.

On the other hand, when you state:
Opening another tab sounds like Target="_blank"...
Where should I look in order to prevent this from occurring? in the RadTreeView (does it have some property?) or in the RadPanes?

Again, when I'm done with the stripped-down sample project I'll upload it.

Thanks again for your time,

Felix

Niko,

As I'm ready with the stripped-down sample project.  I'm having trouble with attaching the file because this page doesn't let me attach .rar. files. How can I send it to you?

Felix
0
Niko
Telerik team
answered on 19 Mar 2011, 01:56 PM
Hi Felix,

Unfortunately you cannot attach archives to forum threads. I advise you to open a new support ticket with your project attached there.

Still I will try to help you as much as possible based on the description you have provided so far.
Please, find attached a sample page with a custom implementation of a RadTreeView with RadGrid inside a RadSplitter. The RadTreeView updates the RadGrid through Ajax requests. In the RadGrid the selecting of rows is enabled through ClientSettings-Selecting-AllowRowSelect="true". In the event handler for ClientSettings-ClientEvents-OnRowSelected you should implement the logic to update the content of the data view pane.
As far as the Target="_blank" question is concerned - this is a property of a RadTreeView Node. Please, check the definitions of the nodes and see if there are any usages of Target. If there are, please, check the behavior of the RadTreeView if you remove them.

Hope I have been of help.

All the best,
Niko
the Telerik team
0
Felix Ruben Melendez Batres
Top achievements
Rank 1
answered on 20 Mar 2011, 02:28 AM
Niko,

Thanks for your support. I tried to run the attached project you sent me. I had to change the datasource since I don't know why the compiler sent me an error due to the dynamic keyword. Back to your project, well... this is somewhat what I like. The only difference is that the RadGrid it is loaded declaratively. In my case I'd like it to load it programmatically. See... the problem lies when I want to click on a row or let's say I want to paginate the RadGrid, it goes away! In your sample, it does not go away since it is loaded declaratively. I want it load it as a web usercontrol. The fact is that if you click on a menu (RadTreeView), it should load a web usercontrol on the upper pane. Then when clicking on the upper RadGrid a details (another web usercontrol) must be loaded on the lower pane. Could this be possible?

Have some available code to share on this matter?

Felix
0
Niko
Telerik team
answered on 21 Mar 2011, 04:55 PM
Hi Felix,

When using web user controls your best option is trying to persist the data, i.e. using Session variables and the HttpContext object. Please, find attached rewritten implementation of the previous project with the grid and data view in external user controls. Please, note the use of Session variables for persisting the DataSource for the RadGrid and the use of HttpContext.Items for transferring the selected items from the Grid user control to the DataView user control.

Hope this helps.

All the best,
Niko
the Telerik team
Tags
Splitter
Asked by
Felix Ruben Melendez Batres
Top achievements
Rank 1
Answers by
Niko
Telerik team
Felix Ruben Melendez Batres
Top achievements
Rank 1
Share this question
or