Hi,
I can't seem to export the child records. I have 3 levels of hierarchical grid.
Here is the code that I'm using:
RadGrid1.ExportSettings.ExportOnlyData = True
RadGrid1.ExportSettings.IgnorePaging =
True
RadGrid1.ExportSettings.OpenInNewWindow = True
RadGrid1.ExportSettings.FileName = "Summary_" & Now.Date.ToShortDateString.Replace("/", "")
RadGrid1.MasterTableView.HierarchyDefaultExpanded =
True
RadGrid1.MasterTableView.ExportToExcel()
I've tried using Rebind() method as well but that didn't really solve my problem. I'm only seeing 2 levels only.
Please help!
| Protected Sub RadGrid1_UpdateCommand(ByVal source As Object, ByVal e As UI.GridCommandEventArgs) Handles RadGrid1.UpdateCommand |
| Dim picker As RadDatePicker = CType(e.Item.FindControl("picker1"), RadDatePicker) |
| Dim newDate As Object = picker.DbSelectedDate |
| DataSource1.Rows(e.Item.DataSetIndex)("Dates") = IIf(newDate Is Nothing, DBNull.Value, newDate) |
| End Sub |
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> |