PDA

View Full Version : RowSelectionModel DirectEvent Not Firing



collegeminer
May 24, 2012, 5:11 PM
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(record);" />
</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>

collegeminer
May 30, 2012, 3:22 PM
found out that this was a bug with the beta version and was updated in the recent release