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

New values from ExtractValuesFromItem getting sorted

1 Answer 23 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Krutika
Top achievements
Rank 1
Krutika asked on 15 Nov 2012, 11:16 PM
I have a radgrid and updating using EditMode=Popup.

When I get the newvalues the values are getting sorted in the order of 'Column name'.

How do I get the order that is displayed in the radgrid?

CODE:
If TypeOf e.Item Is GridEditFormItem Then
                Dim id As Integer = Convert.ToInt32(e.Item.OwnerTableView.DataKeyValues(e.Item.ItemIndex)("rowId").ToString())
                e.Item.OwnerTableView.ExtractValuesFromItem(newValues, editedItem)

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 Nov 2012, 09:35 AM
Hello Krutika,

You could use the Item argument of the ItemDataBound server event to access the requested value control in Edit mode as shown in the following topic:
( Section Accessing controls in edit/insert mode )
http://www.telerik.com/help/aspnet-ajax/grid-accessing-cells-and-rows.html

I hope this will prove helpful.

Kind regards,
Eyup
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
Krutika
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or