get complex header label after split

Hi,

I have a grid with a header containing columnheaders with html.
I need to get the html inside some of these columns. I found the method mygrid.hdr.rows[row_index].cells[cellindex] to get the td so you can read the td content.

The problem is that the grid is split and I need to get to the columns to the right of the split. mygrid.hdr.rows[row_index] only returns the columns to the left of the split.

Is there a way to access the columnheaders on the right of the split so I can get to the innerHTML of those columnheaders?

thanks and kind regards,
Arno.

In the same way I need to be able to set complex content in the header after the split.
In fact there’s an image with a link, next to some text in that columnheader and I need to change the image of that link. So it’s getting complex content from the header after split, changing it and setting it back after the split.

kind regards,
Arno.

To get content of header cell in left part of the grid you may use following code:

mygrid._fake.hdr.rows[row_index].cells[cellindex]

The left side isn’t the problem, I figured that out myself, but it’s the right side that I can’t get to.

If I use grid._fake.hdr it only contains the columns of the left side, not the right side.

kind regards,
Arno.

You should use different objects for left and right parts.
grid._fake.hdr for left part
grid.hdr for right part

Thank you very much!

I was a bit confused because grid.hdr also gave me the left part, but in fact it gives the whole header ignoring the split and counting spanned columns as 1 column.

Thank you!

Kind regards,
Arno.