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

Method IsEmpty

3 Answers 55 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Yamil
Top achievements
Rank 1
Yamil asked on 09 May 2008, 03:48 PM
Hi. I have a RadTreeView and i checked if it is empty using RadTreeView.IsEmpty but noew with RadControls for ASP.NET AJAX,  this method always return true.
I find a workaround, RadTreeView.Nodes.Count...
Is this method deprecated ? If so, always return true...

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 12 May 2008, 11:00 AM
Hi Yamil,

Indeed there is a bug in the IsEmpty property. We have fixed it now and the fix would be part of the upcoming Service Pack release. Till then you can check the Count property of the Nodes collection.

Regards,
Albert
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Ron
Top achievements
Rank 1
answered on 12 Oct 2009, 04:46 PM
Hi,

I'm using the Q1 2009 and this method still returns true when there are nodes in the treeview.
Was this Issue solved or am I missing something?

if (RadTreePaperStock.IsEmpty)

Thanks,

 

Ron

0
Veselin Vasilev
Telerik team
answered on 15 Oct 2009, 02:02 PM
Hi Ron ,

It should work as expected. The code for that property is straightforward:

public bool IsEmpty
{
    get { return Nodes.Count == 0; }
}

Can you tell us how to reproduce the problem?

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
Yamil
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Ron
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or