Dynamically-added ImageCommands and DirectEvents

  1. #1

    Dynamically-added ImageCommands and DirectEvents

    I am dynamically adding ImageCommands, in the code-behind, to the ColumnModel shown below. I have assigned the DirectEvents section in the ASPX file as follows:

                                         <ColumnModel ID="cmElement" runat="server" />
                                         <DirectEvents>
                                            <Command OnEvent="cmElement_Command">
                                                <ExtraParams>
                                                    <ext:Parameter Name="command" Value="command" Mode="Raw" />
                                                    <ext:Parameter Name="id" Value="record.id" Mode="Raw" />
                                                </ExtraParams>
                                                <EventMask ShowMask="true" />
                                            </Command>
                                        </DirectEvents>
    Why isn't cmElement_Command firing when adding ImageCommands dynamically? Do I need to assign this dynamically as well? If so, what does that syntax look like?

    Thank you in advance!
    Last edited by Skizzot223; Mar 28, 2012 at 7:36 PM.
  2. #2
    Hi,

    Why isn't cmElement_Command firing when adding ImageCommands dynamically?
    Please provide a full sample.

Similar Threads

  1. [CLOSED] Dynamically added Ext.Net.Image not converting '~/'
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Oct 31, 2011, 7:28 AM
  2. Iteration on dynamically added controls
    By kutlu in forum 1.x Help
    Replies: 1
    Last Post: Jan 02, 2011, 7:14 PM
  3. dynamically added image and getOriginalSize()
    By bakardi in forum 1.x Help
    Replies: 1
    Last Post: Nov 15, 2010, 4:38 PM
  4. [CLOSED] Get script for a dynamically added control
    By jchau in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 30, 2010, 7:23 PM
  5. Populate value of dynamically added control
    By danielg in forum 1.x Help
    Replies: 0
    Last Post: Feb 09, 2009, 12:53 PM

Posting Permissions