Gridnotsupportedexception when trying to bind xml to datagrid

2 posts, 0 answers
  1. G S S
    G S S avatar
    12 posts
    Member since:
    Sep 2007

    Posted 17 Apr 2008 Link to this post

    First of all, I'd just like to say that Telerik Controls are great and do wonders for my work in ASP.NET.


    My question is, I have a simple xml file (see below) and I want to bind this to the datagrid. When I do this, I get a GridNotSupportedException: Cannot find any bindable properties.


    When binding XML, I thought that the code in the codebehind will be automatically generated for me, but it wasn't? So do I have to enter this code:


    http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/GridFromXml/DefaultCS.aspx

    My XML file is like this:

    <?xml version="1.0"?>
    <Skillset>
      <skill>
          <technology>
                      <type>Charlie</type>
                      <experience>Key</experience>
            </technology>
               
        </skill>
       
     
    </Skillset>

    What do I do?
    Alternatively, if I can't bind to XML, what collection works with the Grid which will support multiple columns?

    Thanks
  2. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 18 Apr 2008 Link to this post

    Hi :)

    I would suggest you to use XmlDataSource.


    You can review the following RadGrid resources:


    Editing XML using XmlDataSource
    Population/data editing with XMLDataSource control


    Regards...
    <John:Peel />
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top