Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
76 views

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!

Tom
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
84 views
Hi,

I want to show call tree (caller-callee nodes) in a (self-referencing) grid. The constraint is, child nodes are only fetched from the database when the root node is expanded (by clicking the the exapander of the root node). I could populate the grid statically (when NeedDataSource event is called). Can anyone please describe high level steps to do it dynamically ?



Thanks,
Atul
Veli
Telerik team
 answered on 13 Jul 2009
1 answer
179 views
Hi

I would like to share my column definitions among several different rad grids. I was thinking about using a skin file within the website theme to do this but then I remembered that i want some of the grids to be grouped and not others.

How could i achieve this? These were my thoughts

1) Add the column and grouping settings to the skin and then remove the grouping definitions programatically from the grid that doesnt need grouping. I don't know if this is possible because i know you can't override properties set in the skin file of a theme

2)  define the column definitions in the skin file and add the groupings programmatically to the grids that need to be grouped

3) perhaps i can define the column definitions in the skin file and add the groupings declaratively to the grids that need to be grouped. Not much between 2 and 3 really. Is 3 even possible?

This is all i could think of. I was hoping there might be something better than this!

many thanks
Veli
Telerik team
 answered on 13 Jul 2009
0 answers
107 views
Hello,
I am saving recurrence rule in the database in recurrence field ,  I am able to retrieving  appointments from the database by reading the recurrence rule and temporally  putting those records in  session variable . but  how to edit and delete  particular appointment   in recurrence series ?

Regards
Samir
Samir Patel
Top achievements
Rank 1
 asked on 13 Jul 2009
1 answer
115 views
We are having the null date issue with the RAD Date Picker I have read about on the forums, the example you guys have at this link "http://demos.telerik.com/aspnet-ajax/calendar/examples/datepicker/databinding/defaultcs.aspx" shows a solution for a DataTable as the source, we are using a SqlDataSource for ours can you explain how I would use this with a SqlDataSource since it doesn't have a rows property?

Protected Sub RadGrid1_UpdateCommand(ByVal source As ObjectByVal 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 


Thanks!
Sam
Veli
Telerik team
 answered on 13 Jul 2009
7 answers
379 views
Hi,

I'm using the menu component to provide good looking headers for a custom treeview.  Because it is a header with no interactivity I have disabled the menu items.  The problem is that the text is now grey and I want it to be white. 

What is the CSS that I need to alter to override the defaults? 

Regards,

Jon

PS.  If anyone has any suggestions for better ways to have a decent styled header on the treeview rather than using the menu I'd appreciate them.  I've already tried a grid but didn't like the results in this case.
Jon
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
68 views

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

Rumen
Telerik team
 answered on 13 Jul 2009
1 answer
281 views
I have the newest version on the ASP.NET AJAX controls, and I think I may have found an issue.  I have a RadGrid, that uses internal DetailTables to display additional information, and when the pager is displayed, the styles for the pager seem to be ignored.

Here is my code for the radgrid, I fill up the table(s) on the backend, and the paging and everthing works, but the pager style doesn't work at all for the DetailTables dataset.
<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> 

On all other grids the pager looks correct, just not when displaed in a DetailTables.  I am using version 2009.2.701.20 of the controls.
Veli
Telerik team
 answered on 13 Jul 2009
1 answer
210 views
Hi!
How can I change for example the web20 skin. When i hover the small box it has a light blue color and the arrow on the right side is in the same color. Now i want to change these elements. When i hover the box,   i try to change the color to white and the arrow should be darkblue. But nothing happens. The color of the hovered items change. Here is my code:
<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> 
I hope you can help me!
A second question is an update to a newer radcombobox version for free when I buyed a version for more than one year??
Yana
Telerik team
 answered on 13 Jul 2009
3 answers
145 views
Hi,
is it possible to work in an edit form with two update buttons? One should update form values to database and keep in edit mode, the other should update and close edit mode. I did some trials with "KeepInEditMode" but without success.
Maybe there is a sample available?
Thanks for feedback and Regards
Heinz
p.s. of course title should be "buttons"
Tsvetoslav
Telerik team
 answered on 13 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?