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

Splitter - Changing Pane Content

2 Answers 129 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Shawn
Top achievements
Rank 2
Shawn asked on 09 Jan 2013, 07:18 AM
I have a 2 pane splitter.

I am using the left pane for a menu using a panel bar.

I am using the right pane as content relevant to the selected panel bar item.

The example I have attached attempts to change the grid associated with the right pane based on the panel bar selection.

I am having a problem changing this content - the data in the grid seems to change but not the definition of the grid.

How do I change the pane content to show the proper grid.

Thanks,

Shawn

2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 09 Jan 2013, 01:27 PM
Hello Shawn,

The Grid columns definition can be set only once - during widget initialization. If the Grid later on must show another data with different columns, you should destroy the Grid, remove it from the DOM, add new <div> to the DOM and create a new Grid from it with new column definitions.

I strongly recommend you to avoid using Splitter pane elements to initialize another widgets. Please add a child element to the #right-pane and use that for the Grid.

Greetings,
Dimo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Shawn
Top achievements
Rank 2
answered on 09 Jan 2013, 05:15 PM
OK I got it figured out and many thanks.
Tags
Splitter
Asked by
Shawn
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Shawn
Top achievements
Rank 2
Share this question
or