show mask on direct select of dynamicaly generated combobox

  1. #1

    show mask on direct select of dynamicaly generated combobox

    Hello , here goes my problem

    i am generating the controls dynamically at page_init
    controls are in this format
    Panel -> FormPanel's->textbox\combobox..etc

    also the Directselect handler's are specified , which fire without any issues . The problem is that i need to show a mask on direct select
    fyi The comboboxes are loaded via items.additem and not via a STORE . any help is appreciated
  2. #2
    Hi,

    You should configure the DirectEvent with EventMask.

    Example
    <ext:ComboBox runat="server">
        <DirectEvents>
            <Select OnEvent="Select">
                <EventMask ShowMask="true" />
            </Select>
        </DirectEvents>
    </ext:ComboBox>
  3. #3
    Quote Originally Posted by Daniil View Post
    Hi,

    You should configure the DirectEvent with EventMask.

    Example
    <ext:ComboBox runat="server">
        <DirectEvents>
            <Select OnEvent="Select">
                <EventMask ShowMask="true" />
            </Select>
        </DirectEvents>
    </ext:ComboBox>
    Thanks Daniil for the reply .

    i guess this did the trick ( the elements were dynamically generated , and i need a mask on the whole FormPanel )


    Ext.Net.ComboBox ddlDynamic = new ComboBox();
                                ddlDynamic.ID = cList.controlId;
                                ddlDynamic.FieldLabel = cList.controlLabel;
                                ddlDynamic.EmptyText = "Select a value....";
                                ddlDynamic.EmptyValue = "";
                                ddlDynamic.AutoWidth = true;
                                ddlDynamic.TypeAhead = true;
                                ddlDynamic.Mode = Ext.Net.DataLoadMode.Local;
                                ddlDynamic.TriggerAction = TriggerAction.All;
                                ddlDynamic.SelectOnFocus = true;
                                ddlDynamic.DirectEvents.Select.EventMask.ShowMask = true;
                                ddlDynamic.DirectEvents.Select.EventMask.MinDelay = 1000;
                                ddlDynamic.DirectEvents.Select.EventMask.Target = MaskTarget.CustomTarget;
                                ddlDynamic.DirectEvents.Select.EventMask.CustomTarget = "#{pnlDetails}";
    Last edited by Daniil; Jul 12, 2012 at 1:08 PM. Reason: Please use [CODE] tags
  4. #4
    Could you clarify is the issue still actual? If yes, please provide a full example to reproduce the problem.
  5. #5
    Quote Originally Posted by Daniil View Post
    Could you clarify is the issue still actual? If yes, please provide a full example to reproduce the problem.
    Kindly close the thread

Similar Threads

  1. ComboBox stays open after Select Direct Event
    By adamdc78 in forum 1.x Help
    Replies: 2
    Last Post: Sep 24, 2011, 10:01 PM
  2. Replies: 4
    Last Post: Sep 14, 2011, 8:01 PM
  3. Replies: 2
    Last Post: May 05, 2011, 10:16 AM
  4. [CLOSED] Hide and Show a Tab in Select Event of a ComboBox
    By pdcase in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 11, 2010, 2:32 PM
  5. show mask
    By l0vl0v in forum 1.x Help
    Replies: 1
    Last Post: Jan 14, 2010, 1:05 PM

Tags for this Thread

Posting Permissions