
AjaxUpdatedControl
associated to the RadAjaxManager.
This isn't working for me because the panel being updated is located in a asp:Wizard page that is not currently visible.
Any thoughts? I basically want to make different AjaxRequests on the same page and only update certain panels when certain requests are executed.
Can I manually tell a panel to "update"? This would probably solve the problem since I could take out the HTML block that wires up the automatic update.
Thanks,
Kevin
| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Editor.aspx.cs" Inherits="TestWebApplication.Editor" %> |
| <%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml" > |
| <head runat="server"> |
| <title></title> |
| <link href="Stylesheet1.css" rel="stylesheet" type="text/css" /> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"> |
| </asp:ScriptManager> |
| <telerik:RadEditor ID="RadEditor1" Runat="server" ContentAreaCssFile="Stylesheet2.css"> |
| </telerik:RadEditor> |
| </div> |
| </form> |
| </body> |
| </html> |

|
RadGrid.Net2.dll |
Assembly |
Web Part assembly installed in the GAC |
|
RadChart.Net2.dll |
Assembly |
Web Part assembly installed in the GAC |
|
RadAjax.Net2.dll |
protected void G_DetailTableDataBind(object source, Telerik.Web.UI.GridDetailTableDataBindEventArgs e)
{
GridDataItem parentItem = e.DetailTableView.ParentItem as GridDataItem;
ParentID =
Convert.ToInt32(parentItem.Cells["PEIRS_IncidentID].Text);
switch (e.DetailTableView.DataMember)
{
case "IncidentSupps":
// get the data and set the datasource
e.DetailTableView.DataSource = BLL.
Supplement.GetSupplements(ParentID);
break;
case "IncidentSubjects":
// get the data and set the datasource
e.DetailTableView.DataSource = BLL.
Supplement.GetSubjects(ParentID);
break;
}
}
I am trying to pull the value of the PEIRS_IncidentID column from the MasterTableView so I can retrieve only those records with a matching PEIRS_IncidentID in the table bound to the GridDetailView.
When I debug and set a breakpoint at the ParentID = ... statment, parentItem.Cells["PEIRS_IncidentID].Text is always an empty string. When I enter ? parentItem.DataItem in the command window, it shows me all of the bound columns and values in those columns, and none are empty.
Why can I see the data in the command window, but cannot seem to access it in the parentItem variable in the code?
Thanks,
Jack
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Docks.aspx.cs" Inherits="Docks" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <script type="text/javascript"> |
| function closeDock(dock, args){ |
| setTimeout( function(){ dock.set_closed(true);}, 100); |
| } |
| </script> |
| <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> |
| <telerik:RadDock ID="dock1" runat="server"> |
| <Commands> |
| <telerik:DockCommand Name="close" Text="close" OnClientCommand="closeDock" /> |
| </Commands> |
| </telerik:RadDock> |
| <br /> |
| <br /> |
| <br /> |
| <br /> |
| <asp:Button ID="btn1" runat="server" Text="Post back"/> |
| <asp:Label ID="result" runat="server"></asp:Label> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| public partial class Docks : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| result.Text = string.Empty; |
| btn1.Click += new EventHandler(btn1_Click); |
| } |
| void btn1_Click(object sender, EventArgs e) |
| { |
| result.Text = dock1.Closed.ToString(); |
| } |
| } |
| function closeDock(dock, args){ |
| dock.set_closed(true); |
| } |