Skip to main content
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!
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.
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