Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Alexandre K. on May 14, 2009 02:00
open dhtmlx forum
SplitAt and Header cell's style

Hi,

As it's been notice here : http://www.dhtmlx.com/docs/products/kb/index.shtml?cat=search&page=1&q=9263&ssr=yes&s=splitAt%20style

I have a problem with setting style because of the splitAt functionality, I tried to put a style to a header cell by setColumnLabel function. Can you fix this? /help me?

Thanks

Greetings

PS : I'm using the lastest version of your component
Answer posted by dhxSupport on May 14, 2009 02:28

The is no possibility to set header styles using setColumnLabel function. setColumnLabel(col, label, ind) methos has parameters:

col - header column index
label - new label for the cpecified header's column. Can contai img:[imageUrl]Text Label
ind - header row index (default is 0)

You can set style to the header cell using 3rd parameter of setHeader() method:

 grid.setHeader("A,B,C",null,["text-align:right;","text-align:left;","text-align:center"]);

Answer posted by Alexandre K. on May 14, 2009 04:25

Whatever setColumnLabel doesn't work on the splited comlumns... Do you have a solution to fix this??

Greetings

Answer posted by dhxSupport on May 14, 2009 07:09
This bug was confirmed and fixed. Fixed file will be send you by email
Answer posted by Alexandre K. on May 18, 2009 03:34
Thx it's working!

Moreover, when a row is selected (on the right part of the splitted grid), the line is not on the same level on the both part of the grid...
Row selected is in the first line, on the right part, instead of the keft one, the level of the line stays unchanged...
But when I decide to scroll down/up, left/right selected line come back to the same level .

And why we cannot scroll on the right part of a splitted grid why the mouse???

Greetings
Answer posted by Alex (support) on May 18, 2009 05:49

Could you please provide the sample to re-create the issue.

 

Answer posted by Alexandre K. on May 18, 2009 08:09
Here a sample of the famous splitted grid.
Answer posted by Support on May 18, 2009 08:46
Problem caused by hiding first column in left part of grid, which affects selection logic.
You can remove hidden column ( or move it to the rightmost position, where it will not cause any side-effects) or use updated js file ( sent by email )