﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Coolite Forums / Coolite Toolkit / Bugs  / Nested UpdatePanel + Tabs + Editor / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>Coolite Forums</description><link>http://www.coolite.com/forums/</link><webMaster>do-not-reply@coolite.com</webMaster><lastBuildDate>Tue, 06 Jan 2009 04:04:21 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Nested UpdatePanel + Tabs + Editor</title><link>http://www.coolite.com/forums/Topic976-5-1.aspx</link><description>Hi Leo,&lt;br&gt;&lt;br&gt;I'm currently working on another round of revisions to the &amp;lt;asp:UpdatePanel&amp;gt; support within the Toolkit. The following thread is tracking recent issues with UpdateMode="Conditional", see &lt;a href="http://coolite.com/forums/Topic1085-16-1.aspx"&gt;http://coolite.com/forums/Topic1085-16-1.aspx&lt;/a&gt;&lt;br&gt;&lt;br&gt;I'm confident the UpdatePanel issues will be resolved, but it just takes time, testing and user feedback. The "&lt;i&gt;new and improved&lt;/i&gt;" UpdatePanel support will included with v0.6.&lt;br&gt;</description><pubDate>Fri, 15 Aug 2008 10:41:30 GMT</pubDate><dc:creator>geoffrey.mcgill</dc:creator></item><item><title>RE: Nested UpdatePanel + Tabs + Editor</title><link>http://www.coolite.com/forums/Topic976-5-1.aspx</link><description>&lt;P&gt;Dear Coolite team,&lt;BR&gt;&lt;BR&gt;I've seen many posts now about some issues/incompatibilities with UpdatePanel and Coolite controls. I really look forward to this &amp;lt;AjaxEvents&amp;gt; feature. Is it scheduled?&lt;BR&gt;Then I can get rid of the UpdatePanels in my project.&lt;BR&gt;&lt;BR&gt;Thanks.&lt;BR&gt;&lt;BR&gt;Leo.&lt;/P&gt;</description><pubDate>Fri, 15 Aug 2008 08:57:46 GMT</pubDate><dc:creator>ljcorreia</dc:creator></item><item><title>Nested UpdatePanel + Tabs + Editor</title><link>http://www.coolite.com/forums/Topic976-5-1.aspx</link><description>&lt;P&gt;Hi guys,&lt;BR&gt;&lt;BR&gt;Sorry I haven't replied the other threads, I was involved in other parts of the project.&lt;BR&gt;I was testing one scenario where I've got a Nested UpdatePanel. In fact, the second UpdatePanel is inside a User Control, but I am making it simple and put everything in one page.&lt;BR&gt;&lt;BR&gt;It works fine when the main UpdatePanel is set to UpdateMode="Always", but it is exactly what I am trying to avoid, once I just need to refresh the content inside the tab where my UC is placed. &lt;BR&gt;&lt;BR&gt;I am not sure the problem is because it is in a Nested UpdatePanel or is something I am doing wrong, but I'll use a similar sample I posted before, just to keep the sample as similar as possible of my real situation.&lt;BR&gt;&lt;BR&gt;The sample uses a Datasource already sent here:&lt;BR&gt;&lt;BR&gt;&lt;A href="http://www.coolite.com/forums/FindPost682.aspx"&gt;http://www.coolite.com/forums/FindPost682.aspx&lt;/A&gt;&lt;BR&gt;&lt;A href="http://doodle.coolite.com/UpdatePanel/DataSourceUpdate_New.aspx"&gt;http://doodle.coolite.com/UpdatePanel/DataSourceUpdate_New.aspx&lt;/A&gt;&lt;BR&gt;&lt;BR&gt;[code]&amp;lt;%@ Page Language="C#" EnableEventValidation="false" %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;script runat="server"&amp;gt;&lt;BR&gt;    protected void Page_Load(object sender, EventArgs e)&lt;BR&gt;    {&lt;BR&gt;        if (!IsPostBack)&lt;BR&gt;            ChangeTrStyle(false);&lt;BR&gt;    }&lt;/P&gt;&lt;P&gt;&lt;BR&gt;    private void ChangeTrStyle(Boolean type)&lt;BR&gt;    {&lt;BR&gt;        if (type)&lt;BR&gt;        {&lt;BR&gt;            trList.Visible = false;&lt;BR&gt;            trDetail.Visible = true;&lt;BR&gt;        }&lt;BR&gt;        else&lt;BR&gt;        {&lt;BR&gt;            trList.Visible = true;&lt;BR&gt;            trDetail.Visible = false;&lt;BR&gt;        }&lt;BR&gt;    }&lt;/P&gt;&lt;P&gt;    protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)&lt;BR&gt;    {&lt;BR&gt;        if (e.CommandName.Trim().Equals("Select"))&lt;BR&gt;        {&lt;BR&gt;            GridViewRow row = (GridViewRow)((Control)e.CommandSource).NamingContainer;&lt;BR&gt;            this.Label2.Text = "&amp;lt;b&amp;gt;id:&amp;lt;/b&amp;gt; " + GridView1.DataKeys[row.RowIndex].Values["id"].ToString();&lt;BR&gt;            this.lblDescription.Text = "&amp;lt;b&amp;gt;Description:&amp;lt;/b&amp;gt; " + GridView1.DataKeys[row.RowIndex].Values["a"].ToString();&lt;/P&gt;&lt;P&gt;&lt;BR&gt;            ChangeTrStyle(true);&lt;BR&gt;        }&lt;BR&gt;    }&lt;/P&gt;&lt;P&gt;    protected void GridView2_RowCommand(object sender, GridViewCommandEventArgs e)&lt;BR&gt;    {&lt;BR&gt;        if (e.CommandName.Trim().Equals("Select"))&lt;BR&gt;        {&lt;BR&gt;            GridViewRow row = (GridViewRow)((Control)e.CommandSource).NamingContainer;&lt;BR&gt;            HtmlEditor1.Text = "&amp;lt;b&amp;gt;RowCommand on id:&amp;lt;/b&amp;gt; " + GridView1.DataKeys[row.RowIndex].Values["id"].ToString();&lt;BR&gt;            HtmlEditor2.Text = "&amp;lt;b&amp;gt;You clicked on GridView2:&amp;lt;/b&amp;gt; " + GridView1.DataKeys[row.RowIndex].Values["a"].ToString();&lt;BR&gt;        }&lt;BR&gt;    }&lt;/P&gt;&lt;P&gt;    protected void Button1_Click(object sender, EventArgs e)&lt;BR&gt;    {&lt;BR&gt;        this.lblMessage.Text = DateTime.Now.ToLongTimeString();&lt;BR&gt;    }  &lt;BR&gt;&amp;lt;/script&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" &lt;BR&gt;    "&lt;A href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&lt;/A&gt;"&amp;gt;&lt;BR&gt;&amp;lt;html xmlns="&lt;A href="http://www.w3.org/1999/xhtml"&gt;http://www.w3.org/1999/xhtml&lt;/A&gt;"&amp;gt;&lt;BR&gt;&amp;lt;head id="Head1" runat="server"&amp;gt;&lt;BR&gt;    &amp;lt;title&amp;gt;Coolite Editor Test&amp;lt;/title&amp;gt;&lt;BR&gt;&amp;lt;/head&amp;gt;&lt;BR&gt;&amp;lt;body&amp;gt;&lt;BR&gt;    &amp;lt;p&amp;gt;&lt;BR&gt;        &amp;lt;a href="CooliteEditorTest.aspx"&amp;gt;Reload&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&lt;BR&gt;    &amp;lt;form id="form1" runat="server"&amp;gt;&lt;BR&gt;    &amp;lt;ext:ScriptManager ID="ScriptManager1" runat="server" StateProvider="None" /&amp;gt;&lt;BR&gt;    &amp;lt;asp:ScriptManager ID="ScriptManager3" runat="server" /&amp;gt;&lt;BR&gt;    &amp;lt;asp:Label ID="lblMessage" runat="server" /&amp;gt;&lt;BR&gt;    &amp;lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional"&amp;gt;&lt;BR&gt;        &amp;lt;Triggers&amp;gt;&lt;BR&gt;            &amp;lt;asp:AsyncPostBackTrigger ControlID="GridView1" EventName="RowCommand" /&amp;gt;&lt;BR&gt;        &amp;lt;/Triggers&amp;gt;&lt;BR&gt;        &amp;lt;ContentTemplate&amp;gt;&lt;BR&gt;            &amp;lt;div runat="server" id="trList" visible="false" enableviewstate="true"&amp;gt;&lt;BR&gt;                &amp;lt;h2&amp;gt;&lt;BR&gt;                    List&amp;lt;/h2&amp;gt;&lt;BR&gt;                &amp;lt;asp:GridView ID="GridView1" runat="server" OnRowCommand="GridView1_RowCommand" DataKeyNames="id, a"&lt;BR&gt;                    DataSourceID="DataSource1"&amp;gt;&lt;BR&gt;                    &amp;lt;Columns&amp;gt;&lt;BR&gt;                        &amp;lt;asp:TemplateField ItemStyle-Width="2%"&amp;gt;&lt;BR&gt;                            &amp;lt;ItemTemplate&amp;gt;&lt;BR&gt;                                &amp;lt;asp:Button ID="imgEdit" runat="server" CommandName="Select" Text="Select" ImageUrl="~/images/edit.gif"&lt;BR&gt;                                    CommandArgument='&amp;lt;%# Bind("id") %&amp;gt;' ToolTip="Select" CausesValidation="false" /&amp;gt;&lt;BR&gt;                            &amp;lt;/ItemTemplate&amp;gt;&lt;BR&gt;                        &amp;lt;/asp:TemplateField&amp;gt;&lt;BR&gt;                    &amp;lt;/Columns&amp;gt;&lt;BR&gt;                &amp;lt;/asp:GridView&amp;gt;&lt;BR&gt;            &amp;lt;/div&amp;gt;&lt;BR&gt;            &amp;lt;div id="trDetail" runat="server" visible="true" enableviewstate="true"&amp;gt;&lt;BR&gt;                &amp;lt;h2&amp;gt;&lt;BR&gt;                    Information&amp;lt;/h2&amp;gt;&lt;BR&gt;                                        &amp;lt;asp:Label ID="Label2" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;BR&gt;                                        &amp;lt;asp:Label ID="lblDescription" runat="server"&amp;gt;&amp;lt;/asp:Label&amp;gt;                    &lt;BR&gt;                &amp;lt;ext:TabPanel ID="TabPanel2" runat="server" ActiveTab="0" Title="TabPanel2"&amp;gt;&lt;BR&gt;                    &amp;lt;Tabs&amp;gt;&lt;BR&gt;                        &amp;lt;ext:Tab ID="TabDetails" runat="server" Title="Details" IconCls="tabs" AutoHeight="true"&amp;gt;&lt;BR&gt;                            &amp;lt;Content&amp;gt;&lt;BR&gt;                                &amp;lt;asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="Conditional"&amp;gt;&lt;BR&gt;                                    &amp;lt;Triggers&amp;gt;&lt;BR&gt;                                        &amp;lt;asp:AsyncPostBackTrigger ControlID="GridView2" EventName="RowCommand" /&amp;gt;&lt;BR&gt;                                    &amp;lt;/Triggers&amp;gt;&lt;BR&gt;                                    &amp;lt;ContentTemplate&amp;gt;&lt;BR&gt;                                        &amp;lt;div runat="server" id="Div1" visible="true"&amp;gt;&lt;BR&gt;                                            &amp;lt;h2&amp;gt;&lt;BR&gt;                                                List 2&amp;lt;/h2&amp;gt;&lt;BR&gt;                                            &amp;lt;asp:GridView ID="GridView2" runat="server" OnRowCommand="GridView2_RowCommand" DataKeyNames="id, a"&lt;BR&gt;                                                DataSourceID="DataSource1"&amp;gt;&lt;BR&gt;                                                &amp;lt;Columns&amp;gt;&lt;BR&gt;                                                    &amp;lt;asp:TemplateField ItemStyle-Width="2%"&amp;gt;&lt;BR&gt;                                                        &amp;lt;ItemTemplate&amp;gt;&lt;BR&gt;                                                            &amp;lt;asp:Button ID="imgEdit" runat="server" CommandName="Select" Text="Select" ImageUrl="~/images/edit.gif"&lt;BR&gt;                                                                CommandArgument='&amp;lt;%# Bind("id") %&amp;gt;' ToolTip="Select" CausesValidation="false" /&amp;gt;&lt;BR&gt;                                                        &amp;lt;/ItemTemplate&amp;gt;&lt;BR&gt;                                                    &amp;lt;/asp:TemplateField&amp;gt;&lt;BR&gt;                                                &amp;lt;/Columns&amp;gt;&lt;BR&gt;                                            &amp;lt;/asp:GridView&amp;gt;&lt;BR&gt;                                        &amp;lt;/div&amp;gt;&lt;BR&gt;                                        &amp;lt;br /&amp;gt;&lt;BR&gt;                                        &amp;lt;ext:HtmlEditor ID="HtmlEditor1" runat="server"&amp;gt;&lt;BR&gt;                                        &amp;lt;/ext:HtmlEditor&amp;gt;&lt;BR&gt;                                        &amp;lt;br /&amp;gt;&lt;BR&gt;                                        &amp;lt;ext:HtmlEditor ID="HtmlEditor2" runat="server"&amp;gt;&lt;BR&gt;                                        &amp;lt;/ext:HtmlEditor&amp;gt;&lt;BR&gt;                                        &amp;lt;br /&amp;gt;&lt;BR&gt;                                    &amp;lt;/ContentTemplate&amp;gt;&lt;BR&gt;                                &amp;lt;/asp:UpdatePanel&amp;gt;&lt;BR&gt;                            &amp;lt;/Content&amp;gt;&lt;BR&gt;                        &amp;lt;/ext:Tab&amp;gt;&lt;BR&gt;                    &amp;lt;/Tabs&amp;gt;&lt;BR&gt;                &amp;lt;/ext:TabPanel&amp;gt;&lt;BR&gt;                &amp;lt;div style="text-align: center;"&amp;gt;&lt;BR&gt;                    &amp;lt;asp:Button ID="btnBack" runat="server" Text="Back" CausesValidation="false" /&amp;gt;&lt;BR&gt;                &amp;lt;/div&amp;gt;&lt;BR&gt;            &amp;lt;/div&amp;gt;&lt;BR&gt;        &amp;lt;/ContentTemplate&amp;gt;&lt;BR&gt;    &amp;lt;/asp:UpdatePanel&amp;gt;&lt;BR&gt;    &amp;lt;asp:ObjectDataSource ID="DataSource1" runat="server" TypeName="DataSource" SelectMethod="Select"&lt;BR&gt;        UpdateMethod="Update" DeleteMethod="Delete" /&amp;gt;&lt;BR&gt;    &amp;lt;/form&amp;gt;&lt;BR&gt;&amp;lt;/body&amp;gt;&lt;BR&gt;&amp;lt;/html&amp;gt;&lt;BR&gt;[/code]&lt;BR&gt;&lt;BR&gt;The error is causing is: Microsoft JScript runtime error: 'Ext.fly(...)' is null or not an object&lt;BR&gt;&lt;BR&gt;Any help would be very appreciated.&lt;BR&gt;&lt;BR&gt;Leo.&lt;/P&gt;</description><pubDate>Fri, 18 Jul 2008 11:29:19 GMT</pubDate><dc:creator>ljcorreia</dc:creator></item></channel></rss>