K2DataGrid and XML

  • 29 December 2005
  • 2 replies
  • 2 views

Badge +1
Problem: I have a K2.Net Smartform that has a K2DataGrid control embedded within the page. The K2DataGrid is bound to an XMLField within the process. When I have multiple nodes within the XML document the datagrid doesn't render the data correctly, the datagrid will have the appropriate number of rows with respect to the number of XML nodes; however, the first xml node is the only data showing in the grid. I have set the following in the datagrid control properties.
Datafield=ProcXML: NewConnection
Datapath = /ReferenceData/DataValue

Example: XML data
<ReferenceData>
<DataValue>
<ConnectionType>Relational</ConnectionType>
<ApplicationId>mnbhjkl</ApplicationId>
</DataValue>
<DataValue>
<ConnectionType>Application</ConnectionType>
<ApplicationId>asddff45349</ApplicationId>
</DataValue>
<DataValue>
<ConnectionType>Queue</ConnectionType>
<ApplicationId>poiuyt123456</ApplicationId>
</DataValue>
</ReferenceData>



Thanks for your help!

2 replies

Badge +1
I didn't mention that I was also using a FooterTemplate to add additional data to the XML schema on the fly using the K2 ROM.....

Anyway... I figured out a solution thanks anyway.
Badge +4
Pleas, please, please, could you tell me how you did this? I am getting nowhere with precisely this problem........

A few lines of code in a simple process, if you have the time...

Many thanks
Graham

Reply