I'm facing an strange error. I'm providing a CellStyleSelector to a TreeListViewColumn. This selector provides the cell with value editor depending on the underlying data type, this value editor may be a TextBox, a CheckBox, a NumericUpDown or a RadComboBox. The problem appears with the RadComboBox (wich has the ClearValueButtonVisibility property set to true) control when the underlying view model object has already a value. In this scenario, the control reads the initial value correctly and show the value properly, but when user scrolls down the treelistview and the cell disappears (is recycled) it sets the value to null. This doesn't happen if user selects some item, when recycling the cell, then no value is set.
5 Answers, 1 is accepted
any word about this issue? It's a really high priority topic as it's appearing in our production environment. Thanks
I have tried to reproduce your scenario, but I was not able to. I am sending you the sample project I used for testing the case. Please let me know if there is some misunderstandings according to your requirements. Feel free to change the project in the way you want so that it suits your needs.
Maya
the Telerik team
Thanks for your interest. I will open a support ticket to provide you an example as closed to my real scenario as possible. About your example, a pair of things. I'm not using CellEditorTemplateSelector, just CellTemplateSelector and the matter appears when users scrolls down and row virtualization is enabled, in this scenario, when cell containing a RadComboBox in its template disappears from screen (is recycled) it sets the underlying value to true.
Best regards,
Daní Pinart
Basically, you mentioned in the first post that you are providing a CellStyleSelector for defining different editors based on the type of the item. Consequently, I decided that the closest scenario to this description is the usage of CellEditTemplateSelector. Nevertheless, it would be great if you send me a sample application (via support ticket), so that there is no such misunderstanding and I am able to see your exact requirements.
If it is much easier for you, you may use the project I send, change it in the way you want and send it back.
Maya
the Telerik team
Thanks again for your interest. I'm trying to build a sample isolating this issue, but I cannot reproduce the error easyly. This error also appears in GridView. Sending you the entire solution is not an option, it's becoming really huge and you would need acces to my customer VPN. I'll retry to reproduce this error in a sample.
Best regards,
Daní Pinart