or
private void SetEditorMode() { this.HelpContentRadEditor.ToolbarMode = EditorToolbarMode.Floating; this.HelpContentRadEditor.EditModes = EditModes.Preview; }function OnClientLoad(editor, args) { setTimeout(function () { editor.set_mode(4); }, 150);}<asp:ObjectDataSource runat="server" ID="MemberSubmissionData" TypeName="FacultyAnnualReview" SelectMethod="BindNestedView"> <SelectParameters> <asp:Parameter Name="SubmissionId" Type="Int32" /> </SelectParameters> </asp:ObjectDataSource>
public FacultyMemberSubmission BindNestedView(int submissionId) { return ( from data in GetFacultyMemberSubmissions() where data.SubmissionId == submissionId select data ).SingleOrDefault(); }
//Create a draft editor tool.EditorTool SaveDraftTool = new EditorTool();SaveDraftTool.Text = "Spara utkast";SaveDraftTool.Name = "SaveDraft" + this.ContentItemId.ToString(); //creating a unique command name so that correct article draft is saved.SaveDraftTool.ImageUrl = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";SaveDraftTool.ImageUrlLarge = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";EditorTool DeleteDraftTool = new EditorTool();DeleteDraftTool.Text = "Redeara utkast";DeleteDraftTool.Name = "DeleteDraft" + this.ContentItemId.ToString(); //creating a unique command name so that correct article draft is saved.DeleteDraftTool.ImageUrl = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";DeleteDraftTool.ImageUrlLarge = "/Modules/HtmlArticle/images/wysiwyg/icons/save-draft.png";
function onRequestStart(ajaxPanel, eventArgs) { if (eventArgs.EventTarget == "ExportToExcel") { eventArgs.EnableAjax = false; }