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

Expecting Double click for grid values

2 Answers 55 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Siva
Top achievements
Rank 1
Siva asked on 12 May 2015, 12:35 PM

Hi Team,

 

I am using Telerik grid. I am able edit data in the telerik grid cells.If i want to save the edited data, I am facing an issue.

Example: First cell i entered data and press Save button it is not taking edited cell value.If i move to the second cell then only first cell data was saveing.

Can you please check and help me here.

 

Please find attcahed attcahed xaml file.

 

Thanks,
Siva

2 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 May 2015, 01:36 PM
Hello Siva,

In order to have the data saved instantly, you should define CellEditTemplate for the column, specifying UpdateSourceTrigger=PropertyChanged for the Binding. 

For example:

<telerik:GridViewDataColumn DataMemberBinding="{Binding GroupPrefix}" Header="Update on PropertyChanged" Width="60">
    <telerik:GridViewDataColumn.CellEditTemplate>
        <DataTemplate>
            <TextBox Text="{Binding Value, UpdateSourceTrigger=PropertyChanged}"/>
        </DataTemplate>
    </telerik:GridViewDataColumn.CellEditTemplate>
</telerik:GridViewDataColumn>


That way the value of the bound property will be updated once the user edits it.

How does this approach work for you?

Regards,
Dimitrina
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Siva
Top achievements
Rank 1
answered on 09 Jun 2015, 08:05 AM
Hi Thanks for the responce. It is working fine.
Tags
GridView
Asked by
Siva
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Siva
Top achievements
Rank 1
Share this question
or