how to rebind jqgrid with a button

JeneUnlake

New Member
I want to rebind my jqgrid. Here is my script code to bind grid:\[code\] $(document).ready(function () { var categoryId = $('#<%=hdnCategoryId.ClientID %>').val(); var productName = $('#tags').val(); jQuery("#tblList").jqGrid({ url: 'ArenaProductList.aspx/GroupProductList', mtype: 'POST', datatype: 'json', postData: { sidx: '', sord: '', page: '', rows: '', categoryId: categoryId, productName: productName }, ajaxGridOptions: { contentType: "application/json" }, serializeGridData: function (postData) { var propertyName, propertyValue, dataToSend = {}; for (propertyName in postData) { if (postData.hasOwnProperty(propertyName)) { propertyValue = http://stackoverflow.com/questions/12788931/postData[propertyName]; if ($.isFunction(propertyValue)) { dataToSend[propertyName] = propertyValue(); } else { dataToSend[propertyName] = propertyValue; } } } return JSON.stringify(dataToSend); }, jsonReader: { root:"d.rows", page: "d.page", total: "d.total", records: "d.records" }, colNames: ['ArenaProductId', 'A??klama', 'Ana Kategori', 'Alt Kategori', 'Marka', 'KDV', 'Stok', 'Bayi Fiyat?', 'Son Kullan?c? Fiyat?', 'Para Birimi', 'Y
 
Back
Top