Hi
I am new to Telerik Scheduler. I am trying to create My Calendar web page by using my own AdvancedFormTemplate and use Telerik Scheduler DataSource for data binding , since I need to handle my own insert, update and delete. I need to have several custom properties such as Location, appointment Type and IsSuggestedEvent and recourses such as list of other participation appointments for the same event. In my AdvancedFormTemplate, I need to allow user to add other participators for an event, which will create the list of other participation appointments.
Should these custom properties and list of participation appointments are all handled as resource? Do you have any example using own business objects?
Thanks in advance
function GetRadWindow() { var oWindow = null; if (top.radWindow) oWindow = top.radWindow; //Will work in Moz in all cases, including clasic dialog else if (top.frameElement.radWindow) oWindow = top.frameElement.radWindow; //IE (and Moz az well) return oWindow;}function CloseOnReload() { GetRadWindow().Close();} <script language="javascript" type="text/javascript"> //<![CDATA[ function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well) return oWindow; } function CloseOnReload() { GetRadWindow().Close(); } //]]> </script><body style="background:#bbdbb4;"> <form id="form1" runat="server"> <telerik:RadScriptManager ID="RadScriptManager1" Runat="server" /> <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server" DecoratedControls="Buttons" /> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" /> <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Forest" /> <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px"> <div style="position:absolute; left:0px; top:0px;"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr><td colspan="2"><asp:Label ID="InjectScript" runat="server" Text="" /></td></tr> <tr> <td> <asp:Label ID="Label1" runat="server" Text="Date :" Width="100%"></asp:Label> </td> <td> <telerik:RadCalendar ID="RadCalendar1" Runat="server" CultureInfo="English (South Africa)" EnableMultiSelect="False" SelectedDate="" ViewSelectorText="x" AutoPostBack="True"> <SpecialDays> <telerik:RadCalendarDay Date="2010-05-25" IsSelectable="False" IsDisabled="true"> </telerik:RadCalendarDay> </SpecialDays> </telerik:RadCalendar> </td> </tr> </table> </div> </telerik:RadAjaxPanel> <div> <table width="100%" cellpadding="0" cellspacing="0" border="0" > <tr><td colspan="2"> </td></tr> <tr> <td ><asp:Label ID="label2" runat="server" Text="Amount :" Width="100%" /></td> <td><asp:TextBox ID="txtAmount" runat="server" /></td> </tr> <tr> <td> </td> <td> </td> </tr> <tr> <td colspan="2"> <center> <asp:Button ID="cmdSave" runat="server" Text="Save" /> <asp:Button ID="cmdCancel" runat="server" Text="Cancel" /> </center> </td> </tr> </table> </div> </form></body></htmlProtected Sub cmdSave_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdSave.Click Dim javaInjection As String = "" javaInjection = "<" + "script language='javascript' type='text/javascript'>" javaInjection = javaInjection + "window.parent.form1.txtDate.value='" + Me.RadCalendar1.SelectedDate + "';" javaInjection = javaInjection + "window.parent.form1.txtAmount.value='" + Me.txtAmount.Text + "';" javaInjection = javaInjection + "CloseOnReload();" javaInjection = javaInjection + "window.parent.form1.submit();" javaInjection = javaInjection + "</" + "script>" Me.InjectScript.Text = javaInjectionEnd SubProtected Sub cmdCancel_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdCancel.Click Dim javaInjection As String = "" javaInjection = "<" + "script language='javascript' type='text/javascript'>" javaInjection = javaInjection + "window.parent.form1.txtDate.value='';" javaInjection = javaInjection + "window.parent.form1.txtAmount.value='';" javaInjection = javaInjection + "Window.parent.form1.frmTask.value='';" javaInjection = javaInjection + "CloseOnReload();" javaInjection = javaInjection + "</" + "script>" InjectScript.Text = javaInjectionEnd Sub radEditor.Tools.Clear(); EditorToolGroup toolBar = new EditorToolGroup();
... toolBar.Tools.Add(new EditorSeparator()); EditorTool fontsize = new EditorTool("RealFontSize"); toolBar.Tools.Add(fontsize); toolBar.Tools.Add(new EditorTool("Bold")); toolBar.Tools.Add(new EditorTool("Italic")); toolBar.Tools.Add(new EditorTool("Underline")); toolBar.Tools.Add(new EditorSeparator()); toolBar.Tools.Add(new EditorTool("ForeColor")); toolBar.Tools.Add(new EditorTool("BackColor"));... radEditor.Tools.Add(toolBar);
Exception Details: System.IO.FileLoadException: Could not load file or assembly 'Telerik.Web.UI, Version=2009.1.527.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
It looks like we have to update the Telerik dll in the sub-project but I have already done this. I have replaced the dll's for this specific project and loaded up the sub-project separately in VS to make sure it's fully updated - it is. How can it be possible that I am still getting this error?
I've also checked other support queries for this problem... and have tried many things, such as uninstalling previous versions from GAC and updating the tags in the webconfig file, but still none of this works. What can I do?
The problem is that RadPane--rpLeft which contain a usercontrol is all blank when I make a search.The
strange thing is that I click the RadSplitBar to collapse this pane and then click the RadSplitBar again to expand.
All content in this Pane is there.I don't know what cause this problem. I gusee it maybe the usercontrol in this pane.
Could someone give me some idea? I will appreciate it.
<telerik:RadSplitter ID="rspSplitter" runat="server" ResizeWithBrowserWindow="true" VisibleDuringInit="false" Width="100%" Height="100%"> <telerik:RadPane ID="rpLeft" runat="server" Width="20%" Scrolling="None" Collapsed="true"> <uc4:ajaxoperatorleftpart id="AjaxPart1" runat="server" /> <iframe id="frameMain" src="../../Default.aspx" scrolling="no" frameborder="0" width="100%" height="220"></iframe> </telerik:RadPane> <telerik:RadSplitBar ID="RadSplitBar1" runat="server" CollapseMode="Forward" /> <telerik:RadPane ID="rpRight" runat="server" Scrolling="None" Width="80%"> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr> <td valign="top"> <div> <table class="table" border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top: 2px; margin-bottom: 2px;"> <tr> <td> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right"> KeyWords: </td> <td style="width: 220px;"> <telerik:RadTextBox ID="rtxtKeyStr" runat="server" EmptyMessage="" Width="220px"> </telerik:RadTextBox> </td> <td style="width: 110px;" align="right"> IsDirectSolution: </td> <td> <asp:RadioButtonList ID="rblDirectSolutionSimple" runat="server" CellPadding="0" CellSpacing="0" RepeatDirection="Horizontal" RepeatLayout="Table"> <asp:ListItem Selected="True" Value="">All</asp:ListItem> <asp:ListItem Value="1">Y</asp:ListItem> <asp:ListItem Value="0">N</asp:ListItem> </asp:RadioButtonList> </td> <td style="width: 80px;"> <asp:ImageButton ID="ibtnSimpleSearch" runat="server" ImageUrl="~/App_Themes/Default/images/search.gif" OnClick="ibtnSimpleSearch_Click" Style="height: 22px" /> </td> </tr> </table> </td> </tr> </table> <telerik:RadGrid ID="RadGrid1" runat="server"> <MasterTableView Name="requestList" Width="100%"> <Columns> <telerik:GridTemplateColumn HeaderText="request" UniqueName="column" SortExpression="ID"> <ItemTemplate> <a href="javascript:void(null);" onclick="openRequestInfo('<%#Eval("ID") %>')"> <%#Eval("ID") %></a> </ItemTemplate> <HeaderStyle Width="80" /> </telerik:GridTemplateColumn> <telerik:GridBoundColumn HeaderText="Name" UniqueName="column1" DataField="UserAccount"> <HeaderStyle Width="80px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Department" UniqueName="column2" DataField="Department"> <HeaderStyle Width="90px" /> </telerik:GridBoundColumn> <telerik:GridBoundColumn HeaderText="Contract" UniqueName="column3" DataField="Telephone"> <HeaderStyle Width="80px" /> </telerik:GridBoundColumn> <telerik:GridTemplateColumn HeaderText="Content" UniqueName="column4"> <ItemTemplate> <asp:Label ID="lblContent" runat="server" Text='<%#Eval("Content") %>' ToolTip='<%#Eval("Content") %>'></asp:Label> </ItemTemplate> <HeaderStyle Wrap="false" /> <ItemStyle Wrap="false" /> </telerik:GridTemplateColumn> </Columns> <HeaderStyle Wrap="false" /> </MasterTableView> <ClientSettings> <Selecting AllowRowSelect="true" /> <Resizing AllowColumnResize="True" EnableRealTimeResize="true" ClipCellContentOnResize="true" /> </ClientSettings> </telerik:RadGrid> </div> </td> </tr> </table> </telerik:RadPane> </telerik:RadSplitter>