Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
384 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
69 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
290 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
215 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
148 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
1 answer
95 views
Version: 2009.2 701

Problem:
    The CommandItem appears twice if you have the following settings:

1).CommandItemDisplay="Top"  -MasterTableView
2) AllowScroll="True" - ClientSettings -->Scrolling
3) AllowPaging="False"

Question:
Has anyone else ran into this problem? 

Work-Around: Set AllowPaging="True"

Update: Here is enough code to re-produce the problem:

 <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>

 

 

Rosen
Telerik team
 answered on 13 Jul 2009
1 answer
130 views
Hi,
I am using RadEditor which is Used by largely Turkish End-Users to provide them to create PDFs. Therefore, HTML window is not shown. But I have problems with Tables and Turkish Character when I export the content to PDF files. I guess third party HTML2PDF tool that radeditor using, does not support Turkish and not good at Converting Tables.  Do you have any idea about how can I walk around these?
Many Thanks in Advance
Kind Regards.
Aytaç Utku TOPAL
Rumen
Telerik team
 answered on 13 Jul 2009
1 answer
347 views
Hello,

I'm currently working on a Sharepoint Webpart containing the RadGrid. This Grid is able to Filter items

RadGrid1.AllowFilteringByColumn = true; 

I've read an article to change the FilterMenu with this code:

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); 
                        } 
                    } 

My Question now is - Is is possible to change the visible names of the Fliter Menu Items.

NoFilter should be displayed as "Geen Filter"
Contains should be displayed as "Bevat"
EqualTo should be displayed as "Gelijk aan"
GreatherThan should be displayed as "Groter dan"
LessThan should be displayed as "Minder dan"

Is there a way to achieve this, because the client I'm working for has a Dutch-only policy on their software.
I Hope you're able to help me.

Paul

Paul
Top achievements
Rank 1
 answered on 13 Jul 2009
2 answers
321 views
Hi
Currently, I am using InPlace edit mode to let user adding new records in RadGrid.  Users need to click "Add" in the CommandItemTemplate to show the controls in the EditItemTemplate.  AFter user click Update, the record is added and the EditItemTemplate is closed.  Users need to click "Add" again to add the second record.  How can I make the Grid remain in "Insert Mode" after adding a new record?

I have tried 

    protected void radLines_InsertCommand(object source, GridCommandEventArgs e)
    {
            /* codes to add record */
            RadGrid grid = source as RadGrid;
            grid.MasterTableView.IsItemInserted = true;
            grid.Rebind();
    }

but the EditItemTemplate is still closed.

Regards
Edwin
Edwin
Top achievements
Rank 1
 answered on 13 Jul 2009
1 answer
76 views
Dear All,
I want to drag persons from grid view to scheduler and then make new appointment (i am using RadGridView) I can drag persons but i dont know how to insert new appointment when I am dropping them down on scheduler is this possieble??
Princy
Top achievements
Rank 2
 answered on 13 Jul 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?