Hi,
I'm currently setting my ItemsSource for my RadGrid to be of type QueryableCollectionView
I also set the selecteditem to be of type IDTO.
When I use an QueryableCollectionView, by default, SelectedItem is set to the first item in the collection. If I were to use an ObservableCollection, it's completely fine, SelectedItem is empty until an item is selected. May I ask how do I set it so the QueryableCollectionView doesn't set the value by default.
4 Answers, 1 is accepted
Such requirement can be easily achieved by setting the IsSynchronizedWithCurrentItem property of RadGridView to False. Can you please give it a try?
In addition, you can review the CurrentItem vs SelectedItem topic.
All the best,
Stefan X1
Telerik by Progress
Hi,
I'm also using QueryableCollectionView in RadGridView... During the clear (of all items) throw an exception 'Attempted to divide by zero.'
How I can resolve this issue?
In attached the stacktrace and my source code.
Hello Simone,
Thank you for the provided pictures.
I tested the described scenario on my end, however I was not able to reproduce the exception. That is why I am attaching the sample project, which I used for testing purposes. May I ask you to check it out and see how it differs from the setup on your end?
Should you need any further assistance, can you modify the sample project in order to reproduce the exception and send it back in a new support ticket (since project files cannot be attached to forum posts)? If you find it more convenient, you can also send over a sample project of you own. Additionally, you can specify which version of the Telerik dlls you are using. This will hopefully allow me to reproduce the same behavior on my end and investigate it.
Thank you for advance for any help you can provide.
Regards,
Vladimir Stoyanov
Progress Telerik
You can find the project attached to this reply.
Regards,
Vladimir Stoyanov
Progress Telerik