This is a migrated thread and some comments may be shown as answers.

How to Programmatically bind xml to RadGrid?

1 Answer 240 Views
Grid
This is a migrated thread and some comments may be shown as answers.
smith spd
Top achievements
Rank 1
smith spd asked on 08 Jun 2010, 08:41 PM

Few Issues with below xml:

<?xml version="1.0" encoding="utf-8"?>  
<Results> 
  <Products xmlns="">  
    <DesignDate>06/15/2005</DesignDate> 
    <SoldDate>06/30/2006</SoldDate> 
    <Product_No.>7289</Product_No.> 
    <Customer>Thomas</Customer> 
    <Product_Type>Accessories</Product_Type> 
    <Price_Today>380</Price_Today> 
  </Products> 
  <Products xmlns="">  
    <DesignDate>12/14/2004</DesignDate> 
    <SoldDate></SoldDate>  
    <Product_No.>3136</Product_No.> 
    <Customer>Karie</Customer> 
    <Product_Type>Electronics</Product_Type> 
    <Price_Today>333</Price_Today> 
  </Products> 
</Results> 

1) How to bind this xml Using DOM Model to RadGrid from serverside? I don't want to pull xmldatasource and gridview with columns on FRONT end(aspx).
2) How to dynamically bind the nodes DesignDate, SoldDate....as columns to RadGrid with Data? b'coz there can be many columns with different column names and I don't to specify each by saying: HeaderText="DesignDate". I would like to generate this dynamically from serverside.
Would be great if provided with a code to make this working.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 11 Jun 2010, 04:35 PM
Hello Smith,

Please stick to one thread:
RadGrid with XmlDataSource
Populate Grid from xml

Regards,
Daniel
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Grid
Asked by
smith spd
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or