Set skin when splitting table

Hi,

I am using the professional version of dhtmlxgrid.

I am trying to change existing tables to a grid. When I try to use column freeze and split my table, the left side of the table has the default skin and not the skin that I set.

As suggested before, I tried using onbeforeinit and setting skin there. But I am not able to use the variable liGrid in onbeforeinit method.

Also, will I not be able to use setInitWidthsP when table is being split? When I use percentage, the column header on the left side of the split is repeated again in the right side. Only the column is repeated, not the data.

Please let me know if I am doing it the wrong way.

Thanks in advance!

You should use “liTable” variable in onbeforeinit handler

I have tried using liTable.split(“1”) in onbeforeinit too. But the left side always takes the default skin and not the one that I specify. Can you give me a short example?

Also, please let me know if setInitWidthsP cannot be used when the table is being split.

But the left side always takes the default skin and not the one that I specify.
Try to use following order of commands:
liTable.setSkin(“merlin”);
liTable.split(“1”)

Also, please let me know if setInitWidthsP cannot be used when the table is being split
It impossible to use setInitWidthsP with grid with frozen columns.

Thanks! I got the problem resolved by doing what you suggested.

-Manjusha