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
565
call gridview function from groupedColumnsChanged
posted

Hi,

I know that with the event groupedColumnsChanged , i have access to some element of the plug-in. how can i call the resize function from there ?

I tried ui.owner.resize or ui.owner.grid.resize  and i get an error of undefined.

Thank you for you help

regards

Parents
  • 20255
    Offline posted

    Hello,

    Thank you for using our forum.

    About your question, resize method cannot be accessed through the ui parameter. Resize method is part of Resizing feature, so my suggestion is to access it through there.

    http://help.infragistics.com/jQuery/2014.2/ui.iggridresizing#methods:resize

    Online sample:

    http://jsfiddle.net/zdravko/sce4v1a4/5/show/

    The sample is showing how to resite the grouped column in groupedColumnsChanged event.

    Code snippet:

    features: [
         {
          name: "GroupBy",
          groupedColumnsChanged: function (evt, ui) {
           if(ui.groupedColumns.count() != 0){
            $("#" + ui.owner.grid.id()).igGridResizing("resize", ui.key, 100);
           }else{
            $("#" + ui.owner.grid.id()).igGridResizing("resize", ui.key, 400);
           }
          }
         },
         {
          name: "Resizing"
         }
        ],

Reply Children