ComponentOne GridView for ASP.NET WebForms
jQuery.wijmo.c1gridview Namespace / options type / loaded Event
The jQuery.Event object.
In This Topic
    loaded Event
    In This Topic
    The loaded event handler is a function that is called at the end the wijgrid's lifecycle when wijgrid is filled with data and rendered. You can use this event to manipulate the grid html content or to finish a custom load indication.
    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 loaded event handler function
    widgetInstance.option("loaded", function (e) { } );
    loaded = function ( 
       e : Object
    ) { };

    Parameters

    e
    The jQuery.Event object.
    Example
    // The loaded event in the sample below ensures that whatever is selected on load is cleared
    $("#element").wijgrid({
    	loaded: function (e) {
    		$(e.target).wijgrid("selection").clear(); // clear selection
    	}
    });
    Remarks
    You can bind to the event either by type or by name. Bind to the event by name: $("#element").wijgrid({ loaded: function (e) { // some code here }}); * Bind to the event by type: $("#element").bind("wijgridloaded", function (e) { // some code here });
    See Also