SlickGrid控件最后一行触数据更新条件

//为了防止保存后 材料数据默认的情况

                  try{

                    var vEvenOrOdd = "odd";       

                    var vData =null;

                    vData =grid1.getData();

                    if(vData.length % 2==0){vEvenOrOdd="even";}

                    $("#divEngPipeLine ."+ vEvenOrOdd +" .slick-cell:eq(1)").click();

                    

                    vData =grid2.getData();

                    if(vData.length % 2==0){vEvenOrOdd="even";}

                    $("#divEngCable ."+ vEvenOrOdd +" .slick-cell:eq(1)").click();

                    

                    vData =grid3.getData();

                    if(vData.length % 2==0){vEvenOrOdd="even";}

                    $("#divEngMat ."+ vEvenOrOdd +" .slick-cell:eq(1)").click();

                   }catch(e){};  


你可能感兴趣的:(SlickGrid控件最后一行触数据更新条件)