jQuery UI Widgets › Forums › Grid › showing load image when jqxgrid loads
Tagged: Angular loader, Angular tree grid, grid, hideloadelement, jQuery loader, jquery tree grid, jqxgrid, jqxLoader, jqxTreeGrid, load, load element, loader, loader image, loading, showloadelement, tree grid
This topic contains 7 replies, has 3 voices, and was last updated by Dimitar 9 years, 3 months ago.
-
Author
-
Hi,
I want to show the loader image before jqxgrid loads, and hide while it gets load.
regards,
lalit singh
Hello lalit singh,
For this purpose, call the methods showloadelement and hideloadelement.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
i tried to put both , but not working. below is my sample code
$(‘#jqxgrid’).jqxGrid(‘showloadelement’);
$(“#jqxgrid”).jqxGrid(
{
width: ‘100%’,
source: dataAdapter,
pageable: true,
editable: true,
autorowheight: true,
enabletooltips: true,
selectionmode: ‘singlecell’,
//selectionmode: ‘singlerow’,
editmode: ‘click’,
// editmode: ‘selectedcell’,
altrows: true,
columnsresize: true,
theme: ‘redmond’,
autoheight: true,
showstatusbar: true,
statusbarheight: 25,
showaggregates: true,
sortable: true,
//scrollmode: ‘logical’,
scrollmode: ‘default’,
//filterable: true,
//filtermode: ‘excel’,
ready: function () {
$(‘#jqxgrid’).jqxGrid(‘hideloadelement’);
//rowsLength = $(“#jqxgrid”).jqxGrid(“getrows”).length;},
Hi lalit singh,
You cannot call a grid method (such as showloadelement) before the grid is initialized. In this case, your requirement cannot be achieved.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar,
thanks for your reply. any sample code or demo would you suggest please
regards,
lalit singh
Hello lalit singh,
The grid automatically shows the load element while it is loading (if it is not instantaneous). Such example is the Binding to Remote Data demo. It is not possible to do as you tried and show the load element manually before the grid has been loaded.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hello,
Is there a similar to “showloadelement” option for jqxTreeGrid?
G.
Hello G.,
The only related property in jqxTreeGrid’s API is autoShowLoadElement. However, you can make use of the new jqxLoader widget and integrate it with your tree grid (there is a similar demo with jqxGrid integration).
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.