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

populate xml string in telerik radgridview

2 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sridhar
Top achievements
Rank 1
Sridhar asked on 21 Oct 2011, 08:11 AM
Hi,

i am working in a project with silverlight 4, mvvm pattern and telerik controls.

It is possible to population xml string content to a radgridview.


Xml String
--------------

<NewDataSet>
  <Table1>
    <ID>17668</ID>
    <CODE>67</CODE>
    <NAME>03822</NAME>
    <DESCRIPTION>Test Desc<DESCRIPTION/>
    <MODULE>6</MODULE>
  </Table1>
<NewDataSet>


i want to populate this content to radgridview, the column name and count is not static, it will change dynamically based on the data from the database.

So that i cant able to create static properties here...

Thanks in advance

Sridhar V.

2 Answers, 1 is accepted

Sort by
0
Accepted
Maya
Telerik team
answered on 24 Oct 2011, 06:52 AM
Hi Sridhar,

Please take a look at this article for a reference.

 
Best wishes,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Sridhar
Top achievements
Rank 1
answered on 24 Oct 2011, 11:28 AM
Hi Maya,

Thanks for your response

I have already seen that article, but my problem is different one.

The column name and count of the column will be dynamic. My xml string will change based on the my store procedure result

Today
--------------
<NewDataSet>
  <Table1>
    <ID>17668</ID>
    <CODE>67</CODE>
    <NAME>03822</NAME>
    <DESCRIPTION>Test Desc<DESCRIPTION/>
    <MODULE>6</MODULE>
  </Table1>
<NewDataSet>

Tomorrow
--------------

<NewDataSet>
  <Table1>
    <CustomerID>17668</CustomerID>
    <CustName>67</CustName>
    <DESCRIPTION>Test Desc<DESCRIPTION/>
    <MODULE>6</MODULE>
  </Table1>
<NewDataSet>

So that i can't fix the class and properties name static here as define in that article.
Because the column name and count will not be static as above.

Thanks in advance

Sridhar V.
Tags
General Discussions
Asked by
Sridhar
Top achievements
Rank 1
Answers by
Maya
Telerik team
Sridhar
Top achievements
Rank 1
Share this question
or