Hi , Can anybody tell me how to set the editor settings while it inside repeater? t even dos not bind data ! they all are - editors- empty while label is binded ! I need to set the next: SiteUtils.SetupNewsletterEditor(edIntroduction); edIntroduction.WebEditor.UseFullyQualifiedUrlsForResources = true; Which is usualy setted in the preinit() in pages events! any ideas will be appreciated my code seems like this : <asp:Repeater ID="TermsMatrixRepeater" runat="server" ViewStateMode="Enabled" > <ItemTemplate> <div class="categoryListTitle"> <asp:TextBox ID="txtTermCat" width="200" MaxLength="250" CssClass="verywidetextbox forminput" runat="server" Text='<%# Eval("TermCat") %>' Visible="false"></asp:TextBox> </div> <asp:Repeater ViewStateMode="Enabled" ID="rptTermSubCategory" DataSource='<%# ((DataRowView)Container.DataItem).Row.GetChildRows("TermSubCat_TermCat")%>' runat="server" > <ItemTemplate> <div class="subCategoryListSection"> <mpe:EditorControl ID="edTermSubCatDescr" runat="server" Text='<%# ((DataRow)Container.DataItem)["TermSubCatDescr"] %>' Visible="false" ></mpe:EditorControl> </div> </ItemTemplate> </asp:Repeater> </ItemTemplate> </asp:Repeater>
protected void RptTermSubCategory_ItemDataBound(object sender, System.Web.UI.WebControls.RepeaterItemEventArgs e) { if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem) { EditorControl editor =((EditorControl)e.Item.FindControl("edTermSubCatDescr")); if (editor != null) { //editor = SubCatItem.FindControl("edTermSubCatDescr") as EditorControl; editor.WebEditor.ToolBar = ToolBar.Newsletter; editor.WebEditor.FullPageMode = true; editor.WebEditor.EditorCSSUrl = string.Empty; editor.WebEditor.Width = Unit.Percentage(90); editor.WebEditor.Height = Unit.Pixel(500); SiteUtils.SetupNewsletterEditor(editor); editor.WebEditor.UseFullyQualifiedUrlsForResources = true; } } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)