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

Reading xml Into ajax radgrid

1 Answer 83 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Henry
Top achievements
Rank 1
Henry asked on 04 Nov 2011, 10:52 PM
I am having trouble reading this xml file into Telerik  Ajax RadGrid. The problem is that the xml file is in a weird format that Telerik does not seem to recognize.  Here is an example from the xml file that I want to read into my grid. Does anyone have any suggestions? Thanks
 

<Attribute>
     <Object>
         <Id>27</Id>
         <Type>212</Type>
    </Object>
   <AttributeDef>
        <Id>38</Id>
  </AttributeDef>
  <RowId>0</RowId>
  <StringValue/>
  <DecimalValue xsi:nil="true"/>
  <DateTimeValue xsi:nil="true"/>
  <LongStringValue/>
  <IsLinked>Y</IsLinked>
  <MayModify>Y</MayModify>
  <ValueDescription/>
</Attribute>

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 09 Nov 2011, 03:21 PM
Hello Henry,

RadGrid only binds to flat XML structures out of the box. If you have more complex (hierarchical) XML, you will have to manually load the XML in DataSet or try the approach demonstrated in our RSS binding demo here:
RSS binding

Regards,
Daniel
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Henry
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Share this question
or