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

Set GridBoundColumn value with javascript

2 Answers 181 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Muhammad
Top achievements
Rank 1
Muhammad asked on 27 May 2015, 03:36 PM

i need to set the grid bound column value but using javascript when checkbox is checked or uncheked and set all rows value when i clicked select all checkox.

i can do it easily with server side code but i need to do it with client side.

2 Answers, 1 is accepted

Sort by
0
Viktor Tachev
Telerik team
answered on 01 Jun 2015, 09:23 AM
Hi Muhammad,

Note that you could change the text in a given RadGrid cell via JavaScript. However, the value would not be persisted to the server.

In order to have the modified values passed to the sever you can use Batch Editing for RadGrid. You should take advantage of the client-side API available with Batch Editing. You can handle the onclick client-side event of the CheckBox control and set the value for a specific cell via the changeCellValue() client-side method.

If you would like additional information on Batch Editing and the client-side methods available for it you will find the following article interesting


Regards,
Viktor Tachev
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
0
Muhammad
Top achievements
Rank 1
answered on 04 Jun 2015, 09:28 AM
Thanks Viktor Tachev
Tags
Grid
Asked by
Muhammad
Top achievements
Rank 1
Answers by
Viktor Tachev
Telerik team
Muhammad
Top achievements
Rank 1
Share this question
or