Jun 16, 2008, 7:26 AM
GridView events w/ UpdatePanel and Coolite TabPanel v0.51
Dear Coolite team,
Last week I was investigatigating another issue. For some reason, the GridView RowCommand event seems not to be firing in my project when I simply change the old Coolite TabPanel v0.4.1 for the new one v0.5.1.
I am posting the code here, but sorry if I haven't got enough info to explain, but unfortunatelly I could not reproduce the issue in a simple scenario. May be some conflict with UpdatePanel I guess.
Obviously is very hard to find a error if you cannot reproduce it, but what I am expecting here is to see if you fellas can me point some clue to why it may be happening.
My project is pretty much like the one I posted here. Both my grid and the tabpanel are inside the update panel. When a row in the grid is clicked it does a roundtrip through the server via callback.
It is working absolutely fine with Coolite v.041 and I spent a lot of time to make sure of it. At the end, I could noticed that just by replacing the the TabPanel 0.41 to the TabPanel 0.51 the roundtrip continues working but the event RowCommand is not firing.
I ended up giving up and continuing using the old one, but obviously it bangs in my head what would be the problem here.
Unfortunatelly I can't send you the project exactly as it is, and I could not reproduce the error as I said. Maybe because I haven't setup the old coolite in my test project at all.
Any help would be very appreciated. Believe me I spent a long time trying to solve it before post this thread.
Any clue? Anything I can try?
Best regards,
Leonardo.
Last week I was investigatigating another issue. For some reason, the GridView RowCommand event seems not to be firing in my project when I simply change the old Coolite TabPanel v0.4.1 for the new one v0.5.1.
I am posting the code here, but sorry if I haven't got enough info to explain, but unfortunatelly I could not reproduce the issue in a simple scenario. May be some conflict with UpdatePanel I guess.
Obviously is very hard to find a error if you cannot reproduce it, but what I am expecting here is to see if you fellas can me point some clue to why it may be happening.
My project is pretty much like the one I posted here. Both my grid and the tabpanel are inside the update panel. When a row in the grid is clicked it does a roundtrip through the server via callback.
It is working absolutely fine with Coolite v.041 and I spent a lot of time to make sure of it. At the end, I could noticed that just by replacing the the TabPanel 0.41 to the TabPanel 0.51 the roundtrip continues working but the event RowCommand is not firing.
I ended up giving up and continuing using the old one, but obviously it bangs in my head what would be the problem here.
Unfortunatelly I can't send you the project exactly as it is, and I could not reproduce the error as I said. Maybe because I haven't setup the old coolite in my test project at all.
Any help would be very appreciated. Believe me I spent a long time trying to solve it before post this thread.
Any clue? Anything I can try?
Best regards,
Leonardo.
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always">
<ContentTemplate>
<asp:GridView ID="GridView1" runat="server" OnRowCommand="GridView1_RowCommand" DataKeyNames="id,a">
<Columns>
<asp:TemplateField ItemStyle-Width="2%">
<ItemTemplate>
<asp:Button ID="imgEdit" runat="server" CommandName="Select" Text="Select" ImageUrl="~/images/edit.gif" CommandArgument='<%# Bind("id") %>' ToolTip="Select" CausesValidation="false" />
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
<ext:TabPanel ID="TabPanel2" runat="server" ActiveTab="0" Title="TabPanel2">
<Tabs>
<ext:Tab ID="TabDetails" runat="server" Title="Details" IconCls="tabs">
<Content>
<table width="100%">
<tr>
<td style="width: 5%">
</td>
<td>
<asp:DetailsView ID="DetailsView1" runat="server" Height="50px" Width="125px">
</asp:DetailsView>
</td>
<td style="width: 5%">
</td>
</tr>
</table>
</Content>
</ext:Tab>
<ext:Tab ID="Tab1" runat="server" Title="Tab1" AutoScroll="true">
<Content>
Tab1
</Content>
</ext:Tab>
<ext:Tab ID="Tab2" runat="server" Title="Tab2">
<Content>
Tab2
</Content>
</ext:Tab>
<ext:Tab ID="Tab3" runat="server" Title="Tab3">
<Content>
Tab3
</Content>
</ext:Tab>
<ext:Tab ID="Tab4" runat="server" Title="Tab4" AutoScroll="true">
<Content>
Tab4
</Content>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</ContentTemplate>
</asp:UpdatePanel>
protected void Page_Load(object sender, EventArgs e)
{
DataTable dt = new DataTable();
dt.Columns.Add("id", typeof(int));
dt.Columns.Add("a", typeof(string));
dt.Columns.Add("b", typeof(string));
dt.Columns.Add("c", typeof(bool));
dt.Columns.Add("d", typeof(int));
dt.Columns.Add("e", typeof(float));
dt.Columns.Add("f", typeof(decimal));
dt.PrimaryKey = new DataColumn[] { dt.Columns["id"] };
for (int i = 1; i < 10; ++i)
{
dt.Rows.Add(new object[] { i, "a" + i, "b" + (10 - i), i % 2 == 0, i * 2, i * 1.14159, i * 3.14 });
}
GridView1.DataSource = dt;
GridView1.DataBind();
}
Last edited by geoffrey.mcgill; Feb 21, 2011 at 7:47 PM.