Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
Set properties to iggrid by class and not by Id
posted

Hi.

I have a lot of grids on my project, one of them have a special functionality, when i do click in some place, the row that is editing, end edit and value set, I mean that value is set not only with enter.

Now, I need extend this functionality or generalize to all grids.

In jquery you can apply some action to all elements that have a special class, how I can add this class to all my iggrid or some property to identify all my iggrid?  It´s "boring" add the same function for every grid.

$(document).click(function (e) {
    if ($("#grid1").igGridUpdating("isEditing") == true) {
      //do something

      $("#grid1").igGridUpdating("endEdit", true); //end 

      //do something    

}

});


I use jquery iggrid


Thanks