Wijmo UI for the Web
loaded Event
The jQuery.Event object.
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
Javascript (Usage) 
$(function () {
    // Set loaded event handler function
    $(".selector").wijgrid({
        loaded : function (e) {
     
        }
    });
});
Javascript (Specification) 
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

Reference

options type
wijgrid jQuery Widget

 

 


© 2013 All Rights Reserved.

Send comments on this topic.