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

Insert/Update operations in DataSet

1 Answer 55 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manishkumar
Top achievements
Rank 1
Manishkumar asked on 05 Nov 2012, 10:34 AM

I am using DataSet as DataSource for RadGrid. I can apply DataSource either through NeedDataSource or through directly datasource property of radgrid. I could not use DataSource control for binding. I went through all examples but could not find one which does not use DataSource control or any example with DataSet.

Edit Scenario:
Records Insert / Update needs to be in-place and all rows are editable from start, User have option of clicking "Save" button to save all changes.

Insert Scenario:
For insert operation, when user clicks "Add New" button. New row will be added at bottom and user can add new record in that. Then clicking on "Save" button will save new record along with any changes made in existing records.

Current Issues:
# DataSource is not retained after post-back from "Save" or "Add New" button and RadGrids shows empty. Any control with in RadGrid, like rows and columns which are rendered in page are also empty.
# For Insert Scenario I tried adding empty row in DataTable and then did binding. But above issue occurs and not data is retained from end user.

Mentioned scenario should be well with-in the capabilities of RadGrid control. Please advise on implementation details.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 08 Nov 2012, 08:21 AM
Hello,

In order to achieve your goal you could check this code-library which demonstrates similar to your case.

All the best,
Andrey
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
Manishkumar
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or