| <%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %> |
| <!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>Test Page</title> |
| </head> |
| <body style="overflow: hidden"> |
| <form id="form1" runat="server"> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server" /> |
| <div style="position: absolute; top: 25px; left: 25px; right: 25px; bottom: 100px; |
| overflow: auto"> |
| test<br /> |
| <telerik:RadComboBox ID="RadComboBox1" runat="server"> |
| <Items> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| <telerik:RadComboBoxItem Text="Test" /> |
| </Items> |
| </telerik:RadComboBox> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| test<br /> |
| </div> |
| </form> |
| </body> |
| </html> |
| <asp:DataList ID="dlProducts" runat="server" RepeatColumns="4" RepeatDirection="Horizontal" |
| RepeatLayout="Table" ItemStyle-CssClass="ItemBox"> |
| <ItemTemplate> |
| <ul> |
| <li> |
| <telerik:RadBinaryImage ID="rbiGridImage" runat="server" DataValue='<%# DataBinder.Eval(Container.DataItem, "PictureBinary") %>' /> |
| </li> |
| <li> |
| <%# DataBinder.Eval(Container.DataItem, "Name") %></li> |
| <li> |
| <%# DataBinder.Eval(Container.DataItem, "OldPrice") %></li> |
| <li> |
| <%# DataBinder.Eval(Container.DataItem, "Price") %></li> |
| <li> |
| <%# DataBinder.Eval(Container.DataItem, "MName") %></li> |
| </ul> |
| </ItemTemplate> |
| </asp:DataList> |
| <EditFormSettings EditFormType="WebUserControl" UserControlName="~/controls/customer/Details.ascx"> |
| <PopUpSettings Width="600px" Height="400px" Modal="true" /> |
| </EditFormSettings> |
| string script = "<script language='javascript' type='text/javascript'>CloseAndRedirect('" + VOPCustomerID.ToString() + "');</script>"; |
| Page.ClientScript.RegisterStartupScript(this.GetType(), "Close", script); |
| <script type="text/javascript"> |
| function CloseAndRedirect(ss) |
| { |
| //Redirect to new url |
| GetRadWindow().BrowserWindow.location.href = '../Customer/Default.aspx?CustID=' + ss; |
| //closes the window |
| GetRadWindow().close(); |
| } |
| //Get reference to window |
| function GetRadWindow() |
| { |
| var oWindow = null; |
| if (window.radWindow) |
| oWindow = window.radWindow; |
| else if (window.frameElement.radWindow) |
| oWindow = window.frameElement.radWindow; |
| return oWindow; |
| } |
| </script> |
| <system.webServer> |
| [...] |
| <handlers> |
| <remove name="WebServiceHandlerFactory-Integrated" /> |
| <remove name="ScriptHandlerFactory" /> |
| <remove name="ScriptHandlerFactoryAppServices" /> |
| <remove name="ScriptResource" /> |
| <remove name="MvcHttpHandler" /> |
| <remove name="UrlRoutingHandler" /> |
| <!--<add name="Telerik_Web_UI_WebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2009.3.1314.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4"/>--> |
| <add name="Telerik_Web_UI_WebResource" verb="*" path="Telerik.Web.UI.WebResource.axd" preCondition="integratedMode" type="Telerik.Web.UI.WebResource" /> |
| <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="MvcHttpHandler" preCondition="integratedMode" verb="*" path="*.mvc" type="System.Web.Mvc.MvcHttpHandler, System.Web.Mvc, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> |
| <add name="UrlRoutingHandler" preCondition="integratedMode" verb="*" path="UrlRouting.axd" type="System.Web.HttpForbiddenHandler, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| </handlers> |
| </system.webServer> |
| <%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Coach.Master" Inherits="System.Web.Mvc.ViewPage" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"> |
| Scheduler |
| </asp:Content> |
| <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"> |
| <h1>Scheduler</h1> |
| <telerik:RadScheduler ID="CoachScheduler" runat="server" ProviderName="CoachSchedulerProvider"> |
| </telerik:RadScheduler> |
| <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> |
| </telerik:RadScriptManager> |
| </asp:Content> |
| <telerik:RadPanelBar runat="server" ID="radIdentifyPanel" Skin="WebBlue" Width="100%" Height="100%" ExpandMode="FullExpandedItem"> |
| <Items> |
| <telerik:RadPanelItem Text="Details" Expanded="true" runat="server"> |
| <Items> |
| <telerik:RadPanelItem runat="server"> |
| <ItemTemplate> |
| <telerik:RadColorPicker ID="RadColorPicker1" runat="server" AutoPostBack="True" Preset="Standard"> |
| </telerik:RadColorPicker> |
| <asp:Label ID="lblTest" runat="server" Text="Change me"></asp:Label> |
| <asp:Panel ID="IdentifyFSDetails" runat="server"> |
| Dynmanic Details here! |
| </asp:Panel> |
| </ItemTemplate> |
| </telerik:RadPanelItem> |
| </Items> |
| </telerik:RadPanelItem> |
| .... |
| </Items> |
| <ExpandAnimation Type="None" /> |
| </telerik:RadPanelBar> |
I am trying to dynamically insert some html into the asp:Panel IdentifyFSDetails but can not seem to get access to it using the following javascript clientside.
| var panelbar = $find("radIdentifyPanel"); |
| var item = panelbar.findItemByText('Details'); |
| var test1 = item.findControl("IdentifyFSDetails"); |
| var test2 = item.findControl("lblTest"); |
both test1 and test2 return null while if I try getting the reference to the color picker like the example it does get a reference to it.
All I am trying to do is insert the dynamic html into the panel.
What am I doing wrong?
Hi:
We've had an ongoing issue that your associate, Daniel, has spoken to in the past. Unfortunately the issue still persists and it would be helpful if we could figure it out and move on. We appreciate any help you can provide.
We desire to bind to a RadGrid using Client-side techniques to avoid long waits for our users.
The binding needs to support adding rows to the grid, updating information currently in the grid, and deleting rows from the grid.
We have followed your examples and have produced JavaScript routines and Web Services to do what is needed. We are confident that this code is correct because much of the client-side functionality works very well.
We can delete any row in our grid and, if we choose delete all of the rows. This functions perfectly.
We can update any row in the grid. Again this functions perfectly.
The problem comes when we try and insert new rows into the grid. When we do this the grid actually does contain the newly added row. We can see the data in the JavaScript Object. However when the Grid is ‘redrawn’ on the page, the newly added row never appears. The following code snippet is where we believe the problem to be occurring (or not such as the case may be)…
var numofRows = new Number(result.length);
var tableView = $find("<%= SummaryGrid_West.ClientID %>").get_masterTableView();
tableView.set_dataSource(result);
tableView.set_virtualItemCount(numofRows);
tableView.dataBind();
if (result.length != 0)
{
var row = tableView.get_dataItems()[numofRows-1]
row.set_selected(true);
row.set_visible(true);
}
tableView.dataBind();
var grid = $find("<%= SummaryGrid_West.ClientID %>");
grid.repaint();
As you can see, we acquire a reference to the last row in the grid --- the one that was just added, select it, and explicitly make it visible. This does not allow us to see the newly added row.
Curiously if we change the second dataBind() call to be instead tableView.rebind(), the new row is displayed --- after a long delay. I am told that this happens because the server side code is called. This is precisely what we are trying to avoid doing and, although it does suggest that the other mechanics of the process are working correctly, we would really prefer to keep all of this functionality on the server side.
It should be noted that, although we have active licenses for your product, we have been unable to utilize the latest release (Q4) because of some serious issues with the cosmetic rendering of your controls. I believe we are still on the Q3 – 2008 controls and perhaps this might explain some of our issues.
Hopefully you can help us with these issues. If, in fact, the best solution involves moving to the Q4 2009 controls, then we would need help in assuring thet they render correctly.
Thanks for your efforts in this matter.