Treeview doesn't update

5 posts, 0 answers
  1. Manfred
    Manfred avatar
    53 posts
    Member since:
    Jan 2011

    Posted 22 Nov 2011 Link to this post

    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
  2. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 25 Nov 2011 Link to this post

    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.

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Daniel
    Daniel avatar
    19 posts
    Member since:
    Nov 2010

    Posted 07 Dec 2011 Link to this post

    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

  5. Manfred
    Manfred avatar
    53 posts
    Member since:
    Jan 2011

    Posted 08 Dec 2011 Link to this post

    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
  6. Julian Benkov
    Admin
    Julian Benkov avatar
    1135 posts

    Posted 12 Dec 2011 Link to this post

    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.

Back to Top
UI for WinForms is Visual Studio 2017 Ready