asp.net - I get aspxGVPagerOnClick is not defined on my ASPxGridview when it's loaded on AJAX -



asp.net - I get aspxGVPagerOnClick is not defined on my ASPxGridview when it's loaded on AJAX -

function showdailysalesadjustment(txt) { console.log(txt); var xmlhttp; if(window.xmlhttprequest){ // code ie7+, firefox, chrome, opera, safari xmlhttp=new xmlhttprequest(); } else{ // code ie6, ie5 xmlhttp=new activexobject("microsoft.xmlhttp"); } xmlhttp.onreadystatechange=function(){ if(xmlhttp.readystate==4 && xmlhttp.status==200){ document.getelementbyid("divtable").innerhtml=xmlhttp.responsetext; } } xmlhttp.open("get", "getdailysalesadjustmenttable.aspx?q=" + txt, true); xmlhttp.send(); }

above ajax code , calls getdailysalesadjustmenttable.aspx has gridview in it:

<form runat="server"> <div> <dx:aspxgridview id="adjustment_gridview" runat="server" autogeneratecolumns="false" datasourceid="sqldatasource1" keyfieldname="adj_id" theme="metropolis" ondatabound="adjustment_gridview_databound"> <columns> <dx:gridviewdatatextcolumn visibleindex="0"> <dataitemtemplate> <a href="javascript:void(0)" runat="server" id="shoplink" ><%# eval("shopname") %></a> </dataitemtemplate> </dx:gridviewdatatextcolumn> <dx:gridviewdatadatecolumn fieldname="datefrom" caption="start date" visibleindex="1"> </dx:gridviewdatadatecolumn> <dx:gridviewdatadatecolumn fieldname="dateto" caption="end date" visibleindex="2"> </dx:gridviewdatadatecolumn> <dx:gridviewdatatextcolumn fieldname="status" visibleindex="3"> </dx:gridviewdatatextcolumn> <dx:gridviewdatatextcolumn fieldname="approvedby" visibleindex="4"> </dx:gridviewdatatextcolumn> <dx:gridviewdatatextcolumn visible="false" fieldname="adj_id"> </dx:gridviewdatatextcolumn> </columns> <settingsdatasecurity allowdelete="false" allowedit="false" allowinsert="false" /> </dx:aspxgridview> <asp:sqldatasource id="sqldatasource1" runat="server" connectionstring="<%$ connectionstrings:conn %>" selectcommand="select * [tenant_daily_sales_adjustment] inner bring together [tenant_daily_sales_adjustment_details] on tenant_daily_sales_adjustment.adj_id = tenant_daily_sales_adjustment_details.adjustment_id (tenant_daily_sales_adjustment_details.status = @status) "> <selectparameters> <asp:formparameter name="status" type="string" /> </selectparameters> </asp:sqldatasource> </div> </form>

now problem whenever click next button in pager, "aspxgvpageronclick not defined" on console. when run getdailysalesadjustmenttable.aspx lone without ajax, seems work well.

asp.net ajax aspxgridview

Comments

Popular posts from this blog

Using Android Volley to post an array to PHP -

python - How to add an model instance to a django queryset? -

angularjs - No 'Access-Control-Allow-Origin' error from local domain to public API -