[CLOSED] Pass value to event handler

  1. #1

    [CLOSED] Pass value to event handler

    I need to pass a value to the function attached tot the click event of the button. Problem is that this value (=text that needs to appear on button) is set in the code behind:

    <ext:Button ID="btnOptions" runat="server" StyleSpec="margin-right: 7px;" Text="[Options]">
         <Listeners>
              <Click Handler="Cims.Login.showOptions(this, #{oLoginPanelOptions}, #{oLoginWindow}, 'Value');" />
         </Listeners>
    </ext:Button>
  2. #2

    RE: [CLOSED] Pass value to event handler

    Hi,

    Set this handler in code-behind as well
    btnOptions.Listeners.Click.Handler = string.Format("Cims.Login.showOptions(this, #{oLoginPanelOptions}, #{oLoginWindow}, '{0}');", myValue);
    *




Similar Threads

  1. Combo box event handler
    By Shuaib in forum 1.x Help
    Replies: 1
    Last Post: Oct 10, 2012, 1:59 PM
  2. Replies: 1
    Last Post: Jun 28, 2012, 9:39 PM
  3. [CLOSED] Event handler before direct event handlers
    By matejgolob in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jun 08, 2012, 2:31 PM
  4. Replies: 1
    Last Post: Nov 29, 2010, 4:15 PM
  5. Event onCLick and Handler.
    By flaviodamaia in forum 1.x Help
    Replies: 4
    Last Post: Sep 03, 2008, 11:42 AM

Posting Permissions