Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2048
igGridUpdating and DefaultValue
posted

Hi,
I am trying to change the defaultValue of an igGrid column. The first default value was set during GridModel definition (on the controller side). After a user click  I have to change it in another value.
I tried this one:

var columnSettings = $("#grid_id").igGridUpdating("option", "columnSettings");
alert(columnSettings[1].defaultValue);

And I can see the right first default value. But if I try to do:

var columnSettings = $("#grid_id").igGridUpdating("option", "columnSettings");
columnSettings[1].defaultValue = 12345;

Nothing happened...Or better: if I print (javascript alert) all the column settings I can see the default value of that column changed to the new one, but when I add a new row, the default value of that column still starts as 0 (the very first default value).

Why?

Thanks

Flavio M.