Home › Forums › Guriddo jqGrid JS › Help › Help-How can remove all rows?
as title. 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:
for(i=1;i
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
jQuery(‘[@id^=six_question_table_]’).remove();
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++) jQuery("#table_id").delRowData(id_s); }
Stay connected with us in your favorite flavor!
Copyright 2014 TriRand LtdAll Rights ReservedRSS