This is a migrated thread and some comments may be shown as answers.

Treeview doesn't update

4 Answers 98 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
Manfred
Top achievements
Rank 2
Manfred asked on 22 Nov 2011, 11:01 AM
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

4 Answers, 1 is accepted

Sort by
0
Julian Benkov
Telerik team
answered on 25 Nov 2011, 10:56 AM
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.

0
Daniel
Top achievements
Rank 1
answered on 07 Dec 2011, 05:23 PM
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

0
Manfred
Top achievements
Rank 2
answered on 08 Dec 2011, 07:21 AM
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
0
Julian Benkov
Telerik team
answered on 12 Dec 2011, 12:34 PM
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.

Tags
Treeview
Asked by
Manfred
Top achievements
Rank 2
Answers by
Julian Benkov
Telerik team
Daniel
Top achievements
Rank 1
Manfred
Top achievements
Rank 2
Share this question
or