Expecting Double click for grid values

3 posts, 0 answers
  1. Siva
    Siva avatar
    5 posts
    Member since:
    Apr 2015

    Posted 12 May 2015 Link to this post

    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. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 May 2015 Link to this post

    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
  3. Siva
    Siva avatar
    5 posts
    Member since:
    Apr 2015

    Posted 09 Jun 2015 in reply to Dimitrina Link to this post

    Hi Thanks for the responce. It is working fine.
Back to Top