Splitter - Changing Pane Content

3 posts, 0 answers
  1. Shawn
    Shawn avatar
    43 posts
    Member since:
    Dec 2011

    Posted 09 Jan 2013 Link to this post

    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. Dimo
    Admin
    Dimo avatar
    8331 posts

    Posted 09 Jan 2013 Link to this post

    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!
  3. Kendo UI is VS 2017 Ready
  4. Shawn
    Shawn avatar
    43 posts
    Member since:
    Dec 2011

    Posted 09 Jan 2013 Link to this post

    OK I got it figured out and many thanks.
Back to Top