[CLOSED] DirectEvent not firing with the latest SVN update

  1. #1

    [CLOSED] DirectEvent not firing with the latest SVN update

    DirectEvent not firing with the latest SVN update
    Last edited by Daniil; May 18, 2012 at 4:54 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Thanks for the report. We are investigating.
  3. #3
    Please update and re-test.
  4. #4

    Not Working

    Hai this is Nagesh

    1. In Ext 2.0 is not working some controls, Fileupload, gripanel cell selection, and DirectEvents in gridpanel...
    2. Not firing direct event of button in Desktop concept ext 2.0, i have written like this
    <ext:Button ID="btnDelete" runat="server" Text="Delete" Icon="Exclamation">
                                            <DirectEvents>
                                                <Click OnEvent="Delete">
                                                <%--<EventMask ShowMask="true"  Msg="Deleting..." MinDelay="1000" />--%>
                                                </Click>
                                            </DirectEvents> 
                           </ext:Button>
    3. And directevent command also not working ext 2.0, i have written like this command
    <DirectEvents>
                               <Command OnEvent="Command">
                                    <EventMask ShowMask="true">
                                    </EventMask>
                                   <ExtraParams>
                                        <ext:Parameter Name="id" Value="record.data.id" Mode="Raw"></ext:Parameter>
                                        <ext:Parameter Name="command" Value="command" Mode="Raw" ></ext:Parameter>
                                    </ExtraParams>
                                </Command>
                            </DirectEvents>
    when iam trying to run this i am getting error like
    "Object reference not set to an instance of an object"

    anybody help me how to solve this...........
    Last edited by Daniil; Jun 18, 2012 at 10:54 AM. Reason: Please use [CODE] tags
  5. #5
    Hi @nagesh,

    Please start a new forum thread. Preferably, a separate one for each issue. If you feel some threads are related, please feel free to cross link between the two.
  6. #6

    Hai Daniil

    Hai Daniil Thanks for Responce,
    when am selecting a row in gridpanel (ext.net 2.0), am getting error like "Object reference not set to an instance of an object."
    i have written code like
    <SelectionModel>
                    <ext:RowSelectionModel ID="RowslectionModel1" runat="server">
                     <DirectEvents><Select OnEvent="click"></Select></DirectEvents>
                    </ext:RowSelectionModel>
                </SelectionModel>
    .CS File
    ----------
    Label1.Text=RowSelectionModel1.SelectedRecordID;
    Last edited by Daniil; Jun 18, 2012 at 11:44 AM. Reason: Please use [CODE] tags
  7. #7

    Command is not firing in ext.net 2.0

    Hai Daniil
    Am using the GridCommands Delete and Edit, here also not firing the Direct event, am getting error like "Object reference not set to an instance of an object."
    i have written the aspx code like this
    <ext:CommandColumn ID="CommandColumn1" runat="server" Width="60">
                            <Commands>
                                <ext:GridCommand Icon="Delete" CommandName="Delete">
                                    <ToolTip Text="Delete" />
                                </ext:GridCommand>
                                <ext:GridCommand Icon="NoteEdit" CommandName="Edit">
                                    <ToolTip Text="Edit" />
                                </ext:GridCommand>
                            </Commands>
                            <DirectEvents>
                               <Command OnEvent="Command">
                                    <EventMask ShowMask="true">
                                    </EventMask>
                                   <ExtraParams>
                                        <ext:Parameter Name="id" Value="record.data.id" Mode="Raw"></ext:Parameter>
                                        <ext:Parameter Name="command" Value="command" Mode="Raw" ></ext:Parameter>
                                    </ExtraParams>
                                </Command>
                            </DirectEvents>
                        </ext:CommandColumn>
    and .CS File is
    ------------------
    protected void Command(object sender, DirectEventArgs e)
        {
            int id = int.Parse(e.ExtraParams["id"]);
            string commandName = e.ExtraParams["command"];
            switch (commandName)
            {
                case "Delete":
                    delete(id);
                    break;
                case "Edit":
                    edit(id);
                    break;
            }
        }
        public void delete(int id)
        {
            cn.Open();
            SqlCommand cmd = new SqlCommand("delete from users where id=" + id + "", cn);
            cmd.ExecuteNonQuery();
            cn.Close();
            Response.Redirect("GridwithCommand.aspx");
        }
        public void edit(int id)
        { }
    Can You Help Me about this...
    Last edited by Daniil; Jun 18, 2012 at 12:02 PM. Reason: Please use [CODE] tags

Similar Threads

  1. Replies: 3
    Last Post: Jun 27, 2012, 11:55 AM
  2. Replies: 1
    Last Post: Jun 18, 2012, 11:06 PM
  3. Replies: 6
    Last Post: May 23, 2012, 1:48 PM
  4. [CLOSED] Error after the latest update from SVN
    By deejayns in forum 1.x Premium Help
    Replies: 4
    Last Post: Feb 21, 2011, 1:50 PM
  5. [CLOSED] [1.0] - Missing Icons in latest SVN Update
    By drkoh in forum 1.x Premium Help
    Replies: 4
    Last Post: Aug 30, 2010, 1:00 PM

Posting Permissions