Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Seetharaman Srinivasan on Dec 09, 2008 05:02
open dhtmlx forum
splitAt stops at that command

    mygrid2.setHeader("ROW,CC,SAP CUST NUM,-,MM SEGMENT,COVERAGE,CMR NUM,COMPANY NO,CUSTOMER NAME,INAC#,ENT NUM,AFFILIATE NUM,TAX CODE1,TAX CODE2,INDUSTRY CLASS,-");
    mygrid2.setInitWidths("80,100,100,40,150,100,80,150,250,100,100,100,150,150,100,30");
    mygrid2.setColAlign("right,left,left,left,left,left,left,left,left,left,left,left,left,left,left,left")
    mygrid2.setColTypes("ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro,ro");
    mygrid2.setColSorting("int,str,str,str,str,str,str,str,str,str,str,str,str,str,str,str");

mygrid2.clearAll();
    mygrid2.init();

mygrid2.splitAt(8);


The above is my code to create splitAt. The code stops exatcly at mygrid2.splitAt(8); and I do not see any javascript errors.

Is there anything wrong in the above code
Answer posted by Support on Dec 09, 2008 05:48
Code is correct and works correctly in local samples - working sample sent by email. 
Be sure that grid size is bigger than left side of grid in split ( so at least a bit of right side part of grid must be visible ) 
Answer posted by Srinivasan Seetharaman on Dec 09, 2008 06:03
Only difference I see is that I use mygrid2.parse(ar,"jsarray"); to load the grid. Hope split will work for this method.
Answer posted by Support on Dec 09, 2008 06:05
It must not cause any difference,both methods use the same code after data parsing. 
In which moment of time grid initialized in your case, you can try to move init code in onload handler of document.