Set GridBoundColumn value with javascript

3 posts, 0 answers
  1. Muhammad
    Muhammad avatar
    2 posts
    Member since:
    May 2015

    Posted 27 May 2015 Link to this post

    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. Viktor Tachev
    Viktor Tachev avatar
    2391 posts

    Posted 01 Jun 2015 Link to this post

    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

    Viktor Tachev
    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
  3. Muhammad
    Muhammad avatar
    2 posts
    Member since:
    May 2015

    Posted 04 Jun 2015 in reply to Viktor Tachev Link to this post

    Thanks Viktor Tachev
Back to Top