[CLOSED] Removing items from a grouptabpanel programatically

  1. #1

    [CLOSED] Removing items from a grouptabpanel programatically

    How can i remove items from a grouptabpanel programatically on page load? I have a grouptabpanel with some panels in it, which i create in aspx (markup). Depending on the user profile, i want to remove some of theses panels on code behind. How can i do that? Already tried calling groupTabPanel.Items.Remove(), passing the panel i want to remove as a parameter, but didn't work.
    Last edited by Daniil; Oct 06, 2010 at 3:06 PM. Reason: [CLOSED]
  2. #2
    Hi Pablo,

    I tried the following code in my example based on this
    https://examples1.ext.net/#/TabPanel...anel/Overview/
    and seems it works as expected.

    To remove a whole group please use the Groups collection of GroupTabPanel.
    To remove an item within a GroupTab please use the Items of this GroupTab.

    Example
    this.GroupTabPanel1.Groups.Remove(this.GroupTab1);
    this.GroupTab1.Items.Remove(this.Panel1);

Similar Threads

  1. Removing items from calendar
    By egvt in forum 1.x Help
    Replies: 0
    Last Post: May 07, 2012, 4:18 PM
  2. [CLOSED] How to close a ContextMenu programatically
    By randy85253 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 26, 2012, 9:17 PM
  3. [CLOSED] Increase spacing between items in grouptabpanel
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 16, 2011, 1:25 PM
  4. Removing Items From Combobox
    By Rakeshkumar.a in forum 1.x Help
    Replies: 0
    Last Post: Jan 31, 2011, 12:10 PM
  5. [CLOSED] Select TreeNode Programatically
    By Ben in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 04, 2009, 9:45 AM

Posting Permissions