[ 2 posts ]

Vilas Ekbote

  • Username: ve123
  • Joined: Wed Aug 12, 2009 11:59 am
  • Posts: 5
  • Offline
  • Profile
Tags:

inline edit values save to datasource

Post Posted: Thu Aug 20, 2009 1:31 pm
+0-
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.

Vilas Ekbote

  • Username: ve123
  • Joined: Wed Aug 12, 2009 11:59 am
  • Posts: 5
  • Offline
  • Profile

Re: inline edit values save to datasource

Post Posted: Thu Aug 20, 2009 1:50 pm
+0-
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.
  [ 2 posts ]
Display posts from previous:  Sort by  
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