| Page 1 of 1 | [ 2 posts ] |
|
I'm trying to use a checkbox in one of the columns and when user clicks the check box I am trying save that value to datasource record by handling checkboxClickEvent like this:
myDataTable.subscribe("checkboxClickEvent", function(oArgs){ //debugger; var elCheckbox = oArgs.target; var oRecord = this.getRecord(elCheckbox); oRecord.setData("select",elCheckbox.checked); }); but the value doesn't seem to be persisting to the datasource under the data table. Because when I filter the rows in a different way by looping over the rows and re-render the data table the updated value of the check box is not showing. What is the best way to save the value in checkbox to data source so that when the data table rows are replaced with replacerecords the updated values can be displayed on the datatable? Thanks. |
|
Never mind it works as expected. I had a javascript syntax error where while setting the value back for reloading the data table I forgot to put the parenthesis after the function name, after I fixed that - it works great.
|
| Page 1 of 1 | [ 2 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group