Error when renaming first node in self referenced dtabase binded radTree

3 posts, 1 answers
  1. Anoop
    Anoop avatar
    18 posts
    Member since:
    Dec 2012

    Posted 27 Dec 2012 Link to this post

    I am using sql server database.
    1. It is a self referencing database created as per Binding to Self Referencing Data in help document
    2.Table definition is given below.
    CREATE TABLE [dbo].[Node] (
    [ParentID] INT NULL,
    [Name] TEXT NULL,
    [Note] TEXT NULL,

    3.code binded as folws
    this.radTreeView1.DisplayMember = "Name";
    this.radTreeView1.ParentMember = "ParentID";
    this.radTreeView1.ChildMember = "ID";
    this.radTreeView1.ValueMember = "ID";
    radTreeView2.TreeViewElement.EditMode =TreeNodeEditMode.Text;

    4.Error occurs in these case.Run project and select first root node rename it ,object reference not set to an instance of object error
    5.if i rename any other node and rename first root node error will not occur.Did i done any thing wrong ?

  2. Answer
    Boryana avatar
    330 posts

    Posted 28 Dec 2012 Link to this post

    Hello Anoop,

    Thank you for writing.

    I replicated the exception you describe. The issue is logged to our Public Issue Tracker under ID 13880. To vote for it and subscribe to its status updates follow this link: Please excuse us for the caused inconvenience. We will do our best to address the issue in a future release. I have updated your Telerik points for this report report.

    One approach to avoid the exception is to create a custom RadTreeViewElement and override its EndEditCore method. This suggestion is implemented in the attached sample project. I hope you find it useful.

    Let me know if you encounter further issues.

    the Telerik team
    Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
  3. DevCraft R3 2016 release webinar banner
  4. Anoop
    Anoop avatar
    18 posts
    Member since:
    Dec 2012

    Posted 29 Dec 2012 Link to this post

    Thanks for the solution.First i am unable to get design view so i ha changed  private CustomRadTreeView radTreeView1; to public CustomRadTreeView radTreeView1; and i got design view
Back to Top