jQuery UI Widgets Forums Grid Loading Image

This topic contains 5 replies, has 2 voices, and was last updated by  Hristo 6 years, 6 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • Loading Image #100771

    walker1234
    Participant

    I have the following things defined in my code:

    $(“#grid”).jqxGrid(‘showloadelement’);

    $(“#grid”).on(‘bindingComplete’, function (event) {
    alert(“Binding is completed”);
    });

    // Initialize the JQX grid object.
    var grid = $(“#grid”).jqxGrid({

    altrows: true,
    autoshowloadelement: true,
    showdefaultloadelement: true,
    pageable: true,
    autoheight: true,
    showtoolbar: true,
    theme: ‘classic’,

    columnsresize: true,
    columns: [

    I can see this alert alert("Binding is completed"); but the icon isn’t loading using the $("#grid").jqxGrid('showloadelement'). I was looking at this fiddle for reference : http://jsfiddle.net/jqwidgets/g7zEL/

    What am I missing?

    Loading Image #100773

    walker1234
    Participant

    I got the above working but I am wondering if there is anyway I could use a loading image instead of the default jqxwidget one?

    Loading Image #100784

    Hristo
    Participant

    Hello walker1234,

    You could add jqxLoader and set there the desired image via html property.
    Please, take a look at this demo.

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

    Loading Image #100798

    walker1234
    Participant

    Okay, thanks. Is it possible where I could just have an image with loading icon. I mean if I don’t want to have the image inside the predefined width and height frame?

    Loading Image #100799

    walker1234
    Participant

    Because, I tried using this in the Javascript code and I was still seeing the rectangular frame :

    $(document).ready(function () {
        $('#jqxLoader').jqxLoader({  html: '<div style="padding: 10px;"><img src="https://i.stack.imgur.com/g75To.gif" alt="Loading Icon" height="150" width="150"></div>' });
    
        $('#openLoader').jqxButton({ theme: 'energyblue' });
        $('#openLoader').click(function () {
            $('#jqxLoader').jqxLoader('open');
        });
    });
    Loading Image #100820

    Hristo
    Participant

    Hello walker1234,

    Please, try to with this style setting:

    .jqx-loader {
      border: none;
    }

    Best Regards,
    Hristo Hristov

    jQWidgets team
    http://www.jqwidgets.com

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.