populate xml string in telerik radgridview

3 posts, 1 answers
  1. Sridhar
    Sridhar avatar
    2 posts
    Member since:
    Oct 2011

    Posted 21 Oct 2011 Link to this post

    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. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 24 Oct 2011 Link to this post

    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 >>

  3. Sridhar
    Sridhar avatar
    2 posts
    Member since:
    Oct 2011

    Posted 24 Oct 2011 Link to this post

    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.
Back to Top