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

How to set a DataKeyValue on Client-side?

1 Answer 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
fquinty
Top achievements
Rank 1
fquinty asked on 07 Nov 2008, 04:01 PM

Hello,

I am using the Client event 'OnRowSelected' of a RadGrid

I can read the value of a key on client-side using :

function Grid1_Select(sender, eventArgs) {

    alert(eventArgs.getDataKeyValue('Param1'));

}

But is there a way to set a new value for this Param1 on client-side?

Regards,

frank Quinty

 

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 11 Nov 2008, 08:09 AM
Hello fquinty,

I am afraid that you cannot set RadGrid DataKeyValues, neither client nor server side. A way to change a value in RadGrid is to edit an item and update the database correspondingly.

Find more about RadGrid update/insert/delete operations in the following resources:
http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/DataEditing/AllEditableColumns/DefaultCS.aspx
http://www.telerik.com/help/aspnet-ajax/grdeditmodeinplace.html
http://www.telerik.com/help/aspnet-ajax/grdeditforms.html
http://www.telerik.com/help/aspnet-ajax/grdpopupeditform.html
http://www.telerik.com/help/aspnet-ajax/grdcustomeditforms.html

Best wishes,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
fquinty
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or