jQWidgets Forums
jQuery UI Widgets › Forums › Grid › JQX loader with gridview
Tagged: grid ui component
This topic contains 5 replies, has 3 voices, and was last updated by Martin 5 years ago.
-
AuthorJQX loader with gridview Posts
-
Issue is when i click on gridview cell,Based on parameter on another jqxgridview has to load. Now when i click on cell click event JQX loader is not loading. Please provide sample code.
function onClick(e) {
lastindex=0;
startindex=0;$(“#jqxLoader1”).jqxLoader({ width: 100, height: 60, imagePosition: ‘top’, autoOpen: true });
$(“#QAProcessgrid”).on(“bindingcomplete”, function (event) {
$(‘#jqxLoader1’).jqxLoader(‘close’);
});
QAProcessgridpagerrenderer();
isReload =false;
// $(“#loader”).modal(“show”);$(“#QAProcessgridPagination”).hide();
var process= “”;
if(e.dataPoint !=undefined && e.dataPoint!=null) // click evet from pie chart
{process = e.dataPoint.label;
ActionTotalRecordCount= e.dataPoint.y;
lastindex=gridPageCount;
loadgridagain(process);
}
else // click event from process count grid
{
process = e.args.value;
var rowindex = e.args.rowindex;
process = $(“#reqCount”).jqxGrid(‘getcellvalue’, rowindex, ‘Action’);
// lastindex=$(“#reqCount”).jqxGrid(‘getcellvalue’, rowindex, ‘ActionCount’);
ActionTotalRecordCount=$(“#reqCount”).jqxGrid(‘getcellvalue’, rowindex, ‘ActionCount’);
lastindex=gridPageCount;
loadgridagain(process);
}
//showHideAjaxLoaderFor(“jqxWidget”, false);
// $(“#loader”).modal(“hide”);
// $(‘#jqxLoader’).jqxLoader(‘Close’);}
Hi ashokt4,
If you bind the grid with url params, by default it will handle loader by its internal logic. I would suggest you to use that approach. If you want to update its data source, you can set the source property of the Grid to new dataAdapter instance.
Regards,
PeterjQWidgets Team
https://www.jqwidgets.com/PLease provide sample code for this. i did not get your point. please help me on this
Please respond soon. it is very urgent
Hi
Please assist on this soonHello ashokt4,
You can try to initialize the jqxLoader in the beginning and then call the
open
method when a cell is selected.
Please, take a look at the following Example. It is similar to the case that you descriped.Best Regards,
Martin YotovjQWidgets team
https://www.jqwidgets.com -
AuthorPosts
You must be logged in to reply to this topic.