This is a migrated thread and some comments may be shown as answers.

RowVirtualization, CellStyleSelector, RadComboBox error

5 Answers 48 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Daní
Top achievements
Rank 1
Daní asked on 10 Dec 2010, 01:13 PM
Hello,

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

Sort by
0
Daní
Top achievements
Rank 1
answered on 13 Dec 2010, 05:39 PM
Hello,

any word about this issue? It's a really high priority topic as it's appearing in our production environment. Thanks
0
Maya
Telerik team
answered on 16 Dec 2010, 11:02 AM
Hi Daní,

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.
 

All the best,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Daní
Top achievements
Rank 1
answered on 16 Dec 2010, 03:19 PM
Hi Maya,

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
0
Maya
Telerik team
answered on 20 Dec 2010, 10:58 AM
Hello Daní,

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.
    

Regards,
Maya
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Daní
Top achievements
Rank 1
answered on 20 Dec 2010, 11:04 AM
Hi Maya,

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
Tags
TreeListView
Asked by
Daní
Top achievements
Rank 1
Answers by
Daní
Top achievements
Rank 1
Maya
Telerik team
Share this question
or