I have a custom RadPane control which inherits from RadPane.
I use the MVVM design pattern.
I programmatically add Panes to a RadPaneGroup contained in a DocumentHost.
I add one of my custom RadPanes. Everything is fine. Then I add another one - still fine.
I switch back to the first one and all content is gone - for example textboxes are empty, DropDownLists are in default selected state etc.
I switch back to the second one - same story.
In debug mode I can see that the custom RadPanes still have their respective ViewModel as DataContext and these ViewModel also have their properties correct but by switching between panes, these properties don't seem to bind to their respective controls (Textboxes, DropDownLists ...) anymore or the controls don't update their values correctly.
I use the MVVM design pattern.
I programmatically add Panes to a RadPaneGroup contained in a DocumentHost.
I add one of my custom RadPanes. Everything is fine. Then I add another one - still fine.
I switch back to the first one and all content is gone - for example textboxes are empty, DropDownLists are in default selected state etc.
I switch back to the second one - same story.
In debug mode I can see that the custom RadPanes still have their respective ViewModel as DataContext and these ViewModel also have their properties correct but by switching between panes, these properties don't seem to bind to their respective controls (Textboxes, DropDownLists ...) anymore or the controls don't update their values correctly.
8 Answers, 1 is accepted
0
Hello Claus Gierstorfer,
This is caused by a problem in RadTabControl that is fixed. Please download the Latest Internal Build from your account.
I'm sorry for the inconvenience caused.
Regards,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
This is caused by a problem in RadTabControl that is fixed. Please download the Latest Internal Build from your account.
I'm sorry for the inconvenience caused.
Regards,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
ClausDC
Top achievements
Rank 1
Iron
answered on 22 Mar 2010, 03:29 PM
0
Hello ClausDC,
RadPaneGroup inherits from RadTabControl. That is why I reported that the problem is in RadTabControl.
Could you send us sample project demonstrating this problem?
Sincerely yours,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
RadPaneGroup inherits from RadTabControl. That is why I reported that the problem is in RadTabControl.
Could you send us sample project demonstrating this problem?
Sincerely yours,
Hristo
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Jason Moore
Top achievements
Rank 1
answered on 24 May 2010, 08:02 AM
I am experiencing exactly the same issues as the OP, currently using RadControls_for_WPF_2010_1_0422_DEV_hotfix. If the OP cannot come up with a simple reproducible example, I'll give it a shot. As the OP said, the DataContext for each RadDocumentPane is fine, but the view itself seems to display incorrectly.
Would this be fixed in the Latest Internal Build (RadControls_for_WPF_2010_1_0521_Dev)?
Edited:
Confirmed that I'm experiencing the same issues with 0521. I'll put together a simple example, but the workaround for me at the moment is to only have one tab window open at a time (which defeats the purpose so it'd be good to have it fixed).
Cheers!
0
Wagner
Top achievements
Rank 1
answered on 24 May 2010, 07:53 PM
I'm having the same problem. I'll try to isolate the issue and post a sample project.
Thanks,
Wagner
Edited:
I had to open a ticket as I cannot post my solution here.
Thanks,
Wagner
Thanks,
Wagner
Edited:
I had to open a ticket as I cannot post my solution here.
Thanks,
Wagner
0
Hello Everybody,
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
You could use the following work-around:
Instead of setting DataContext of the whole pane you could set DataContext of its content like this:
(this.Content as FrameworkElement).DataContext = _vm;
Or to bind the root panel of the pane in XAML to the DataContext of the pane like the following:
<Grid DataContext="{Binding}">
Hope this information is helpful.
Miroslav Nedyalkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Wagner
Top achievements
Rank 1
answered on 27 May 2010, 07:17 AM
The workaround did work for me.
Thanks a lot!
Wagner
Thanks a lot!
Wagner
0
Jason Moore
Top achievements
Rank 1
answered on 31 May 2010, 05:35 AM
Worked for me too.
Cheers!