Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Tejas Shah on Sep 02, 2008 01:59
open dhtmlx forum
DHTMLX Grid : Error while inserting column in Internet Explorer 6.

Hi,
I am getting "invalid arguments" while executing following command in the grid.

libTableGrid.insertColumn(colIndex,colHeaderName,'ed','*','na','left','center',false,'white');

What could be the problem ??
Answer posted by Support on Sep 02, 2008 03:04

valign value is incorrect, there is no such valign as "center"

libTableGrid.insertColumn(colIndex,colHeaderName,'ed','*','na','left','middle',false,'white');

Answer posted by Tejas Shah on Sep 02, 2008 04:58
Hi,
    Thanks for the support. But why ONLY IE has this problem, Why Firefox didnt threw any error on this ???
Answer posted by Tejas Shah on Sep 02, 2008 07:02
Hi,
    The IE 6 is still giving the same error.
    If I don't want to pass the variable value, then what should I give them in function, null ??
Answer posted by Support on Sep 02, 2008 07:36
>>Why Firefox didnt threw any error on this ???
The IE is only browser, which throw js error when incorrect attributes set to HTML attributes.

>>what should I give them in function, null ??
yes, null or empty string ( any value which treated as logica false will work )
Answer posted by Tejas Shah on Sep 09, 2008 11:02
Hi there,
             I am still not able to insert the column in IE 6.
             I am using following on click of a link :

            <gridObject>.insertColumn(colIndex,colHeaderName,'ed','*','na','left','','','white');
                            where colIndex, colHeaderName : variables in javascript containing corr values.

            What could be the problem ???
            Please help me with some sample example with same line of code......
            I will be grateful.
            
Answer posted by Support on Sep 10, 2008 01:44
Existing version of grid doesn't support adding new column with flexible width, you need to specify some fixed width for newly added column
             mygrid.insertColumn(colIndex,colHeaderName,'ed','100','na','left','','','white');
Answer posted by Tejas Shah on Sep 10, 2008 06:17
Hi there,
             But I am able to insert column with this line of code in FireFox.
             Error comes only in IE ..................
Answer posted by Support on Sep 10, 2008 06:41
IE doesn't recognize * as valid width value. FF ignores such error silently. 
Answer posted by Tejas Shah on Sep 10, 2008 23:38
Hi there,
              Thanks for the quick support.
              But What if I want the newly added to adjust its size just like what * does ?????
              How to do this in IE in which * is not supported as width of the column ????
 
Answer posted by Support on Sep 11, 2008 07:35
It will require changes in source code, there is no way to achieve such functionality with existing codebase