Maybe you can help...
I am using the RadEditor and want to be able to center just one line of text and not the entire content of the editor. Thus, I followed the steps outlined in other forum threads and tutorials.
When I actually have <p> tags surrounding each line of text, setting the margins of the tags as a css class works great. The problem is that the property NewLineBr="false" doesn't seem to be working in my editor (or I am misunderstanding its functionality?).
I'm using IE7, and currently am under the understanding that when NewLineBr is set to false then when I hit ENTER in my RadEditor, I should get <p> tags and not a <br> tag. However, I'm still just getting <br> tags each time. Here's my editor code:
| <telerik:RadEditor ID="RadEditor" runat="server" Height="500px" Width="750px" ContentFilters="None" Skin="Vista" NewLineBr="false"> |
| <Content> |
| </Content> |
| <Tools> |
| <telerik:EditorToolGroup> |
| <telerik:EditorTool Name="Bold" /> |
| <telerik:EditorTool Name="Underline" /> |
| <telerik:EditorTool Name="Italic" /> |
| <telerik:EditorTool Name="StrikeThrough" /> |
| <telerik:EditorTool Name="Indent" /> |
| <telerik:EditorTool Name="Outdent" /> |
| <telerik:EditorTool Name="JustifyCenter" /> |
| <telerik:EditorTool Name="JustifyLeft" /> |
| <telerik:EditorTool Name="JustifyFull" /> |
| <telerik:EditorTool Name="JustifyRight" /> |
| <telerik:EditorTool Name="JustifyNone" /> |
| <telerik:EditorTool Name="FontName" /> |
| <telerik:EditorTool Name="RealFontSize" /> |
| <telerik:EditorTool Name="ForeColor" /> |
| </telerik:EditorToolGroup> |
| </Tools> |
| <CssFiles> |
| <telerik:EditorCssFile Value="~/EditorContentArea.css" /> |
| </CssFiles> |
| </telerik:RadEditor> |
Thanks for your help!
Michael

| <telerik:RadGrid |
| ID="gridSearchResults" |
| runat="server" |
| GridLines="None" |
| Width="100%" |
| EnableAjax="true" |
| EnableViewState="true" |
| AllowPaging="True" |
| AllowCustomPaging="True" |
| AllowSorting="True" |
| AutoGenerateColumns="False" |
| CssClass="NoPadding" |
| OnNeedDataSource="gridSearchResults_NeedDataSource" |
| OnItemDataBound="gridSearchResults_ItemDataBound" |
| OnDetailTableDataBind="gridSearchResults_DetailTableDataBind" |
| PageSize="10"> |
| <HeaderContextMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </HeaderContextMenu> |
| <ClientSettings AllowColumnsReorder="False" ReorderColumnsOnClient="False"> |
| <Scrolling AllowScroll="false" UseStaticHeaders="True" /> |
| <Resizing |
| AllowRowResize="False" |
| EnableRealTimeResize="True" |
| ResizeGridOnColumnResize="False" |
| AllowColumnResize="True"></Resizing> |
| <Selecting AllowRowSelect="True"></Selecting> |
| </ClientSettings> |
| <MasterTableView |
| ShowFooter="False" |
| Width="100%" |
| TableLayout="Fixed" |
| DataKeyNames="Type"> |
| <DetailTables> |
| <telerik:GridTableView runat="server" |
| DataKeyNames="Number" |
| Name="Objects" |
| Width="100%" |
| AllowCustomPaging="true" |
| PageSize="10"> |
| <Columns> |
| <telerik:GridTemplateColumn |
| UniqueName="NameColumn" |
| SortExpression="Name" |
| HeaderText="Name"> |
| <HeaderStyle Width="165px" /> |
| <ItemTemplate> |
| <asp:HyperLink ID="hlSelectLink" runat="server" |
| NavigateUrl="SomePage.aspx" |
| Style="font-family: Tahoma; font-size: 11px;" |
| Text='<%# Eval("Name") %>'></asp:HyperLink> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn |
| DataField="DateCreated" |
| DataType="System.DateTime" |
| HeaderText="Date Created" |
| SortExpression="DateCreated" |
| UniqueName="DateCreated"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn |
| DataField="Status" |
| HeaderText="Status" |
| SortExpression="Status" |
| UniqueName="Status"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <PagerStyle Mode="NextPrevAndNumeric"/> |
| </telerik:GridTableView> |
| </DetailTables> |
| <Columns> |
| <telerik:GridBoundColumn |
| DataField="ObjectType" |
| HeaderText="Object Type" |
| SortExpression="ObjectType" |
| UniqueName="ObjectType"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn |
| DataField="TotalNumberOfObjects" |
| HeaderText="Total Objects" |
| SortExpression="TotalNumberOfObjects" |
| UniqueName="TotalNumberOfObjects"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <PagerStyle Mode="NextPrevAndNumeric" /> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| <NoRecordsTemplate> |
| No Rows were returned |
| </NoRecordsTemplate> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
| <style type="text/css"> |
| .RadComboBoxDropDown_Web20 .rcbScroll |
| { |
| overflow-x:hidden !important; |
| } |
| .RadComboBoxDropDown_Web20 .rcbHovered |
| { |
| background-color:#FF6600; |
| } |
| .RadComboBox_Web20 .rcbArrowCell, |
| .RadComboBox_Web20 .rcbFocused |
| { |
| background:#001359; |
| } |
| </style> |
<telerik:RadGrid ID="grd" runat="server" DataSourceID="datasource" GridLines="None"
AllowSorting="True" PageSize="5000" AllowAutomaticInserts="True" AllowAutomaticDeletes="True"
AllowAutomaticUpdates="True">
<HeaderContextMenu EnableTheming="True">
<CollapseAnimation Type="None" Duration="0"></CollapseAnimation>
</HeaderContextMenu>
<PagerStyle AlwaysVisible="True"/>
<MasterTableView Caption="Some text here" datakeynames="1,2"
datasourceid="datasource" CommandItemDisplay="Top"
PagerStyle-Position="Top" PagerStyle-AlwaysVisible="true">
<Columns></Columns>
<EditFormSettings EditFormType="Template" >
<EditColumn UniqueName="EditCommandColumn1"></EditColumn>
<FormTemplate>
<%--Removed--%>
</FormTemplate>
</EditFormSettings>
<PagerStyle AlwaysVisible="False" Position="Top" />
</MasterTableView>
<ClientSettings>
<Scrolling AllowScroll="True" UseStaticHeaders="True" ScrollHeight="600px" />
</ClientSettings>
<FilterMenu EnableTheming="True" Skin="Office2007">
<ExpandAnimation Duration="0" Type="None" />
<CollapseAnimation Duration="0" Type="None" />
</FilterMenu>
</telerik:RadGrid>

| RadGrid1.AllowFilteringByColumn = true; |
| GridFilterMenu menu = RadGrid1.FilterMenu; |
| int i = 0; |
| while (i < menu.Items.Count) |
| { |
| if (menu.Items[i].Text == "NoFilter" || |
| menu.Items[i].Text == "Contains" || |
| menu.Items[i].Text == "EqualTo" || |
| menu.Items[i].Text == "GreatherThan" || |
| menu.Items[i].Text == "LessThan") |
| { |
| i++; |
| } |
| else |
| { |
| menu.Items.RemoveAt(i); |
| } |
| } |