Home › Forums › Guriddo jqGrid JS › Help › Help-How can remove all rows?
I want us a mothed to clear all rows.
can you help me?
hi, i think you could use the getRecords() method to get the total number of rows and then use the .delRowData() to remove, something like this:
sorry, something like
for( i =1 ; i
just put the getRecords() in the condition of the 'for' and the execute the delRowData() with the i variable.
Could you provides a public method do this in next version ?
And I am very curious, if sort and turn the pages, table must be clear,
it is how do?
now i use this way
it can remove all row
‘six_question_table_’ it is my row id value’s Beginning
To remove rows manually:
var = id_s = jQuery("#table_id").getDataIDs();
for(var i = 0; i < = id_s.length; i++)
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS