Jsgrid: Is their a method to show/hide the insert row.

Created on 22 Dec 2015  路  3Comments  路  Source: tabalinas/jsgrid

I want the user to see just the current values unless they hit an "add new" button. Is it possible to show/hide the insert row?

question

Most helpful comment

FYI, clearInsert method does not appear to work. The alternative shown above works fine.

$("#grid").jsGrid("clearInsert");

http://js-grid.com/docs/#clearinsert

All 3 comments

It appears this can be accomplish via the option method

 $('.jsgrid').jsGrid('option', 'inserting', false);

Yes, you are right, it can be done changing this option.

FYI, clearInsert method does not appear to work. The alternative shown above works fine.

$("#grid").jsGrid("clearInsert");

http://js-grid.com/docs/#clearinsert

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eliasuardi picture eliasuardi  路  3Comments

danielson317 picture danielson317  路  6Comments

Julian-B90 picture Julian-B90  路  4Comments

julmot picture julmot  路  3Comments

julmarci picture julmarci  路  4Comments