Load XML from file with radcontrols for Winforms?

8 posts, 0 answers
  1. gdijim
    gdijim avatar
    13 posts
    Member since:
    May 2007

    Posted 07 Jun 2007 Link to this post

    http://www.telerik.com/community/forums/thread/b311D-bhcat.aspx


    I'm trying to load an XML file C:\treeview.xml

    I've tried manipulating this code about 100 different ways

    Anyone see what I'm doing wrong?  I'm a newb, I admit it -

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

     

    Dim xmlTree As RadTreeView = New RadTreeView

    xmlTree.ID = "RadTreeView1"

    xmlTree.ContentFile = "C:\treeview.xml"

    Controls.Add(xmlTree)

    End Sub


    I have already created this treeview in the designer - I'm not certain what I've done here is correct.  It tells me that

    xmlTree.ID = "RadTreeView1"
    xmlTree.ContentFile = "~/tree.xml"

    Aren't valid - XMLtree.ID and XMLTree.contentfile aren't members of Telerk.wincontrols.UI.radtreeview.

    Sorry in advance - I've ready everything I could find :/
    Thanks!
    Jim

  2. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 07 Jun 2007 Link to this post

    Hi Jim,

    RadTreeView for WinForms does not currently have the capability to load data from an XML file. We are planning to introduce this feature in the Q2 2007 release of RadControls for WinForms, due in the Fall.

     
    Regards,
    Jordan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. UI for WinForms is Visual Studio 2017 Ready
  4. JulioR
    JulioR avatar
    26 posts
    Member since:
    Dec 2006

    Posted 23 Jul 2007 Link to this post

    Hi Telerik Team,

    I would like to know when are you planning to launch Q2 2007 containing the load XML capability like in ASP treeviews. I have used the ASP controls and I'm very happy with them, but I hoped to find at least the samed functionality for winforms controls (honestly, I'm a little bit dissapointed :-(... I know is one of the first releases, so I hope you will fill the gaps in short with the new version.

    Could you please give us an exact date for the new version?

    Thanks in advance & regards,

    Julio
  5. Vassil Petev
    Admin
    Vassil Petev avatar
    1765 posts

    Posted 23 Jul 2007 Link to this post

    Hello JulioR,

    Thank you for your question.

    The treeview will have XML serialization / deserialization in Q2 2007, which is due in September. The only  non-serializable part will be the controls that are hosted inside a treeview, as the Control class is not serializable.

    This feature is already developed and is currently in initial testing phase. In case you want to test it for your case, please open a support ticket and request the latest treeview build - we will gladly send it to you..

     
    All the best,
    Rob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  6. craig
    craig avatar
    2 posts
    Member since:
    Dec 2007

    Posted 06 Dec 2007 Link to this post

    hi there,

    can i assume that the ability to bind xml directly to an instance of the treeview is now available, and if so, do you have any examples ?

    thanks

    c
  7. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 07 Dec 2007 Link to this post

    Well, craig, binding to XML as in XML Data Binding is not yet available. Rather XML serialization/deserialization functionality has been implemented. For more information on XML serialization, please refer to the XML Serialization example in the Quick Start application.


    All the best,
    Jordan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. craig
    craig avatar
    2 posts
    Member since:
    Dec 2007

    Posted 10 Dec 2007 Link to this post

    hi there,

    i see an example in c# but nothing in vb.net ?

    any chance of a vb.net example ?

    thanks

    craig
  9. Jordan
    Admin
    Jordan avatar
    547 posts

    Posted 10 Dec 2007 Link to this post

    Hm, it seems that we have not converted this exact scenario to VB, craig. Sorry for this. You could try using our code converter to convert the C# code to VB.NET, or wait for the Q3 release (due in a couple of weeks) when the VB.NET examples will be fully synchronized with the C# examples.

    Let me know if you experience problems in the conversion process.
     

    Regards,
    Jordan
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for WinForms is Visual Studio 2017 Ready