Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by jhoni on Mar 10, 2008 20:34
open dhtmlx forum
Change Header Label on HTMLXGrid

Hi,

when loading xml on HMTLXgrid, i have defined label of header in xml file as below

--xml code
---
<head>
<column width='40' type='cntr' align='right' color='white' sort='na'>No.</column>
</head>
---

in other side, i want to change the label "No." as "Nomor" after loadxml using SetHeader. But, it'snot working. How to change this label ?

thanx
Answer posted on Mar 11, 2008 02:03
There is setHeaderCol(column_index,label) method which you can try to use.

For example, the first header cell will be "Yes" when the following approach is carried out:

    grid.setHeaderCol(0,"Yes");
Answer posted by jhoni on Mar 11, 2008 03:52
i tried put grid.setHeaderCol(0,"Yes") in my code.
but, i get error _childIndexes is null or not an object. Would you please give me a sample file.
Answer posted by Support on Mar 11, 2008 04:26
Please check attached sample.
Please beware that operation can be executed only after grid.init  only ( when header structure defined and rendered ) , the error which you mentioned can appear if header structure not rendered or incorrect column index was used.


Attachments (1)
Answer posted by jhoni on Mar 11, 2008 04:35
ok thanq. done well.