I'm using Kendo UI Grid with XML as DataSource. I want to transfer additional data in the XML as the grid data.
My dataSource schema looks like this
schema: {
type: "xml",
id: "field 1",
data: "/data/dataset",
total: "/total/text()",
model: {
fields: {
field1: "field1/text()",
field2: "field2/text()"
}
}
}
My XML like this:
<total>1</total><data><dataset><field1>test</field1><field2>test</field2></dataset></data>
No i want to transfer additional data like this:
<total>1</total><data><dataset><field1>test</field1><field2>test</field2></dataset></data><additionaldata>test</additionaldata>
and i want to have access on it it in the "dataBound" event. Is it possible and if how? I hope someone can help me.
My dataSource schema looks like this
schema: {
type: "xml",
id: "field 1",
data: "/data/dataset",
total: "/total/text()",
model: {
fields: {
field1: "field1/text()",
field2: "field2/text()"
}
}
}
My XML like this:
<total>1</total><data><dataset><field1>test</field1><field2>test</field2></dataset></data>
No i want to transfer additional data like this:
<total>1</total><data><dataset><field1>test</field1><field2>test</field2></dataset></data><additionaldata>test</additionaldata>
and i want to have access on it it in the "dataBound" event. Is it possible and if how? I hope someone can help me.