Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Prasad on May 07, 2008 10:55
open dhtmlx forum
SplitAt not working in IE

Hello

Is splitAt functionality not compatible with IE?
I just check its working fine in FF, but gives js error in IE(alert "Invalid argument") at line

if (check) this._fake.hdr.rows[i+1].style.height=this.hdr.rows[i+1].offsetHeight-check+"px";

here I found numerical value for check param, So I just handle in this way

if(check<1){
check=false;
}else{
check = true;
}

Now I am able to see grid but only right part, left part is not visible.
What is the problem?
PLZ reply ASAP
Thanks.

Answer posted by Support on May 08, 2008 08:58
It seems that you init grid in container , which width is smaller than left part of grid in split mode.
In case of IE it may appear, if you are init grid inside not fully rendered table structure, or just have not set any size for grid's container.

Please be sure that grid container have some size defined
If problem still occurs - please try to run code which init grid from onload event, when all html content will be rendered for sure.
Answer posted by Prasad on May 09, 2008 06:09
Thanks.
 
>>It seems that you init grid in container , which width is smaller than left part of grid in split mode.
In case of IE it may appear, if you are init grid inside not fully rendered table structure, or just have not set any size for grid's container.

<td align="center"  oncontextmenu="showGridContextMenu(event); return false;">
<div id="grd" style="width:800px; height:500px;BORDER-RIGHT: #666666 1px solid; BORDER-TOP: #666666 1px solid; BORDER-LEFT: #666666 1px solid;             BORDER-BOTTOM: #666666 1px solid;">
         <div id="gridbox" style="width:800px; height:500px; background-color:white;overflow:hidden;"></div>
</div>
 </td>

This is my code, whats wrong here?
onLoad is not suitable for me now.
Answer posted by Prasad on May 14, 2008 05:56
OK.......

Now I tried with onLoad event.
My headers are blue in color. But here I am getting white color for left header cells and blue color for right header cells.
?
Answer posted by Support on May 14, 2008 08:05
Which method you are using for setting color of grid header?
If you are setting color through skin - please be sure that skin set before calling grid.splitAt
If you are setting color through parameters of setHeader command and it still not works for you - please contact us directly, we will send you latest version of extension, which resolve issue.