[CLOSED] Hiding Labels within Anchor (FormLayout)

  1. #1

    [CLOSED] Hiding Labels within Anchor (FormLayout)

    *Hi,

    I'm trying to hide the field plus label (textbox, combobox) in codebehind. Is there a better solution than this at present?


    http://forums.ext.net/showthread.php...ght=hide+label



    TextField.Hide() only hides the input field, not the label. TextField.HideLabel = true appears to have no affect.


    Cheers


    Steve
  2. #2

    RE: [CLOSED] Hiding Labels within Anchor (FormLayout)

    Hi Steve,

    yesterday we made one change which allows to get label on client-side. If you need show/hide label in form layout for concrete field then use the following code (update from SVN first)*


    TextField1.AddScript("{0}.label.hide();", TextField1.ClientID);
    TextField1.AddScript("{0}.label.show();", TextField1.ClientID);



    We will add more*convenient*server side functions for label soon.


  3. #3

    RE: [CLOSED] Hiding Labels within Anchor (FormLayout)

    *Hi Vlad,

    OK, I'll use these functions for now. My only concern is that if you are using these within a viewport, and switching between hiding and showing labels, you might get a buildup of rubbish within the page. Although you execute the added code immediately, I'm assuming it still stays within the DOM which then grows with each operation.


    Looking forward to the server-side control. Cheers!


    Steve
  4. #4

    RE: [CLOSED] Hiding Labels within Anchor (FormLayout)

    ...switching between hiding and showing labels, you might get a buildup of rubbish within the page. Although you execute the added code immediately, I'm assuming it still stays within the DOM which then grows with each operation.
    The js does not create DOM objects. Its just executing a js function.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] CheckboxGroup labels and anchor tag
    By hillscottc in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: May 05, 2010, 7:39 PM
  2. [CLOSED] [1.0] Notes on Labels
    By danielg in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Feb 19, 2010, 10:48 AM
  3. Editable Labels
    By KCoder in forum 1.x Help
    Replies: 6
    Last Post: Feb 15, 2010, 7:18 AM
  4. Replies: 2
    Last Post: Feb 05, 2010, 10:11 AM
  5. [CLOSED] dynamic labels
    By alexp in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 10, 2009, 2:53 PM

Posting Permissions