Hi,
I’m attempting to dynamically re-render a ‘readonly’ table in ‘edit’ mode using code. I’ve referenced the following support thread when writing my code: https://community.skuid.com/t/how-to-make-a-table-component-read-only-dynamically.
Here’s the code I’m using on my page:
var table = skuid.$(‘.myTableClass.nx-skootable:visible’).data(‘object’);
table.mode = ‘edit’;
table.list.render({doNotCache:true});
The table is re-rendered, however it will not change to edit mode (or vice-versa if I set it up the other way).
Thanks for the help!
Kartik
Page 1 / 1
Try this:
var table = skuid.$('.myTableClass.nx-skootable:visible').data('object');<br>table.list.mode = 'edit';<br>table.list.render({doNotCache:true});
Worked like a charm, thank you!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.