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

CellEditTemplate does not change the binding

3 Answers 115 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ronald
Top achievements
Rank 1
ronald asked on 24 Jan 2011, 11:16 PM
<telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName, UpdateSourceTrigger=Explicit}" Header="FirstName"/>

The above code will correctly send the updated value to the source binding. However the below code will always send an empty string to the source binding. any ideas?

<telerik:GridViewDataColumn DataMemberBinding="{Binding FirstName, UpdateSourceTrigger=Explicit}" Header="FirstName">
<telerik:GridViewDataColumn.CellEditTemplate>
<DataTemplate>
<TextBox Text="{Binding FirstName}" />
</DataTemplate>
</telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 27 Jan 2011, 03:45 PM
Hi ronald,

I have tried to reproduce the issue you reported, but I was not able to. I am sending you the sample project I used for testing it. Let me know in case of any discrepancies according to your settings.

 
Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Vega
Top achievements
Rank 1
answered on 18 Mar 2013, 04:05 PM
Hi, I have been having the same problem. I have downloaded the example project, however It does not solve the problem.

The sample project has two columns called 'Name'. The first has a cell edit template, the second does not. If you edit the first column with the edit template enter a new value & hit enter, it reverts back to its original value. If you edit the second 'Name' column then the value is saved.

How can I get a column with a cell edit template to save the value back to the property?
0
Maya
Telerik team
answered on 19 Mar 2013, 08:03 AM
Hello Ray,

I am still not able to reproduce such issue. Please check out this small video illustrating my attempt to get the same behavior. Do I need to do something else ? What is the version of your binaries ? 

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
ronald
Top achievements
Rank 1
Answers by
Maya
Telerik team
Vega
Top achievements
Rank 1
Share this question
or