The title is a bit wierd but couldn't think of a decent one as I experienced more than one issue (I think)
- I have a Listbox and RadPanelBar in view
- RadPanelBar has RadPanelBarItems
- I have RadMaskedTextBox within a Grid in one of the RadPanelBarItems
- Grid's datacontext is set to SelectedItem
- The textbox (child of Grid) is bound to one of the properties of the SelectedItem property in Viewmodel.
- Listbox's SelectedItem is also bound to this property in viewmodel.
Problem:
- When the UI loads for the first time, the binding works fine
- When I regenerate the list in the listbox and change the selecteditem, the textbox retains the original value
- But when I set the datacontext of Grid to the SelectedItem, the textbox value changes and displays accordingly to the selecteditem in the listbox.
- It works fine.
Could you explain why this happens?
Basically I want to set the Datacontext of the RadPanelBar so that I do not have to set the datacontext within each RadPanelBarItem.
6 Answers, 1 is accepted
Could you please send us an isolated project showing this issue, its very hard to advice you certainly without viewing your code (especially XAML and ViewModels)? We changed this ticket's type to general feedback so that you are now able to attach files.
Thank you for your cooperation in advance.
Petar Mladenov
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 >>
We replied to your "Bug Report" ticket. We are looking forward to your sample. This way we could investigate this deeper and be better able to assist you.
All the best,Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
I have similar problem. Do you have some solution for this?
Best regards,
Jacek Jura
Could you please elaborate more on your exact scenario? It would be best if you can open a new support thread with an isolated sample attached. This way we would be better able to get into your scenario quickly and advice you.Thank you in advance.
Regards,Petar Mladenov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>