Winform RadTreeview Find Id?

5 posts, 0 answers
  1. Murat
    Murat avatar
    4 posts
    Member since:
    May 2008

    Posted 15 Oct 2008 Link to this post

    Hi,

    I using radtreeview but I dont find Id relation in database.How is get that
    any idea ?
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 15 Oct 2008 Link to this post

    Hello m,

    I noticed that you have downloaded RadControls for ASP.NET AJAX. This is a forum for WinForms controls.

    Can you please explain in more detail the problem and the exact product / version you are using?

    Thanks

    Regards,
    Veselin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Murat
    Murat avatar
    4 posts
    Member since:
    May 2008

    Posted 15 Oct 2008 Link to this post

    hi

    I usign RadControls for WinForms Q1 2008 and I could Root item ID fallow code ;

    radTreeView1.SelectedNode.Key

    but I dont find most small parent ID. If I try that return up level node at most small parent example
    ID    Name    ParentID
    1      m           
    2      k               1
    3      c                2

    If I select c return k ParentID. How is select c(most parent) parentID
    thank you

    Best Regard
    Murat KARAKUS
    Database Administrator
      
  5. Nick
    Admin
    Nick avatar
    767 posts

    Posted 16 Oct 2008 Link to this post

    Hi Murat,

    Please update to our latest release - there are a lot of improvements and fixes. One of the changes is that the  Key property has been deprecated and should not be used. It is unrelated to your database key too. It was used as a unique id for a node just in our framework and with no persistence in mind.

    For your case, please use the Tag property to get the value member of the selected node:

    this.radTreeView1.SelectedNode.Tag 

    You should also set the ValueMember to your key column.

    Do not hesitate to write back if you have further questions.

    Greetings,
    Nick
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Murat
    Murat avatar
    4 posts
    Member since:
    May 2008

    Posted 16 Oct 2008 Link to this post

    Hi Mr. Nick,

    thanks for your help,
    I using sqldatareader.I take radtreeview1.SelectedNode.Text I make reading value datareader and than I give unique Id in database.
    but your answer best of :) I tested code.it running thats it.
    again
    thanks.

    best regards
    Murat KARAKUS
    Database Administrator
Back to Top
UI for WinForms is Visual Studio 2017 Ready