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

LoadOnDemand Enabled and Expanded Indexes

6 Answers 72 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Lukasz Kalbarczyk
Top achievements
Rank 1
Lukasz Kalbarczyk asked on 12 Dec 2011, 05:38 PM
Here we can see a part of my tree:

a

|- b
|- c
|- d
|- e


I'm expanding d:

a
|- b
|- c
|- d
|  |- f
|- e

I'm expanding f:

a
|- b
|- c
|- d
|  |- f
|  |  |- g
|- e


Now I'm expandng c:


a
|- b
|- c
|  |- h
|  |  |- i
|- d
|  |- f
|- e

f is no more expanded. Instead of f, h was expanded and I see i under h instead of g under f.

All branches are bound with needdatasource events: NeedDataSource or ChildItemsDataBind for children.

The only way to fix it is:

on Page_Load event: to find all items connected to ExpandedIndexes and save their DataKeys
on ItemDataBound set item.Expanded to true/false

But when I set item.Expanded to false, it is set up back to true.

I must remove its from ExpandedIndexes manually, using Page_PreRender...

Why

item.Expanded = false

doesn't do that?

6 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 14 Dec 2011, 06:37 PM
Hello Lukasz,

We were able to reproduce the behavior you are talking about and we consider this as a bug in our current RadTreeList implementation. We have forwarded this to our developer team for further investigation.

We apologize for the inconvenience caused.

Kind regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Lukasz Kalbarczyk
Top achievements
Rank 1
answered on 14 Dec 2011, 10:33 PM
No problem for me - I found the solution ;)

Something is wrong with selected items after expanding too.

Thx for reply.
0
Robin
Top achievements
Rank 1
answered on 14 Aug 2012, 01:11 PM
Has this been fixed?

Thank you.
0
Andrey
Telerik team
answered on 15 Aug 2012, 12:53 PM
Hello,

Yes, this bug was fixed for the Q3 2011 SP1 release of RadControls for ASP.NET Ajax suite.

Regards,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Robin
Top achievements
Rank 1
answered on 15 Aug 2012, 01:26 PM
When did that release come out? 
Thank you.
0
Andrey
Telerik team
answered on 16 Aug 2012, 12:25 PM
Hi,

The Q3 2011 SP1 release was introduced 5.01.2012. You could download it from your account home page.

Greetings,
Andrey
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeList
Asked by
Lukasz Kalbarczyk
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Lukasz Kalbarczyk
Top achievements
Rank 1
Robin
Top achievements
Rank 1
Share this question
or