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

Blank row in a Grid

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Bilal
Top achievements
Rank 1
Bilal asked on 26 Jan 2012, 11:13 AM
Hi,

I'm initializing the grid with a blank row using GridTemplateColumn and an empty datatable.
My scenario is that the user can fill this empty row and another empty row will be automatically added upon the user fill the 1st row.

However, when another empty row is added, the previous data in the 1st row became empty.
I want to add another row and keep the data in the previous row.

Nothing is saved in database until the user hits on "Process" button.

Please do let me know how I can achieve this scenario.

Thanks,
Bilal

1 Answer, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 27 Jan 2012, 11:09 AM
Hi Bilal,

 If you do not save the data in the database it will not be persisted on postback so in order to preserve it you should store it temporary in Session or ViewState. Then fill back the values in the row after the page is reloaded.

Greetings,
Marin
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
Bilal
Top achievements
Rank 1
Answers by
Marin
Telerik team
Share this question
or