Dhtmlx grid Opera, IE, FF issues

Hello



Currently we evaluating dhtmlx grid. I’m intending to load data via XML.

JS to create grid is as follows:



        mygrid = new dhtmlXGridObject(‘gridbox’);

        mygrid.attachEvent(“onKeyPress”,evKeyPress);

        //mygrid.setXMLAutoLoading(“batchData.htm”);

        mygrid.init();

        mygrid.loadXML(“batchItems.htm?id=${id}”);



XML returned is:



<?xml version="1.0" encoding="UTF-8"?>



0

<total_count>100</total_count>



Sąskaita

Kreditas

Kreditas

Pastaba



















With such configuration grid normally is working only with FF, header is visible and one empty row is visible. With Opera it is not working at all. Headers are not visible ant empty row as described in XML is not visible. IE is working but initial empty row is not visible. Support for IE,FF and Opera is requirement for my project. What mistakes am i doing?



Thanks!

Albertas


Supported loading types are:


- xml;
- csv;
- json;
- javascript array.


Grid doesn’t support loading from “htm” type. If you want load grid from standard xml type your code should looks like that:


mygrid.loadXML(“batchItems.xml?id=${id}”);


Plese see more information about loading dates in grid here dhtmlx.com/docs/products/dhtmlxG … oadingdata


Also every column width have to be difined in the tag or with setInitWidths(wp) method:


Saskaita
Kreditas
Kreditas
Pastaba