I installed RadFormDecorator FREE for ASP.NET AJAX Q3 2010 on a Win 7 x64 machine. The installation got stuck after I received this error message
namespace myOBIS_Entities.SchedulerProvider { public class MyobisSchedulerProvider : DbSchedulerProviderBase { public override IEnumerable<Appointment> GetAppointments(ISchedulerInfo schedulerInfo) { IQueryable<myOBIS_Entities.EntityFramework.Appointment> MyoAppointments = CallingEnvironment.Membership.CurrentOrganisation.Appointments; List<Appointment> appointments = new List<Appointment>(); foreach (myOBIS_Entities.EntityFramework.Appointment myoApp in MyoAppointments) { Appointment apt = new Appointment(); apt.ID = myoApp.AppointmentId; apt.Subject = myoApp.Subject; apt.Start = myoApp.AppointmentStart; apt.End = myoApp.AppointmentEnd; apt.DataItem = myoApp; apt.ToolTip = "Appointment From WebService"; appointments.Add(apt); } return appointments.AsEnumerable(); } public override void Update(ISchedulerInfo schedulerInfo, Appointment appointmentToUpdate) { var myoSchedulerInfo = schedulerInfo as MyobisSchedulerInfo; AppointmentController.EditAppointment( Guid.Parse(appointmentToUpdate.ID.ToString()), myoSchedulerInfo.MaxAttendees, myoSchedulerInfo.Price, myoSchedulerInfo.LastMinutePrice, myoSchedulerInfo.DaysBeforeLastMinute); } public override IDictionary<ResourceType, IEnumerable<Resource>> GetResources(ISchedulerInfo schedulerInfo) { return null; } public override void Insert(ISchedulerInfo schedulerInfo, Appointment appointmentToInsert) { var myoSchedulerInfo = schedulerInfo as MyobisSchedulerInfo; AppointmentController.InsertAppointment( myoSchedulerInfo.OrganisationId, myoSchedulerInfo.EventProductId, myoSchedulerInfo.LocationId, myoSchedulerInfo.Type, appointmentToInsert.Start, appointmentToInsert.End, myoSchedulerInfo.MaxAttendees, myoSchedulerInfo.CurrencyCode, myoSchedulerInfo.Price, myoSchedulerInfo.LastMinutePrice, myoSchedulerInfo.DaysBeforeLastMinute); } public override void Delete(ISchedulerInfo schedulerInfo, Appointment appointmentToDelete) { AppointmentController.DeleteAppointment(Guid.Parse(appointmentToDelete.ID.ToString())); } } }namespace myOBIS_Entities.SchedulerProvider { public class MyobisSchedulerInfo : SchedulerInfo { public Guid OrganisationId { get; set; } public Guid EventProductId { get; set; } public Guid LocationId { get; set; } public int Type { get; set; } public short MaxAttendees { get; set; } public string CurrencyCode { get; set; } public double Price { get; set; } public double LastMinutePrice { get; set; } public int DaysBeforeLastMinute { get; set; } public MyobisSchedulerInfo() { } public MyobisSchedulerInfo( ISchedulerInfo baseInfo, Guid orgId, Guid eventProductId, Guid locationId, int type, short maxAttendees, string currencyCode, double price, double lastMinutePrice, int daysBeforeLastMinute) :base(baseInfo) { OrganisationId = orgId; EventProductId = eventProductId; LocationId = locationId; Type = type; MaxAttendees = maxAttendees; CurrencyCode = currencyCode; Price = price; LastMinutePrice = lastMinutePrice; DaysBeforeLastMinute = daysBeforeLastMinute; } } }namespace myoWebRole.WCF { [ServiceContract(Namespace = "")] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)] [ServiceBehavior(IncludeExceptionDetailInFaults = true)] public class SchedulerWcfService : ISchedulerWcfService { private WebServiceAppointmentController _controller; private WebServiceAppointmentController Controller { get { if (_controller == null) { _controller = new WebServiceAppointmentController(new MyobisSchedulerProvider()); } return _controller; } } [OperationContract] public IEnumerable<AppointmentData> GetAppointments(MyobisSchedulerInfo schedulerInfo) { return Controller.GetAppointments(schedulerInfo); } [OperationContract] public IEnumerable<AppointmentData> InsertAppointment(MyobisSchedulerInfo schedulerInfo, AppointmentData appointmentData) { return Controller.InsertAppointment(schedulerInfo, appointmentData); } [OperationContract] public IEnumerable<AppointmentData> UpdateAppointment(MyobisSchedulerInfo schedulerInfo, AppointmentData appointmentData) { return Controller.UpdateAppointment(schedulerInfo, appointmentData); } [OperationContract] public IEnumerable<AppointmentData> DeleteAppointment(MyobisSchedulerInfo schedulerInfo, AppointmentData appointmentData, bool deleteSeries) { return Controller.DeleteAppointment(schedulerInfo, appointmentData, deleteSeries); } [OperationContract] public IEnumerable<ResourceData> GetResources(MyobisSchedulerInfo schedulerInfo) { return Controller.GetResources(schedulerInfo); } } } <system.serviceModel> <behaviors> <endpointBehaviors> <behavior name="SchedulerWcfServiceAspNetAjaxBehavior"> <enableWebScript/> </behavior> </endpointBehaviors> </behaviors> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" aspNetCompatibilityEnabled="true"/> <services> <service name="SchedulerWcfService"> <endpoint address="" behaviorConfiguration="SchedulerWcfServiceAspNetAjaxBehavior" contract="ISchedulerWcfService"/> </service> </services> </system.serviceModel><WebServiceSettings Path="../../WCF/SchedulerWcfService.svc" ResourcePopulationMode="ServerSide" />Source Error: An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace: [WebException: Der Remoteserver hat einen Fehler zurückgegeben: (404) Nicht gefunden.] System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) +2716592 System.Net.WebClient.UploadString(Uri address, String method, String data) +266 Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +653 [Exception: An error occurred while requesting resources from the web service. Server responded with: ] Telerik.Web.UI.SchedulerWebServiceClient.GetResources() +1225 Telerik.Web.UI.RadScheduler.BindResourcesFromWebService() +102 Telerik.Web.UI.RadScheduler.PerformSelect() +117 Telerik.Web.UI.RadScheduler.CreateChildControls(Boolean bindFromDataSource) +81 System.Web.UI.Control.EnsureChildControls() +182 System.Web.UI.Control.PreRenderRecursiveInternal() +60 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Control.PreRenderRecursiveInternal() +222 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +4185 <div style="margin-right: auto; margin-left: auto; margin-top: auto; width: 780px; border:solid 1px red"> <div style="width: 100%; height: auto;" align="left"> <table width="480px"> <tr style="height: 20px" align="left"> <td align="left" width="45%"> <asp:Label ID="Label1" runat="server" Text="Search By"></asp:Label> <asp:DropDownList ID="_cboSearchBy" runat="server" Width="150px"> </asp:DropDownList> </td> <td> <asp:TextBox ID="_txtFind" runat="server" Width="139px"></asp:TextBox><asp:Button ID="_btnSearch" runat="server" Text="Search" OnClick="_btnSearch_Click" /> </td> </tr> </table> </div> <div style="width: 100%;" align="left"> <table align="center"> <tr> <td> <telerik:RadGrid ID="_radGrid" runat="server" AutoGenerateColumns="False" GridLines="None" OnPageIndexChanged="_radGrid_PageIndexChanged" EnableEmbeddedSkins="False" Skin="mscSkinOffice" AllowPaging="True" AllowCustomPaging="True" OnPageSizeChanged="_radGrid_PageSizeChanged" OnDataBound="_radGrid_DataBound" Width="770px"> <ClientSettings> <Scrolling AllowScroll="True" UseStaticHeaders="True" FrozenColumnsCount="2"></Scrolling> <Resizing AllowColumnResize="True" /> </ClientSettings> <SortingSettings SortedBackColor="BurlyWood" /> <MasterTableView DataKeyNames="Key,No"> <CommandItemSettings ExportToPdfText="Export to Pdf" /> <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column"> </RowIndicatorColumn> <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column"> </ExpandCollapseColumn> <Columns> <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column" UniqueName="SelectColumn" Resizable="False"> <ItemTemplate> <asp:LinkButton ID="imgbtnSelected" runat="server" Text="Select"></asp:LinkButton> </ItemTemplate> <HeaderStyle Width="50px" /> <ItemStyle HorizontalAlign="Center" /> </telerik:GridTemplateColumn> <telerik:GridBoundColumn DataField="Key" FilterControlAltText="Filter Key column" HeaderText="Key" SortExpression="Key" UniqueName="Key" Visible="False"> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="No" FilterControlAltText="Filter No column" HeaderText="No." SortExpression="No" UniqueName="No"> <ItemStyle Wrap="False" /> <HeaderStyle Width="80px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column" HeaderText="Name" SortExpression="Name" UniqueName="Name"> <HeaderStyle Width="150px" /> <ItemStyle Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Location_Code" FilterControlAltText="Filter Location_Code column" HeaderText="Location" SortExpression="Location_Code" UniqueName="Location_Code"> <HeaderStyle Width="60px" /> <ItemStyle Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Address" FilterControlAltText="Filter Address column" HeaderText="Address" SortExpression="Address" UniqueName="Address"> <ItemStyle Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Address_2" FilterControlAltText="Filter Address_2 column" HeaderText="Address 2" SortExpression="Address_2" UniqueName="Address_2"> <ItemStyle Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Phone_No" FilterControlAltText="Filter Phone_No column" HeaderText="Phone No." SortExpression="Phone_No" UniqueName="Phone_No"> <ItemStyle Wrap="False" /> <HeaderStyle Width="80px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Contact_No" FilterControlAltText="Filter Contact_No column" HeaderText="Contact No." SortExpression="Contact_No" UniqueName="Contact_No"> <ItemStyle Wrap="False" /> <HeaderStyle Width="80px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Contact" FilterControlAltText="Filter Contact column" HeaderText="Contact" SortExpression="Contact" UniqueName="Contact"> <ItemStyle Wrap="False" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn DataField="Credit_Limit_LCY" DataFormatString="{0:#,0.#0}" DataType="System.Decimal" FilterControlAltText="Filter Credit_Limit_LCY column" HeaderText="Credit Limit LCY" SortExpression="Credit_Limit_LCY" UniqueName="Credit_Limit_LCY"> <HeaderStyle HorizontalAlign="Right" Width="70px" /> <ItemStyle HorizontalAlign="Right" /> </telerik:GridBoundColumn> </Columns> <ItemStyle HorizontalAlign="Left" /> <AlternatingItemStyle HorizontalAlign="Left" /> </MasterTableView> <HeaderStyle Width="200px" HorizontalAlign="Left" /> <PagerStyle Mode="NextPrev" PagerTextFormat="{4} Page <strong>{0}</strong> of <strong>{1}</strong>." /> <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_mscSkinOffice" EnableEmbeddedSkins="False"> </HeaderContextMenu> <FilterMenu EnableEmbeddedSkins="False" EnableImageSprites="False"> </FilterMenu> </telerik:RadGrid> </td> </tr> </table> </div> <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> </telerik:RadScriptManager> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> <AjaxSettings> <telerik:AjaxSetting AjaxControlID="_radGrid"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="_radGrid" /> </UpdatedControls> </telerik:AjaxSetting> </AjaxSettings> </telerik:RadAjaxManager></div>dnn_ctr381_Que2_Dock_MyTasks.
I get around that by calling a Javascript function that returns a control containing the name Dock_MyTasks. But, when I look at the running HTML, there are multiple HTML elements that contain the name Dock_MyTasks. They are suffixed with _T, _C, _ClientState. Here's the JavaScript I'm trying to use. Everyhing seems to execute just fine until I call the GetClientId function. What am I doing wrong?
function miClicked(sender, e) {
var MenuItem = e.get_item();
var DockName = MenuItem.get_value();
var dock = GetClientId(DockName);
var isClosed = dock.get_closed();
dock.set_closed(!isClosed);
MenuItem.Selected = !MenuItem.Selected;
}
// Gets the ASP.NET generated control ID
function GetClientId(controlId) {
var count = document.forms[0].length;
var i = 0;
var aspControlId;
for (i = 0; i < count; i++) {
aspControlId = document.forms[0].elements[i].id;
pos = aspControlId.indexOf(controlId);
if (pos >= 0) break;
}
return document.forms[0].elements[i];
}
Thank you..
<telerik:RadAjaxPanel ID="radAjaxPanel1" runat="server" LoadingPanelID="radldpnlContactInfo">
<asp:Panel ID="Panel1" runat="server" Visible="False">
<table id="Table1"><tr><td>
<telerik:RadComboBox ID="RadComboBox1" runat="server"
AutoPostBack="true" OnSelectedIndexChanged="RadComboBox1_SelectedIndexChanged">
</telerik:RadComboBox>
</td>
<td valign="top">
<br />
<asp:Button ID="button1" runat="server" OnClick="button1_Click" Text="Test1"
/><br />
<asp:Button ID="button2" runat="server" OnClick="button2_Click" Text="Test2"
/>
</td>
</tr>
</table>
</asp:Panel>
</telerik:RadAjaxPanel>
this.masterFormDecorator.ControlsToSkip = FormDecoratorDecoratedControls.Fieldset;<WebServiceSettings Method="GetHeadings" Path="~/WebService/ListingHeadings.asmx" />