How could I make work the same sample is provided by IgniteUI about XML Binding in Hierarchicalgrid but...
with a diferent XML like this:
var xmlDoc = '<OrgChart Name="Lista de Empleados">' + '<Employee Name="Gustavo Achong" Age="42" Email="gachong@adventureworks.com">' + '<NewEmployee Name="Kim Abercrombie" Age="33" Email="kabercrombie@adventureworks.com" clave="1" />' + '<NewEmployee Name="Lawrence Tapley" Age="52" Email="ltapley@adventureworks.com" clave="2" />' + '</Employee>' + '<Employee Name="Catherine Abel" Age="27" Email="cabel@adventureworks.com">' + '<NewEmployee Name="Kristen Anderson" Age="30" Email="kanderson@adventureworks.com" clave="3"/>' + '<NewEmployee Name="Richard Lee" Age="25" Email="rlee@adventureworks.com" clave="4" />' + '<NewEmployee Name="Victoria Gramley" Age="23" Email="vgramley@adventureworks.com" clave="5" />' + '</Employee>' + '<Employee Name="Adrienne Mauro" Age="27" Email="amauro@adventureworks.com">' + '<NewEmployee Name="Christopher Chadwick" Age="37" Email="cchadwick@adventureworks.com" clave="6"/>' + '</Employee>' + '</OrgChart>';
I´ve change lots of things but I can´t get with the solution.
I have to know what instruction I need to use just to tell the DataSchema that NewEmployee is the second level.
Hi,
Thank you for posting in the Infragistics community !
Unfortunately I was not able to understand what is the exact issue and I am not sure if you are talking about the igHierarchicalGrid or the WebHierarchicalDataGrid. Please specify those and explain in more detail what you are struggling with. Meanwhile you can check online samples for:
igHierarchicalGrid XML Binding - http://www.igniteui.com/hierarchical-grid/xml-binding
Thanks for replay.
My issue is that I need to make a Grid (so, the problem is with the igHierarchicalGrid), But my xml doesn´t come like the Infragistics´s sample.
my xml is like this.
The only samples I have seen just have the same label name:
I am currently investigating this further and will update you on the issue on 4th Jan.
Thanks so much.
Anyways, I´ll be trying more options.
Hi everyone.
I´ve been trying how to make my sample work, having no succees.
I hope you can give me some option with Infragistics to close this discus.
Hi Emmanuel,
Sorry for my late response. I have taken the issue to dissuss with our dev team so I will update you with our findings. Thank you for your patience and understanding.
It turns out that the childDataProperty is a recursive tag that will loop through the XML data levels, thus all fields down the hierarchy should be the same one that matches the childDataProperty. Otherwise bidning will stop at the level where those do not match.