CellEditing Possible Bug

2 posts, 0 answers
  1. Ron
    Ron avatar
    26 posts
    Member since:
    Oct 2010

    Posted 01 Apr 2013 Link to this post


    I have a Status field in the GanttView Grid, the status is binded to a Status Description that is coming back from a View, there is dropdown that is set to the StatusId for the SelectedValue, the ItemsSource is a StatusList that is populated in the code behind and the DisplayMemberPath and SelectedValuePath are set to the correct fields from the StatusList, all this is set in the CellEditTemplate.

    The problem is when I double click the cell, the dropdown value is never set to the value of the StatusId, is always blank, if I pick another value from the dropdown, the StatusID field is updated and this is correct, but, like I said it before, it doesn't set value when is first displayed, unless I set the DisplayMemberPath and SelectedValuePath to the Text fields and those match the value on the cell (meaning the description field), then it works properly, but the problem with this is that the selected value may not be a unique one and I can't know which value the user selected.

    Is there anyway to get this to work? Is there any way to set the dropdown selected value on the code in the Editing event?

    thanks in advance for your help
  2. George
    George avatar
    1332 posts

    Posted 04 Apr 2013 Link to this post

    Hello Ron,

    We tried to reproduce the problem in a sample project, but to no avail. Could you please take a look at the attached project and let me know I missed something. 

    I am glad to assist you further.

    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft R3 2016 release webinar banner
Back to Top