ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / loading Event
The jQuery.Event object.
In This Topic
    loading Event
    In This Topic
    The loading event handler is a function that is called at the beginning of the wijgrid's lifecycle. You can use this event to activate a custom load progress indicator.
    Syntax
    var options; // Type:  jQuery.wijmo.c1gridview.options
    
          // Create a new c1gridview widget
          $(".selector").c1gridview(options);
    
          // Get a previously created c1gridview widget instance
          var widgetInstance; // Type:  jQuery.wijmo.c1gridview
          widgetInstance = $(".selector").data("wijmo-c1gridview");
    
          // Set loading event handler function
    widgetInstance.option("loading", function (e) { } );
    loading = function ( 
       e : Object
    ) { };

    Parameters

    e
    The jQuery.Event object.
    Example
    // Creating an indeterminate progressbar during loading
    $("#element").wijgrid({
    	loading: function (e) {
    		$("#progressBar").show().progressbar({ value: false });
    	}
    });
    Remarks
    You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ loading: function (e) { // some code here }}); * Bind to the event by type: $("#element").bind("wijgridloading", function (e) { // some code here });
    See Also