RowVirtualization, CellStyleSelector, RadComboBox error

6 posts, 0 answers
  1. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 10 Dec 2010 Link to this post

    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.

  2. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 13 Dec 2010 Link to this post

    Hello,

    any word about this issue? It's a really high priority topic as it's appearing in our production environment. Thanks
  3. DevCraft banner
  4. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 16 Dec 2010 Link to this post

    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
  5. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 16 Dec 2010 Link to this post

    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
  6. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 20 Dec 2010 Link to this post

    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
  7. Daní
    Daní avatar
    303 posts
    Member since:
    Feb 2008

    Posted 20 Dec 2010 Link to this post

    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
Back to Top
DevCraft banner