LoadOnDemand Enabled and Expanded Indexes

7 posts, 0 answers
  1. Lukasz Kalbarczyk
    Lukasz Kalbarczyk avatar
    24 posts
    Member since:
    Feb 2010

    Posted 12 Dec 2011 Link to this post

    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?
  2. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 14 Dec 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Lukasz Kalbarczyk
    Lukasz Kalbarczyk avatar
    24 posts
    Member since:
    Feb 2010

    Posted 14 Dec 2011 Link to this post

    No problem for me - I found the solution ;)

    Something is wrong with selected items after expanding too.

    Thx for reply.
  5. Robin
    Robin avatar
    23 posts
    Member since:
    Oct 2011

    Posted 14 Aug 2012 Link to this post

    Has this been fixed?

    Thank you.
  6. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 15 Aug 2012 Link to this post

    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.
  7. Robin
    Robin avatar
    23 posts
    Member since:
    Oct 2011

    Posted 15 Aug 2012 Link to this post

    When did that release come out? 
    Thank you.
  8. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 16 Aug 2012 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017