RowSelectionModel DirectEvent Not Firing

  1. #1

    RowSelectionModel DirectEvent Not Firing

    I believe this is a bug as my directevent is not firing....i have debugged on VS and it never makes it to my breakpoint...i have also used sql profiler and my stored procedure is never called. Anyone see any issues with my code? If not, please note as a bug....Thanks!

    protected void Row_Selecty(object sender, DirectEventArgs e)
    {
    string messer = e.ExtraParams["messer"];
    DataSet himom = new DataSet();

    string followconnect = ConfigurationManager.ConnectionStrings["RT_DataConnectionString"].ConnectionString;
    using (SqlConnection followsql = new SqlConnection(followconnect))
    {
    SqlCommand comander = new SqlCommand("FetchSummaryFollowUp", followsql);
    comander.CommandType = CommandType.StoredProcedure;
    comander.Parameters.AddWithValue("messageid", messer);
    SqlDataAdapter mySqlDataAdapter = new SqlDataAdapter(comander);
    mySqlDataAdapter.Fill(himom);

    foreach (DataRow row in himom.Tables[0].Rows)
    {
    this.FormPanelDetails.SetValues(new
    {
    IssueResolved = row["IssueResolved"].ToString(),
    DateFollowUp = row["DateFollowUp"].ToString(),
    Timely = row["Timely"].ToString(),
    Satisfied = row["Satisfied"].ToString(),
    Comments = row["Comments"].ToString(),
    Improve = row["Improve"].ToString(),
    DateSubmited = row["DateSubmited"].ToString(),
    });
    }
    }

    }
    <ext:GridPanel runat="server" ID="SummaryGrid" StoreID="Store1" Title="Feedback Summary" Flex="6" MarginSpec="0 0 0 0">
    <ColumnModel>
    <Columns>
    <ext:Column ID="Column0" runat="server" DataIndex="MessageID" Text="MessageID" />
    <ext:Column ID="Column1" runat="server" DataIndex="Location" Text="Location" />
    <ext:Column ID="Column2" runat="server" DataIndex="Feedback" Text="Feedback" Flex="1" />
    <ext:Column ID="Column3" runat="server" DataIndex="DateSubmitted" Text="Date Submitted" />
    <ext:Column ID="Column4" runat="server" DataIndex="Status" Text="Status" />
    </Columns>
    </ColumnModel>
    <SelectionModel>
    <ext:RowSelectionModel runat="server" Mode="Single">
    <Listeners>
    <Select Handler="#{StatusPanel}.getForm().loadRecord(recor d);" />
    </Listeners>
    <DirectEvents>
    <Select OnEvent="Row_Selecty" Buffer="100">
    <ExtraParams>
    <ext:Parameter Name="messer" Value="this.getSelection().data['MessageID']" Mode="Raw" />
    </ExtraParams>
    </Select>
    </DirectEvents>
    </ext:RowSelectionModel>
    </SelectionModel>
    </ext:GridPanel>

    <ext:FormPanel runat="server" ID="FormPanelDetails" Title="Follow-Up Details" Flex="2" MarginSpec="0 0 0 5">

    <Items>
    <ext:DisplayField ID="DisplayField6" runat="server" Name="IssueResolved" FieldLabel="Issue Resolved?" Padding="5" />
    <ext:DisplayField ID="DisplayField7" runat="server" Name="DateFollowUp" FieldLabel="Follow-Up Date" Padding="5" />
    <ext:DisplayField ID="DisplayField8" runat="server" Name="Timely" FieldLabel="Timely?" Padding="5" />
    <ext:DisplayField ID="DisplayField9" runat="server" Name="Satisfied" FieldLabel="Satisfied?" Padding="5" />
    <ext:DisplayField ID="DisplayField10" runat="server" Name="Comments" FieldLabel="Comments" Padding="5" />
    <ext:DisplayField ID="DisplayField11" runat="server" Name="Improve" FieldLabel="Improve?" Padding="5" />
    <ext:DisplayField ID="DisplayField12" runat="server" Name="DateSubmited" FieldLabel="Submittal Date" Padding="5" />
    </Items>
    </ext:FormPanel>
  2. #2

    Mark as closed

    found out that this was a bug with the beta version and was updated in the recent release

Similar Threads

  1. Replies: 3
    Last Post: Jun 27, 2012, 11:55 AM
  2. DirectEvent of TextField is not Firing...
    By nagesh in forum 1.x Help
    Replies: 0
    Last Post: Jun 20, 2012, 1:22 PM
  3. Replies: 1
    Last Post: Jun 18, 2012, 11:06 PM
  4. [CLOSED] DirectEvent not firing with the latest SVN update
    By sailendra in forum 2.x Legacy Premium Help
    Replies: 6
    Last Post: Jun 18, 2012, 11:57 AM
  5. GridPanel RowSelectionModel firing
    By moth1 in forum 1.x Help
    Replies: 0
    Last Post: Jun 19, 2009, 12:19 AM

Tags for this Thread

Posting Permissions