or
<telerik:RadEditor ID="RadContentEditor" Runat="server" Width="100%" Height="350px"> <Tools> <telerik:EditorToolGroup Tag="MainToolbar"> <telerik:EditorTool Name="Print" ShortCut="CTRL+P" /> <telerik:EditorTool Name="AjaxSpellCheck" /> <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" /> <telerik:EditorTool Name="SelectAll" ShortCut="CTRL+A" /> <telerik:EditorTool Name="Cut" /> <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" /> <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" /> <telerik:EditorToolStrip Name="PasteStrip"> </telerik:EditorToolStrip> <telerik:EditorSeparator /> <telerik:EditorSplitButton Name="Undo"> </telerik:EditorSplitButton> <telerik:EditorSplitButton Name="Redo"> </telerik:EditorSplitButton> </telerik:EditorToolGroup>
******More tool groups here**********
</Tools> <Content> </Content> <ImageManager UploadPaths="/BlastImages/" ViewPaths="/BlastImages/" /> <DocumentManager UploadPaths="/BlastDocuments/" ViewPaths="/BlastDocuments/" /> </telerik:RadEditor> <br /> <table id="buttonTable" width="75%" align="center"> <tr> <td style="width:50%; text-align:center;"> <telerik:RadButton ID="saveContentButton" runat="server" ButtonType="LinkButton" OnClick="saveContentButton_OnClick" Text="Update Content"> <Icon PrimaryIconCssClass="rbSave" /> </telerik:RadButton> </td> <td style="width:50%; text-align:center;"> <telerik:RadButton ID="cancelButton" runat="server" ButtonType="LinkButton" OnClick="cancelButton_OnClick" Text="Cancel"> <Icon PrimaryIconCssClass="rbCancel" /> </telerik:RadButton> </td> </tr> </table> <asp:SqlDataSource ID="sectionDS" runat="server" ConnectionString="<%$ ConnectionStrings:MyConnString %>" SelectCommand="SELECT [Content].id, [Content].page_id, [Content].section_name, [Content].html_content FROM [Content] INNER JOIN Pages ON [Content].page_id = Pages.id WHERE [Pages].page_url=@page_url" > <SelectParameters> <asp:SessionParameter Name="page_url" SessionField="page_url" /> </SelectParameters> </asp:SqlDataSource>
protected void saveContentButton_OnClick(object sender, EventArgs e) { PageHelper ph = new PageHelper(); try { string section_id = (string)Session[Constants.SESSION_SECTION_ID]; string section_content = RadContentEditor.Content; ph.updateSectionContent(section_id, section_content); Response.Redirect("~/Web/Admin/Content/ManagePageSections.aspx"); } catch (Exception ex) { Response.Redirect("~/Errors/UnhandledException.htm"); } }var allMyFoo = (from w in fooService.GiveMeFoo() select new { ID = w.ID, Foo = w.Foo.Name });var myFooCount = fooService.CountMyFoo();return new Dictionary<string, object> { {"foo", allMyFoo}, {"fooCount", myFooCount}};
in aspx...
<telerik:GridBoundColumn UniqueName="FooName" SortExpression="Foo.Name" DataField="Foo" HeaderText="Foo" DataType="System.String">
</telerik:GridBoundColumn> var allMyFoo = (from w in fooService.GiveMeFoo() select new { ID = w.ID, Foo = new { Name = w.Foo.Name } }); var myFooCount = fooService.CountMyFoo();return new Dictionary<string, object> { {"foo", allMyFoo}, {"fooCount", myFooCount}};in aspx...<telerik:GridBoundColumn UniqueName="FooName" SortExpression="Foo.Name" DataField="Foo.Name" HeaderText="Foo" DataType="System.String"></telerik:GridBoundColumn>
this.radGridLicenseTerms.ExportSettings.ExportOnlyData = true;
this.radGridLicenseTerms.ExportSettings.IgnorePaging = true;
this.radGridLicenseTerms.ExportSettings.OpenInNewWindow = true;
this.radGridLicenseTerms.ExportSettings.FileName = COMPANYCONTRACTS_EXPORTFILENAME;
this.radGridLicenseTerms.MasterTableView.ExportToExcel();
| <telerik:RadScheduler ID="RadScheduler1" runat="server" SkinID="Scheduler-FR" |
| DataKeyField="ID_Event" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" |
| DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="ID_RecurrenceParent" |
| DataSourceID="EventsDataSource" OnAppointmentDataBound="RadScheduler1_AppointmentDataBound" |
| OnAppointmentCommand="RadScheduler1_AppointmentCommand" |
| OnAppointmentCreated="RadScheduler1_AppointmentCreated" |
| onformcreated="RadScheduler1_FormCreated"> |
| <AdvancedForm Modal="true" /> |
| <ResourceTypes> |
| <telerik:ResourceType KeyField="ID_TypeEvent" Name="TypeEvent" TextField="TypeName" ForeignKeyField="ID_TypeEvent" |
| DataSourceID="TypeEventDataSource" /> |
| <telerik:ResourceType KeyField="ID_Room" Name="Room" TextField="RoomName" ForeignKeyField="ID_Room" |
| DataSourceID="RoomsDataSource" /> |
| <telerik:ResourceType KeyField="ID_User" Name="User" TextField="LastName" ForeignKeyField="ID_User" |
| DataSourceID="UsersDataSource" /> |
| <telerik:ResourceType KeyField="ID_Promo" Name="Promo" TextField="PromoName" ForeignKeyField="ID_Promo" |
| DataSourceID="PromoDataSource" /> |
| <telerik:ResourceType KeyField="ID_Campus" Name="Campus" TextField="CampusName" ForeignKeyField="ID_Campus" |
| DataSourceID="CampusDataSource" /> |
| </ResourceTypes> |
| <AppointmentTemplate> |
| <asp:Label runat="server" ID="RecurrenceIcon" /> |
| <%# Eval("Subject") %><br /> |
| --------------------<br /> |
| <asp:Label runat="server" ID="lbl_TypeEvent" /><br /> |
| <asp:Label runat="server" ID="lbl_Room" /><br /> |
| <%# Eval("Description") %> |
| <div style="vertical-align:bottom; text-align: right;"> |
| <asp:Button runat="server" ID="ButtonExport" CssClass="rsExportButton" ToolTip="Exporter au format iCalendar" |
| CommandName="Export" OnClientClick="Export(this, event); return false;" Style="cursor: pointer; |
| cursor: hand;" /> |
| </div> |
| </AppointmentTemplate> |
| <TimeSlotContextMenuSettings EnableDefault="true" /> |
| <AppointmentContextMenuSettings EnableDefault="true" /> |
| </telerik:RadScheduler> |
| protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e) |
| { |
| RadScheduler scheduler = (RadScheduler) sender; |
| if (e.Container.Mode == SchedulerFormMode.Insert || e.Container.Mode == SchedulerFormMode.AdvancedInsert |
| || e.Container.Mode == SchedulerFormMode.Edit || e.Container.Mode == SchedulerFormMode.AdvancedEdit) |
| { |
| //ResourceType typeEvent = e.Appointment.Resources.GetResourceByType("TypeEvent"); |
| Resource typeEvent = e.Appointment.Resources.GetResourceByType("TypeEvent"); |
| Resource room = e.Appointment.Resources.GetResourceByType("Room"); |
| Resource user = e.Appointment.Resources.GetResourceByType("User"); |
| Resource promo = e.Appointment.Resources.GetResourceByType("Promo"); |
| Resource campus = e.Appointment.Resources.GetResourceByType("Campus"); |
| //ResourceCollection resourcecollection = e.Appointment.Resources.Remove(typeEvent); |
| //typeEvent.Available = false; |
| //ResourceData resourcedata = e.Appointment.Resources.Remove(typeEvent); |
| } |
| } |