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

Retain edited GridTemplateColumn value when changing page

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ragil
Top achievements
Rank 1
Ragil asked on 16 Apr 2020, 10:00 AM

Hello Admin,

 

i have radgrid, with GridTemplateColumn of textbox (amount) item inside. is there any way when i've changed textbox value in page 1 and then moving onto next page 2, then back again to page 1, value of previously changed still remain, and not overwrite it with data from radgrid.rebind ?

i've tried looking in this grid-persist-checkbox-state-in-gridtemplatecolumn, but this link can not be accessed anymore.

 

Regards,

 

Ragil

 

 

1 Answer, 1 is accepted

Sort by
0
Attila Antal
Telerik team
answered on 21 Apr 2020, 08:30 AM

Hi Ragil,

Yes, it is possible by implementing a custom solution that will save the entered values as they change. You can choose to save the values on client by assigning them to hidden fields, or save them directly in the database when the control makes a PostBack. Either way, the values need to be saved manually.

Below I will share several articles that can help you achieve this:

The page you were trying to reach is located at the following URL: Persisting CheckBox Control State in GridTemplateColumn on Rebind. I have also fixed the old URL to redirect the visitor accordingly, see grid-persist-checkbox-state-in-gridtemplatecolumn

 

You may also check out the approach presented in the following article: Update all, individual or selected rows using RadGrid with InPlace edit mode

 

Kind regards,
Attila Antal
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Grid
Asked by
Ragil
Top achievements
Rank 1
Answers by
Attila Antal
Telerik team
Share this question
or