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

Get value of dynamic Grid columns for Edit/Update

2 Answers 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Hansik
Top achievements
Rank 1
Hansik asked on 14 Jul 2008, 02:30 PM
Hi,

     I have a grid whose columns are dynamically created except for the EditCommandColumn. When the grid is populated with other columns, the user can click the EditCommandColumn and it opens up that row for editing. Now my problem is how to get the values of these edited columns since I don't know the UniqueName property of each. (On my other grid, I just use for instance the "editedItem['UniqueName']" or something to fetch their values where UniqueName is something that I already assigned when I build the grid. How will I do it for dynamically created columns?

    Your help is really really appreciated!

Thanks,
Arthur

2 Answers, 1 is accepted

Sort by
0
Accepted
Veli
Telerik team
answered on 15 Jul 2008, 04:49 AM
Hi Arthur,

You can explicitly specify the UniqueName property of the column you create. Alternatively, if you do not specify it, your column UniqueName would be the DataField that you bind it to.

Best wishes,
Veli
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Hansik
Top achievements
Rank 1
answered on 17 Jul 2008, 02:31 PM
Thanks, Veli for your suggestion. You are right, I just used the fieldnames to which they are bound to in order to access their values and it works.

Again, thanks a lot for the help! I really appreciate it!

Arthur
Tags
Grid
Asked by
Hansik
Top achievements
Rank 1
Answers by
Veli
Telerik team
Hansik
Top achievements
Rank 1
Share this question
or