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

[Solved] RadGrid Edit Mode

1 Answer 166 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 03 Jun 2009, 04:14 PM

Love it, setup for edit mode and user clicks edit and the grid opens up to allow use to edit data. My issue is for example I have a search screen which brings back particular elements that the user would typically search for and is displayed in grid fine.
What I need is the ability when the user clicks edit to 'add' other data items to be edited by the user.

For example I am working on User Maint, been done a million times before. The user can search by UserName and results
show user name , last update date, lockedFlag, lastPasswordChangeDate. I need to be able to add other elements so when
they click edit they can edit ALL the items that would be available in the table, not just the search results I have already
retrieved.

Hope I have explained this enough. Also, hate to do this, is there an example of this type of functionality, the basic edit
within the grid using stored procedures to update the data, this would be the next step and searching both here and
google didn't find the answer.

Thanks!
Jim D

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 08 Jun 2009, 12:21 PM
Hello James,

If you need to add more information to the edit form than is provided to you by default, you need to set up your own edit form either by template or from a custom UserControl. The following help article explains  this approach in detail. Finally, in the UpdateCommand event of RadGrid, you need to access your edit form's control values and update the data source manually, as described in this help article. In this way, you can have as many input values as required for your record, provided that you handle updating the data source manually.

As for the updating the data source using stored procedures, the principle with RadGrid is the same as with the SQL queries - you need to extract your updated values and call the stored procedure, much as you would do with other SQL statements. The general approach is explained in the second help article provided above.

Regards,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or