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

RadGrid - how to set value in Javascript

1 Answer 348 Views
Grid
This is a migrated thread and some comments may be shown as answers.
charles
Top achievements
Rank 1
charles asked on 11 Jan 2016, 03:52 PM
I looked at the sample code for OnCellSelected and OnCellSelecting but it just had limited information.  Is there a way to set the cell value in Javascript?  I imagine it's something like dataItem.set_value() but that's just a guess.  Thanks!

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 13 Jan 2016, 09:19 AM
Hi Charles,

Once you have a reference to the client-side object of the row, you can access its cell and use the text() method to set its content:
‚Äčhttp://docs.telerik.com/devtools/aspnet-ajax/controls/grid/rows/accessing-cells-and-rows#accessing-cells-and-values-in-client-side-code

I hope this will prove helpful. Please give it a try and let me know if it works for you.

Regards,
Eyup
Telerik
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 Feedback Portal and vote to affect the priority of the items
Tags
Grid
Asked by
charles
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or