Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
170
Setting style/css dynamically in WebDataTree 12.2
posted

Hi.

I'm checking out how much of an effort it is to upgrade from our current UltraWebTree 11.1 to WebDataTree 12.2.

The challenge is that the existing code uses ReadXmlText to bind/load data into the control. I do not see a similar method in WebDataTree.

The current XML format we use is not tied to a schema; so what would be the easiest way to use this data format in the WebDataTree control.

Code snippet of current implementation...

XmlTextReader resultReader = new XmlTextReader(XMLString,XmlNodeType.Document,null);
ultraWebTree.ReadXmlText(resultReader,true,false);

The XMLString is something like... (I got one of the longest I could!)








Quote
189


Type of Business



Class of Business



Objects of Interest



Object Mame
564


Joint Membership
0






Co-Assured
0






Member



David Lloyd
6079811


Company name
60811






Contributors
0






Contract Rules
13


Contract for Object 1
24


Rule



Rule 1



Clauses
PPP111


CLause 1 for Object 1
82


CLause 2 for Object 1
83






Rule 2 for Object 1



Clauses
PPP222


CLause 1 for Object 1
82


CLause 2 for Object 1
83














Payment Amount














Assessment
1




Member Name
0


David LLoyd








Parents
No Data
Reply
  • 29417
    Offline posted

    Hello Ajeesh,

     

    Thank you for posting in our forum.

     

    There’s no similar method for the WebDataTree. The WebDataTree doesn’t have any presets like the UltraWebTree had.For the UltraWebTree loading the xml definition in this manner was possible since it supported the saving and creating of presents in that specific xml format.

    For the WebDataTree you could use a xml data source to populate the nodes however it will have to be in a different format than what you currently have in your xml file.There’s an example and explanation on how you can set up an xml data source for the WebDataTree here: http://help.infragistics.com/NetAdvantage/ASPNET/2011.1/CLR4.0/?page=WebDataTree_Binding_WebDataTree_to_an_Xml_Data_Source.html

     

    Let me know if you have any questions or concerns.

     

    Best Regards,

    Maya Kirova

    Developer Support Engineer

    Infragistics, Inc.

    http://es.infragistics.com/support

     

Children