Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Treeview > Treeview doesn't update

Not answered Treeview doesn't update

Feed from this thread
  • Manfred avatar

    Posted on Nov 22, 2011 (permalink)

    Hi there,

    i have a MDI-Application with one window which contains a TreeView.
    When loading the Window, I do the function FillUserList() and it works fine.
    But if I try to update th elist after that, it failed.
    This is my code for loading the data:

    rtvUserList.DataSource = null;
                  
    lsmu = RfcCalls.GetListOfMainUsers();
                  
    rtvUserList.DataSource = lsmu;
    rtvUserList.DisplayMember = "DisplayValue\\DisplayValue";
    rtvUserList.ValueMember = "Uname";
    rtvUserList.Name = "DisplayValue";
    rtvUserList.ChildMember = "SIPMainUser\\Subuser";
    rtvUserList.ClearSelection();
    I debugged it and my data is like it has to be.
    I tried a Refresh() but that also doesn't work.

    Any hint.

    Best Regards
    Manfred

    Reply

  • Julian Benkov Julian Benkov admin's avatar

    Posted on Nov 25, 2011 (permalink)

    Hi Manfred,

    We have analyzed the issue and we believe that we managed to address it. You can find the internal build that addresses the issue in Your Account. The version of the build is v2011.3.11.1124.

    Thank you for reporting the issue. Your Telerik points have been updated.
    Best wishes,
    Julian Benkov
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

    Reply

  • Daniel avatar

    Posted on Dec 7, 2011 (permalink)

    Hi Manfred,

    I'm having a similar issue since converting my code to Q3-2011, the treeview control does not display ist content

    switch (_InfoList[0].InfoType)
    {
        case InfoType.ItemInfo:
            break;
        case InfoType.JobInfo:
            this.radTreeViewSelection.ValueMember = "JobNo";
            this.radTreeViewSelection.DisplayMember = "Displayname";
            this.radTreeViewSelection.DataSource = _InfoList.Cast<JobInfo>();
            break;
        case InfoType.TaskInfo:
            this.radTreeViewSelection.ValueMember = "TaskNo";
            this.radTreeViewSelection.DisplayMember = "Displayname";
            this.radTreeViewSelection.DataSource = _InfoList.Cast<TaskInfo>();
            break;
        case InfoType.ResourceInfo:
            this.radTreeViewSelection.ValueMember = "ResourceNo";
            this.radTreeViewSelection.DisplayMember = "Displayname";  //"ResourceName"
            this.radTreeViewSelection.DataSource = _InfoList.Cast<ResourceInfo>();
            break;
        case InfoType.Statusinfo:
            this.radTreeViewSelection.ValueMember = "ProgresStatus";
            this.radTreeViewSelection.DisplayMember = "Statusname";
            this.radTreeViewSelection.DataSource = _InfoList.Cast<StatusInfo>();
            break;
        case InfoType.WorkplaceInfo:
            this.radTreeViewSelection.ValueMember = "WorkplaceNo";
            this.radTreeViewSelection.DisplayMember = "Displayname"; //"WorkplaceName";
            this.radTreeViewSelection.DataSource = _InfoList.Cast<WorkplaceInfo>();
            break;
     
        case InfoType.Worktypeinfo:
            this.radTreeViewSelection.ValueMember = "WorktypeNo";
            this.radTreeViewSelection.DisplayMember = "Displayname"; //"WorktypeName";
            this.radTreeViewSelection.DataSource = _InfoList.Cast<WorktypeInfo>();
            break;
    }

    Is that issue the same as  in  v2011.3.11.1124.

    Thanks for Feedback
    Daniel

    Reply

  • Manfred avatar

    Posted on Dec 8, 2011 (permalink)

    Hi Daniel,

    not really, for me it was a bug in the TreeView, they fixed it with  v2011.3.11.1124.

    For me to understand what you are doing, I think I need to know what you are doing in the Cast-Method.
    I think, there you should search for the root of your problem.

    Best Regards
    Manfred

    Reply

  • Julian Benkov Julian Benkov admin's avatar

    Posted on Dec 12, 2011 (permalink)

    Hi Manfred and Daniel,

    Daniel, as Manfred said the issue is addressed in 2011.3.11.1124 version. You can download and try the internal build version (2011.3.11.1124) or you can wait for the Service Pack release scheduled for the end of this week. This Service Pack will contain additional fixes and improvements for RadTreeView control.

    If you continue to experience the issues, please open a support ticket and send as a sample project to investigate the issue locally. Thank you for your cooperation.

    Regards,
    Julian Benkov
    the Telerik team

    Q3’11 of RadControls for WinForms is available for download (see what's new). Get it today.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Treeview > Treeview doesn't update
Related resources for "Treeview doesn't update"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]