Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by raj on Nov 04, 2008 04:47
open dhtmlx forum
Dhtml Grid

i have a dhtml grid which have 10 column .

sno,col1,col2,col3,col4,col5,col6,col7,col8,col9

1,ram,raju,india,10,ui,78,98,Firstclass,rate

 

i want to show the rate of the 98(is a train no) and firstclass from  my xml using xquery and show in rate cell

my xml is this

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

<TrainFare>

<FareDetails

TrainNo="1057"

TrainClass="Third AC"

StartPlaceCode="AGR"

StartStationCode="AGC"

DestPlaceCode="DEL"

DestStationCode="NDLS"

TrainFare="360" />

<FareDetails

TrainNo="1057"

TrainClass="Second AC"

StartPlaceCode="AGR"

StartStationCode="AGC"

DestPlaceCode="DEL"

DestStationCode="NDLS"

TrainFare="413" />

<FareDetails

TrainNo="2615"

TrainClass="First AC"

StartPlaceCode="AGR"

StartStationCode="AGC"

DestPlaceCode="DEL"

DestStationCode="NDLS"

TrainFare="468" />

<FareDetails

TrainNo="2615"

TrainClass="Second AC"

StartPlaceCode="AGR"

StartStationCode="AGC"

DestPlaceCode="DEL"

DestStationCode="NDLS"

TrainFare="203" />

</TrainFare>

 

please help me.

Answer posted by Support on Nov 04, 2008 05:16
The grid require incoming XML in specific format. 
If you want to use custom format you need to write custom data parsing code. 
Please check 
http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Custom_loading_types.html#grid_art_custloadtypes