Content is lost when the panes are moved

3 posts, 0 answers
  1. venureddy
    venureddy avatar
    2 posts
    Member since:
    Aug 2011

    Posted 23 Aug 2011 Link to this post

    I have a page with three panes .Barchart pane ,Pie chart pane and gridview pane.When the page gets loaded first timeeverything is fine,the panes are at expected locations and the dats is also as expected.
    But,when i move any pane (without docking), the content of the data is lost.For ex : the bar chart displays  "No data series".
    But when i dock the pane to any side of the screen(Left,right,top,bottom) ,everything becomes fine.

    Could plese help?

  2. Miroslav Nedyalkov
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 26 Aug 2011 Link to this post

    Hi Venureddy,

     The floating panes in the Docking control are not part of the Docking control visual tree so they don't inherit its DataContext. To ensure that you bound the controls to the right data you should bind pane's DataContext property to the Docking control DataContext.

    Hope this helps.

    Miroslav Nedyalkov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top