Hi,
When I add a button to a RadToolBarDropDown object on the client-side the dropdown menu never resizes. As a result, if the button text is too long then part of it get chopped off. Anyone know how I can get dropdown menu to resize after a button has been added on the client-side?
Thanks
Man Cheong Liu
I'm unable to get a horizontal RadMenu to stretch to exactly 100% of a page's body width. I simply set the BODY style to have 0px margin and 0px padding then insert a RadMenu with Flow="Horizontal" and Width="100%".
My goal is to have a menu bar stretch across the top of the screen. It does this, but with a few extra pixels, causing IE7 to display the horizontal scroll bar.
<%
@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>
<%
@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%
@ Register TagPrefix="telerik" Namespace="Telerik.Charting" Assembly="Telerik.Charting" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head runat="server">
<title>Untitled Page</title>
</
head>
<
body style="margin:0px; padding:0px">
<form id="form1" runat="server"><telerik:RadScriptManager ID="RadScriptManager1" runat="server">
</
telerik:RadScriptManager>
<div>
<telerik:RadMenu ID="RadMenu1" runat="server" DataSourceID="SiteMapDataSource1"
Flow="Horizontal" Width="100%"
ClickToOpen="false" >
<DefaultGroupSettings Flow="Vertical" ExpandDirection="Auto"></DefaultGroupSettings>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
<ExpandAnimation Type="OutQuart"></ExpandAnimation>
</telerik:RadMenu>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="False" />
</div>
</form>
</
body>
</
html>
| Value='<%# DataBinder.Eval(Container, "DataItem.Salary")%>' |
| <telerik:RadNumericTextBox ID="radNumericTextBox" runat="server" Type="Number" |
| Value='<%# DataBinder.Eval(Container, "DataItem.Salary")%>' |
| LabelCssClass="radLabelCss_Web20" Skin="Telerik" Width="80px" style="TEXT-ALIGN: left" |
| Font-Size="8pt" > |
| <NumberFormat DecimalDigits="4" /> |
| <FocusedStyle BorderColor="Red" BorderStyle="Double" /> |
| <HoveredStyle BorderColor="Red" BorderStyle="Double" /> |
| </telerik:RadNumericTextBox> |
VS2005 SP1, RadControls for ASP.NET Ajax version 2008.3.1105.20, VS2005 Integrated Web Hosting
I am getting the following popup error message:
"Web.Config registration missing!
The Telerik dialogs require a HttpHandler registration in the web.config file. Please, use the control's Smart Tag to add the handler automatticaly, or see the help for more information: Controls > Editor > Dialogs"
Here is the httpHandlers section of the web.config:
| <httpHandlers> |
| <remove path="*.asmx" verb="*" /> |
| <add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2008.3.1105.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" |
| validate="false" /> |
| <add path="Telerik.Web.UI.DialogHandler.aspx" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.3.1105.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" |
| validate="false" /> |
| <add path="Telerik.Web.UI.SpellCheckHandler.axd" verb="*" type="Telerik.Web.UI.SpellCheckHandler, Telerik.Web.UI, Version=2008.3.1105.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" |
| validate="false" /> |
| <add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" /> |
| <add path="*_AppService.axd" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" |
| validate="false" /> |
| <add path="ScriptResource.axd" verb="GET,HEAD" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" |
| validate="false" /> |
| <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI, Version=2008.3.1105.20, Culture=neutral, PublicKeyToken=121FAE78165BA3D4" /> |
| <add path="*.asmx" verb="*" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" |
| validate="false" /> |
| </httpHandlers> |
and the markup from the page:
| <script type="text/javascript" language="javascript"> |
| function SpellCheck() { |
| var spell = $find('commentsSpellCheck'); |
| spell.startSpellCheck(); |
| } |
| function SpellCheckComplete() { |
| var comments = $find('comments'); |
| comments.updateDisplayValue(); |
| } |
| </script> |
| <table> |
| <tr> |
| <td> </td> |
| <td><span class="table_header">Comments:</span></td> |
| <td align="right"> |
| <asp:ImageButton ID="spellCheck" |
| runat="server" |
| ImageUrl="~/images/spellcheck.png" |
| OnClientClick="SpellCheck();" /> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| </td> |
| <td colspan="2" valign="top"> |
| <telerik:RadSpell ID="commentsSpellCheck" |
| runat="server" |
| ControlToCheck="comments" |
| SupportedLanguages="en-US,English" |
| DictionaryPath="~/App_Data" |
| WordIgnoreOptions="UPPERCASE,WordsWithCapitalLetters,WordsWithNumbers" |
| FragmentIgnoreOptions="All" |
| OnClientDialogClosed="SpellCheckComplete" |
| Skin="Inox" |
| ButtonText="" |
| ButtonType="None" /> |
| <telerik:RadTextBox ID="comments" |
| runat="server" |
| Skin="Inox" |
| EmptyMessage="Enter any comments here" |
| Rows="5" |
| Width="100%" |
| TextMode="MultiLine" |
| Wrap="true" /> |
| </td> |
| </tr> |
| </table> |
