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

CellEditing Possible Bug

1 Answer 31 Views
GanttView
This is a migrated thread and some comments may be shown as answers.
Ron
Top achievements
Rank 1
Ron asked on 01 Apr 2013, 09:46 PM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 04 Apr 2013, 01:45 PM
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.

Greetings,
George
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GanttView
Asked by
Ron
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or