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

[Solved] Problem with update Command

2 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 12 Mar 2010, 12:48 PM
I am trying to update my RadGid in Code behind as

Protected

 

Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As GridCommandEventArgs)

 

 

Dim editedItem As GridEditableItem = TryCast(e.Item, GridEditableItem)

 

 

Dim Length As String = TryCast(editedItem("numExternalLength").Controls(0), TextBox).Text

 

 

End Sub

Here  "numExternalLength" is the unique name for GridBoundColumn.
Now the problem is it retrieves only the previous value and not the newly entered value by the user.
Please help me to get the new values that the user enters so that it can be updated in the db.

 

2 Answers, 1 is accepted

Sort by
0
Tsvetoslav
Telerik team
answered on 12 Mar 2010, 01:55 PM
Hi Raghuraman,

You need to use the ExtractValues method of the editable item, passing to it a hash table. When this method has been executed, the hash table will contain a key-value collection of all the new values for the data fields being updated.

I hope this helps.

Best wishes,
Tsvetoslav
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Saravanan
Top achievements
Rank 1
answered on 12 Mar 2010, 02:02 PM
Thanks Tsvetoslav
Tags
General Discussions
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Tsvetoslav
Telerik team
Saravanan
Top achievements
Rank 1
Share this question
or