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 Hristo.
Thanks for your replay. I know that my sample is including two deferent childs (Employee and Empleado).
What I need, if I haven´t clear, it´s to find a way to make your HierarchicalGrid for an xml like this, with two childs.
I can make your sample work with just one child name (Employee) but for my goal it isn´t enough.
I don´t know if the problem would be the "ig.DataSchema" or another object.
I´ll really apreciate your help.
Hi Emmanuel,
Thank you for the code snippet shared.
Actually the things you changed make your example fail, because the widget search for the xpath string in the first node of the searchField, which is
var xmlDoc = '<OrgChart Name="Lista de Empleados">' + '<Employee Name="Gustavo Achong" Age="42" Email="gachong@adventureworks.com">' +
at the same time you have xpath: "Empleado" , so the bolded strings does not match. Currently I don't see a way how to define child fields for every given field, so I suggest you stick to the provided example where the childDataProperty is valid for all levels down the hierarchy. Meanwhile I will further investigate this scenario in order to suggest accordingly.
I still need help with my sample.
I will apreciate your answer.
I understand.
ok, my sample is atached.
I´ve changed some parts from your example of igHierarchicalGrid, but it is like the same.
Hi,
Maybe you have tried to upload screenshots, but this failed. Please try to upload any files you want in zip format as this is the system requirement. Also provide your sample so that I can run it on my side and investigate.