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

Clear changes should not effect the inplace edit row in Rad Grid.

1 Answer 34 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Sandeep
Top achievements
Rank 1
Sandeep asked on 23 Nov 2011, 10:21 PM
Hello,

    I have a RadGrid in my application. Whenever I click Clear Changes which is not associated with radGrid and if a row in the RadGrid is in inplace edit mode, the values should not be effected  i.e, the values should remain same. Find below for the code.

protected void btnClearChanges_Click(object sender, EventArgs e)
        {

            _presenter.LoadDefaultValues();
            
            rgvInternetIdentifiers.Rebind();

            btnContinue.Enabled = true;
           
        }

The above code is loading default values and inplace edit row is changing to default values. Can any one please put some insight?

Thanks,

Sandeep

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 25 Nov 2011, 10:50 AM
Hello Sandeep,

This happens because you rebind the grid inside this button's event. If you want to keep the values inside the row, do not call Rebind() for the grid or write logic to save them somewhere before rebinding and then repopulate the edit controls.

All the best,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
Sandeep
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or