How to load Jqgrid from Daterange In Asp.Net

Suhdistik

New Member
I have a jqgrid which has filter and multiple search enabled locally .I have two textboxes which has daterange values and a submit button Now as per my need i have to load Jqgrid by clicking on submit button with daterange values with filter and multiple search function enabled.I am Using Web Method of Asp.net.Here is my code for Jqgrid ...\[code\] $.ajax({ url: 'Default.aspx/MyMethod', dataType: 'json', contentType: "application/json; charset=utf-8", type: 'POST', success: function (ReportDataNew, textStatus, XMLHttpRequest) { //debugger; gridData = http://stackoverflow.com/questions/15871302/JSON.parse(ReportDataNew.d); //console.log(gridData); //alert(gridData.length); $("#gridId").jqGrid({ data: gridData, datatype: "local", height: '100%', autowidth: true, ignoreCase: true, rowNum: 50, rowList: [50, 100, 200], colNames: ['UserName', 'Ordinal', 'Price'], colModel: [ { name: 'username', index: 'username', width: 100, sortable: true, align: 'center' }, { name: 'ordinal', index: 'ordinal', width: 100, sortable: true, align: 'center' } { name: 'price', index: 'price', width: 100, sortable: true, align: 'center',formatter: 'currency' } ], pager: '#gridpager', viewrecords: true, toppager: true, loadtext: 'Loading...', footerrow: true, userDataOnFooter: true, loadComplete: function () { this.p.lastSelected = lastSelected; } }); $('#gridId').jqGrid('navGrid', '#gridpager', { edit: false, add: false, del: false, refreshtext: "Reload", view: false, searchtext: "Search", cloneToTop: true }, {}, {}, {}, { caption: "Search", closeOnEscape: true, multipleSearch: true, closeAfterSearch: true, overlay: false })\[/code\]and Here is my Html code for two textboxes with submit button ..\[code\] <label style=color:#0278AE;font-weight:bold;font-face:verdana;>DateFrom</label><input type="text" id="fromdate" name="datum1"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <label style=color:#0278AE;font-weight:bold;font-face:verdana>DateTo</label><input type="text" id="todate" name="datum2"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input type="submit" name="submit" style="color:#0278AE"; id="go" value="http://stackoverflow.com/questions/15871302/GO" onmouseover="true" title="Click here to get details.">\[/code\]AnyHelp will be heartely appreciated..Thanx in advance..
 
Top