dhtmlx grid

Hi sir
i am using dhtmlx grid.i have manually define set header and attached hearder.now i want to define header in xml.dynamically header should be change if i cal different xml.
my dhtmlx grid code is:
mygrid1 = new dhtmlXGridObject(‘gridbox1’);
mygrid1.selMultiRows = true;
mygrid1.imgURL = “codebase/imgs/”;
mygrid1.setHeader(header);
mygrid1.attachHeader(attachHeader);
mygrid1.setInitWidths(“80,60,100,60”);
mygrid1.setColAlign(“left,center,center,center”);
mygrid1.setColTypes(“txt,txt,txt,txt”);
mygrid1.enableEditEvents(false, false, false);
mygrid1.init();
mygrid1.setSkin(“dhx_skyblue”);
mygrid1.load(“test.xml”);
my xml is :

Top Branches #cspan #cspan #cspan

after that i run this file nothing should display can you provide the proper solution as soon as possible

thanks and regards
sam

In case of defining the header’s structure in JS part please, try to remove the init of your columns in the xml.
This should be removed:

<column width='60' type='ro' align='center' sort='na'>Top Branches</column> <column width='70' type='ro' align='left' sort='na'>#cspan</column> <column width='125' type='ro' align='left' sort='na'>#cspan</column> <column width='100' type='ro' align='left' sort='na'>#cspan</column>

hi sir
now its working fine
thanx and regards
sam

hi sir
can you tell me any feature you have implement in dhtmlx grid???

Hello.

Please, clarify your issue.

Hi sir
now i am facing align ment issue.if i give center than its coming by default on left.

Top Branches
please provide the solution of this

Hi sir

plz provide the solution of the align ment issue.
code is this.
Top-Branches
#cspan
#cspan
#cspan


if i run my xml then it gives value in the left means it will consider separte first column display in the center .but i want that values in the center of the all cloumn means Top branches comes in the center of the width column .
please provide the solution as soon as possible

Hi, i am not very know your question, please say it clearly.

Unfortunately the issue cannot be reconstructed locally.
If issue still occurs - please, provide a complete demo where the issue can be reconstructed.

hi sir
i want top branches comes in center but it comes in left .
can you provide the solution of this?

Unfortunately the issue cannot be reconstructed locally.
If issue still occurs - please, provide us with a complete demo where the issue can be reconstructed.