Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
105 views
Hi.

I have implemented a RadMenu system and noticed that the first and last menu item does not have any of the styling like the other menu items in between from this CSS:

 

.RadMenu_Default .rmRootGroup,

 

.RadMenu_Default a.rmLink,

 

.RadMenu_Default .rmGroup .rmText,

 

.RadMenu_Default .rmVertical .rmText,

 

.RadMenu_Default .rmLeftArrow,

 

.RadMenu_Default .rmRightArrow,

 

.RadMenu_Default .rmTopArrow,

 

.RadMenu_Default .rmBottomArrow

{

 

background-image: url('../Images/rmSprite.png');

 

background-color: transparent;

}

 

.RadMenu_Default .rmRootGroup

{

 

background: #0072C6 !important; /* Old browsers */

 

background: linear-gradient(to bottom, #0072C6 0%,#8eb92a 50%,#72aa00 51%,#003A66 100%) !important; /* W3C */

 

background-image: -ms-linear-gradient(bottom, #003A66 0%, #0072C6 100%) !important; /* IE 10 */

 

/*filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0072C6', endColorstr='#003A66',GradientType=0 ) !important; /* IE6-9 */

 

color: White !important;

}

 

.RadMenu_Default .rmGroup, .RadMenu_Default .rmMultiColumn, .RadMenu_Default .rmGroup .rmVertical

{

 

background: #0072C6 !important;

 

color: White !important;

}

 

.RadMenu_Default .rmHorizontal .rmRootLink span.rmText:hover

{

 

background: #0072C6 !important;

 

color: White !important;

}

 

.RadMenu_Default a.rmExpanded, .RadMenu_Default a.rmExpanded:hover

{

 

background: #0072C6 !important;

 

color: White !important;

}

 

.RadMenu_Default .rmItem .rmFirst .rmLink .rmText:hover, .RadMenu_Default .rmItem .rmLast .rmLink .rmText:hover

{

 

background: #0072C6 !important;

 

color: White !important;

 

background-image: none !important;

}

 

.rmText

{

 

color : White;

}



I am wondering if there is a way to make the styling for the first and last menu item the same as what is being rendered/styled for the other menu items?

Ahmed Ilyas
Top achievements
Rank 1
 answered on 11 Jun 2013
3 answers
235 views
Tabs in Rad Editor is not working - it just not focus the next control when it doesn't have anything in content area. 
It works fine when there is content in the content area of RadEditor. Pressing tab moves the focus to the next control and works fine. 
When there is no content, pressing tab just starts adding following row to the 'DescriptionWrapper' table everytime. 
<tr><td class="reWrapper_corner reCorner_bottom_left"> </td><td class="reWrapper_center reCenter_bottom" colspan="3"> </td><td class="reWrapper_corner reCorner_bottom_right"> </td></tr>
Stamo Gochev
Telerik team
 answered on 11 Jun 2013
0 answers
96 views
Hi,
I have set AllowFilteringByColumn="True" in RadGrid for that Column but some column filter working good and some not working.Not working column contain linkbutton in GridTemplateColumn or string DataType value assigned Datafield in GridBoundColumn.

How to resolve this scenario.

Thanks in Advance..!
Susi
Top achievements
Rank 1
 asked on 11 Jun 2013
2 answers
392 views
Hi guys,

I have just upgraded my telerik controls and discovered that all radinputs ( radtextbox, datepicker etc..) width have gone awry. Everything is now set to 100% width even though it was specified in the inline code to be of a certain pixel.


e.g.
<telerik:RadTextBox ID="tbxSomething" runat="server" Skin="Default" width="250px"></telerik:RadTextBox>

When i go thru my firebug, it shows the default style as:

html body .riSingle .riTextBox[type="text"] {
    margin0;
    padding-left5px;
    padding-right5px;
    width100%;
}

even though the parent span is taking the specifed width into consideration but it's still rendering the control as 100% width due to the above css style.

<span id="tbxSomething_wrapper" class="riSingle RadInput RadInput_Default" style="width: 250px;">
  /*input control here*/
</span>

I can't actually override html body .riSingle .riTextBox[type="text"] style as it seems that every other "textbox like" input is using that same style..including datepickers.

Is there way where I can be able to set the width of specific textboxes without the use of CSS as these controls are generated dynamically from xml --> xslt --> aspx and I would like the users to be able to define the width of textboxes based on the type of input.

Please advise?

Regards

Jonathan
Jonathan Zee
Top achievements
Rank 1
 answered on 11 Jun 2013
1 answer
739 views
Hello, 

I can't change forecolor of checkbox label.
I tried to set ForeColor of checkbox, I tried to overwrite color in checkbox inline style, I tried overwrite .radCheckboxChecked.
May be I'm overwriting wrong class. Please help.
Skin for my checkboxes is "Sitefinity" which was defined in RadFormDecorator.

ASPX
<telerik:RadFormDecorator ID="RFDCheckBoxes" runat="server" 
DecoratedControls ="CheckBoxes"Skin="Sitefinity" EnableRoundedCorners="false" />

<asp:CheckBox ID="chkSelect" runat="server" AutoPostBack="false" Text="Select" ForeColor="White"/>
<asp:CheckBox ID="chkSelect2" runat="server" AutoPostBack="false" style="color:white!important;"Text="Select 2"/>

CSS
.RadForm_Sitefinity.radfdCheckboxChecked {color: white!important;}
.RadForm_Sitefinity.radfdCheckboxUnchecked {color: white !important;}


Thanks in advanced.
Robin
Bozhidar
Telerik team
 answered on 11 Jun 2013
3 answers
123 views
Hi, I have a radGrid with the "Add New" button on top, what I want to do, is to not show the Edit Form when I click on this button, I just want to catch this event with OnItemCommand and do some things there, without showing the EditForm on the RadGrid

protected void dtgPilot_OnItemCommand(object sender, GridCommandEventArgs e)
        {
                switch (Convert.ToString(e.CommandName))
                {
                    case "InitInsert":
                        //Code here
                        break;
                }
 
            }
        }

radGrid: 
<telerik:RadGrid runat="server" id="dtgPilot" AllowPaging="true"   AutoGenerateColumns="false"
                        OnItemCommand="dtgPilot_OnItemCommand" >
                        <MasterTableView CommandItemDisplay="Top" DataKeyNames="Id" >
                            <CommandItemSettings AddNewRecordText="Add New" ShowRefreshButton="false" />
                            <Columns>
                                <telerik:GridNumericColumn DataField="Id" Visible="false" />
                                <telerik:GridBoundColumn   DataField="PilotName" HeaderText="Name" /><telerik:GridBoundColumn   DataField="LicenceNumber" HeaderText="License #" />
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>

thanks
Princy
Top achievements
Rank 2
 answered on 11 Jun 2013
1 answer
115 views
Hi ,

Thanks in Advance for any Suggestion.

In my code I am Using RadToolTipManager to display tooltip on grid. I am having a column which will show tooltip. On Initial Page load I am getting the tooltip correctly for the respective rows. but after applying filter on that particular column, the tool tip is getting the same reference as on page load and showing the tooltip that I have able to see on page load. In OnItemdatabound I am adding the tooltipManager to the filtered row , still its taking the reference of Initial page load.


Please suggest ......
Princy
Top achievements
Rank 2
 answered on 11 Jun 2013
5 answers
679 views
Hi,

A very simple page with a repeater control. each row in the repeater has a button, clicking the button will change the button text to current time. But get js error when click the button after ajaxified the button. the error says "Uncaught TypeError: Cannot read property 'id' of undefined". the full set of code is attached below. can anyone help to have a look? Thanks in advance.

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <Scripts>
            <%--Needed for JavaScript IntelliSense in VS2010--%>
            <%--For VS2008 replace RadScriptManager with ScriptManager--%>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </Scripts>
    </telerik:RadScriptManager>
    <script type="text/javascript">
        //Put your JavaScript code here.
    </script>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    </telerik:RadAjaxManager>
    <div>
        <asp:Repeater ID="rptItems" runat="server">
            <ItemTemplate>
                <asp:Button runat="server" ID="btnButton" Text="show time" OnClick="btnButton_Click" />
            </ItemTemplate>
        </asp:Repeater>
    </div>
    </form>
</body>
</html>

using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
 
public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            int[] data = { 1, 2 };
            rptItems.DataSource = data;
            rptItems.DataBind();
        }
 
    }
 
    protected void Page_PreRender(object sender, EventArgs e)
    {
        foreach (RepeaterItem item in rptItems.Items)
        {
            var control = (Button)item.FindControl("btnButton");
            RadAjaxManager1.AjaxSettings.AddAjaxSetting(control, control);
        }
    }
 
    protected void btnButton_Click(object sender, EventArgs e)
    {
        (sender as Button).Text = DateTime.Now.ToString();
    }
 
}
Jason Li
Top achievements
Rank 1
 answered on 11 Jun 2013
1 answer
54 views
Let's say I have a column in my grid, "Comments." This is usually a very large string, let's say hundreds of characters. Obviously this doesn't look very good in the grid.

It would be nice to only show the first few characters, and when the user clicks on the cell, a dialog or window would quickly pop up next to the cell, with the contents of the clicked Comments cell displayed inside.

Is there any kind of built-in functionality for this already? If not, is there a solution for this anybody has come up with?

Any help would be appreciated - thank you.
A2H
Top achievements
Rank 1
 answered on 10 Jun 2013
2 answers
117 views
hi telerik,

I want to build a PanelBar with only one vertical scrollbar across the entire bar whenever the total size of content exceeds the height limit. So I just set the ChildGroupHeight property of the root panel item and it works fine. But when clicking one child item which also contains child items, the vertical scrollbar disappears after the child item is expanded. I'm just wondering is this a bug or corrected behavior by design?  if it's by design, how can i build this except using FullExpandedItem ExpandMode approach?

thanks,

roger
roger
Top achievements
Rank 1
 answered on 10 Jun 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?