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
235
Xml Data Source Binding issue to WHDG
posted

Dear Sir,

Below is data source which use to render proper with UltraWebGrid(Version:11.1) with view type Hierarchical.  

But now using WebHierarchicalDataGrid(v 13.2) it doesn't show child records. It only shows parent rows.

<?xml version="1.0" standalone="yes"?
<NewDataSet>
  <Category>
  <CategoryID>1</CategoryID>
    <CategoryName>Beverages</CategoryName>
    <Description>Soft drinks</Description>   
  </Category> 
     <Product>
    <ProductID>1</ProductID>
    <ProductName>Coke</ProductName>
    <QuantityPerUnit>1</QuantityPerUnit>
    <UnitPrice>50</UnitPrice>   
  </Product>
    <Product>
     <ProductID>2</ProductID>
    <ProductName>Pepsi</ProductName>
    <QuantityPerUnit>1</QuantityPerUnit>
    <UnitPrice>50</UnitPrice>
  </Product>
 
  </NewDataSet>

Please find attached code & let me know if I am missing anything.

Thanks in Advance!

Thanks & Regards,

Vinayak

WHDGSample.zip
  • 540
    posted

    Hi Parikshit,

    I'm just following up to see if you need any further assistance with this issue. If so please let me know.

    Sincerely,
    Daniel Arnaudov
    Infragistics, Inc.

  • 540
    Verified Answer
    posted

    Hello Parikshit Sehgal,

    Thank you for providing the sample and such detailed explanation of the problem!
    I have investigated the issue and it seems that you need to define data source relations.
    I have attached a sample with the relations added in the code behind. Note that the xml has changed with added "categoryID" to "products".

    If you need further assistance please let me know.

    WHDGSample.zip