in
Forums
Blogs
Files
Devexpress.Com
Client Center
Support Center
DevExpress Channel

How to remove layoutcontrolItem from layoutcontrol in runtime

Last post 10/29/2008 9:36 PM by Saif Khan. 3 replies.
Page 1 of 1 (4 items)
Sort Posts:
Previous Next
  • 2/6/2008 5:00 AM

    Lightning [li] How to remove layoutcontrolItem from layoutcontrol in runtime

    While loading some of the layoutcontrolItem has to be removed from layout control.

    Is there any way to remove those?

    Presently i am doing like

    layoutcontrolItem .HideToCustomization()

    layoutcontrolItem .ShowInCustomizationForm =

    False

    When i did like this, the control will be in layout and an instance that will bw visible false. how to remove compltely?

     

  • 10/15/2008 10:29 AM In reply to

    • I S
    • Not Ranked
    • Joined on 10/15/2008
    • Posts 1

    Re: How to remove layoutcontrolItem from layoutcontrol in runtime

    Add two line of code after those :

    myLayoutControl.Root.Remove(layoutcontrolItem);

    layoutcontrolItem.Dispose();

     

  • 10/16/2008 7:11 AM In reply to

    Re: How to remove layoutcontrolItem from layoutcontrol in runtime

    Note: this code does not dispose layoutcontrolItem.Control. Please call the layoutcontrolItem.Control.Dispose method dirrectly if you need it.

    Thanks, Roman

    R&D, .NET Team
    Developer Express Inc.

    PS. If you wish to receive direct assistance from our Support Team, use Support Center at http://www.devexpress.com/Support/Center
  • 10/29/2008 9:36 PM In reply to

    Re: How to remove layoutcontrolItem from layoutcontrol in runtime

     I was told by their support "set its ContentVisible property to false".

     

    Thanks

    try an espresso with mountain dew!
Page 1 of 1 (4 items)
Copyright © 1998-2008 Developer Express Inc.
ALL RIGHTS RESERVED