I'm developing a menu using RadMenu and RadSiteMap. I'm getting the nodes by using SiteMapProviders. Everything is working, but I have to add a 4th level at certain nodes and this causes the menu to look untidy and the styling changes.
So I was thinking of having the 4th level pop out when you hover over its parent node like a tooltip. Can you use the Tooltip control with SiteMap? If yes, how do link to just the 3rd level nodes which has child nodes? I can't find any examples on the forum or demos.
I am trying to implement a Filter Template with a Combo Box that uses Images
- there is no explicit DataTextField or DataValueField in the data items
it doesn't work at all!
the markup:
<
telerik:GridTemplateColumn
UniqueName
=
"Target"
DataField
=
"Target"
SortExpression
=
"Target"
HeaderText
=
"Target"
HeaderStyle-Width
=
"40"
>
<
FilterTemplate
>
<
telerik:RadComboBox
ID
=
"rcbTarget"
OnPreRender
=
"rcbTarget_PreRender"
OnSelectedIndexChanged
=
"rcbTarget_SelectedIndexChanged"
AutoPostBack
=
"true"
runat
=
"server"
/>
</
FilterTemplate
>
<
ItemTemplate
>
<
asp:ImageButton
ID
=
"imgTarget"
ImageUrl
=
"../Images/tgt_neutral.png"
CommandName
=
"SetTarget"
CommandArgument='<%# Eval("Target") %>' Height="36" Width="36" runat="server" />
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
the code behind:
protected void rcbTarget_PreRender(object sender, EventArgs e)
{
RadComboBox rcbTarget;
rcbTarget = sender as RadComboBox;
if (ViewState["rcbTarget"] == null) { } else
{
rcbTarget.SelectedValue = ViewState["rcbTarget"].ToString();
}
}
protected void rgDraftProspects_ItemCreated(object sender, GridItemEventArgs e)
{
GridFilteringItem theFilterItem;
RadComboBox rcbTarget, rcbPager;
if (e.Item is GridFilteringItem)
{
theFilterItem = e.Item as GridFilteringItem;
//set dimensions for the filters
rcbTarget = theFilterItem["Target"].Controls[1] as RadComboBox;
FillTargetFilter(rcbTarget);
}
}
private void FillTargetFilter(RadComboBox rcbTarget)
{
RadComboBoxItem rcbiTarget;
rcbiTarget = new RadComboBoxItem();
rcbiTarget.Text = "No Filter";
rcbiTarget.Value = string.Empty;
rcbTarget.Items.Add(rcbiTarget);
// rcbiTarget = new RadComboBoxItem();
// rcbiTarget.ImageUrl = "../Images/tgt_neutral.png";
// rcbiTarget.Value = DBNull.Value.ToString();
// rcbTarget.Items.Add(rcbiTarget);
rcbiTarget = new RadComboBoxItem();
rcbiTarget.ImageUrl = "../Images/tgt_yes.png";
rcbiTarget.Value = "1";
rcbTarget.Items.Add(rcbiTarget);
rcbiTarget = new RadComboBoxItem();
rcbiTarget.ImageUrl = "../Images/tgt_no.png";
rcbiTarget.Value = "0";
rcbTarget.Items.Add(rcbiTarget);
}
protected void rcbTarget_SelectedIndexChanged(object sender, RadComboBoxSelectedIndexChangedEventArgs e)
{
StringBuilder sb;
ViewState["rcbTarget"] = e.Value;
sb = new StringBuilder();
sb.Append("([Target] = '");
sb.Append(e.Value);
sb.Append("') ");
rgDraftProspects.MasterTableView.FilterExpression = sb.ToString(); ;
rgDraftProspects.MasterTableView.Rebind();
}
Hello all.
I'm new to Telerik UI for ASP.NET AJAX.
I have on Master Page. All other pages are nested.
Now if I have on page scroll down - everything goes down. But I want that at least my main menu from Master page stays fixed always on screen.
I tried something like this, but it works not so good, my main panel blinking while scrolling.
Please advise me how I can figure it out. Thanks, I hope that there must be a single property!
Master Page.
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="VulcanDash.Site1" %>
<!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></title>
<asp:ContentPlaceHolder ID="head" runat="server">
</asp:ContentPlaceHolder>
<link href="CSS/bootstrap.min.css" rel="stylesheet" type="text/css" />
<link href="CSS/MasterPage.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
<Scripts>
<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>
<div class="container RadMenu_Fixed">
<telerik:RadMenu ID="RadMenu1" Runat="server" ClickToOpen="True" Skin="Telerik" EnableRoundedCorners="True">
<Items>
<telerik:RadMenuItem runat="server" Text="Dashboard" NavigateUrl="GeneralForm.aspx" Target="_parent">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="TA" NavigateUrl="TransactionApprovalForm.aspx" Target="_parent">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" Text="Login" NavigateUrl="LoginForm.aspx" Target="_parent">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenu>
</div>
<div class="container MainContent">
<asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>
Master Page.css
.RadMenu_Fixed
{
position:fixed !important;
width:100%;
top:0px;
}
* html .RadMenu_Fixed /*required for IE6*/
{
position:relative !important;
top:expression(eval(document.documentElement.scrollTop? document.documentElement.scrollTop : document.body.scrollTop) + "px");
left:expression(eval(document.documentElement.scrollLeft? document.documentElement.scrollLeft : document.body.scrollLeft ) + "px");
}
.MainContent
{
margin-top: 15px;
width:100%;
}
I've noticed some more unexpected behavior relating to the Telerik Editor's track changes feature. It seems that when a <p> element contains nothing but whitespace (newline, space or tab characters) any time one character is deleted, the entire element is deleted. Another issue relating to this, is that when the line is deleted, if there is another whitespace <p> element above the element, the cursor is placed not on that line, but on whatever line is next without any whitespace. This behavior can be reproduced in the track-changes demo (Found at https://demos.telerik.com/aspnet-ajax/editor/examples/trackchanges/defaultcs.aspx ) ,by following these steps:
1. Create a <p> element containing some text
2. Below this element, create 3 more containing nothing but whitespace
3. On the last line enter a space and then press the backspace key
The cursor will be moved to the <p> element containing text and the entire element will be deleted (not just the space which was entered)
Do you have any suggestions or workarounds for this issue?
Kind Regards,
Aidan Harris
<telerik:RadComboBox ID="rcbPlain" runat="server" CausesValidation="false" MaxLength="30" AutoPostBack="true" OnSelectedIndexChanged="rcbPlaint_SelectedIndexChaned"> |
</telerik:RadComboBox> |
OK, so this might be a semi-strange one but here goes. I have an AjaxLoadingPanel wired up to a UpdatePanel and it's working really well. Inside the UpdatePanel is a RadGrid that is set to Client Load. It's perfect - almost.
By default, the icon for loading is centered on the radgrid which is set to paging enabled at 100. That means, the loading icon isn't visible because you would have to scroll down the page to see it. Since the paging of 50 starts the grid at a size of 50 rows. Setting the BackgroundPosition to top is handy but doesn't look great. I know this sounds silly but it's right over the command bar of the RadGrid. Visually, it just looks "off".
So using this: <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default" BackgroundPosition="Top"></telerik:RadAjaxLoadingPanel>
Is there a way, most likely CSS, to set a padding-top so the icon appears maybe 100px padded from the top of the loading window. Again, I know it sounds silly but I put an image so you had an idea of what I was referring to.
I'll keep hacking around and see if I can find the option in CSS.
Thanks,
Richard
Hi,
In my mvc project grid, subgrid are generated from server side.i want to template one of my column.What i need is to call a java script function from client template.But the java script function call is assigned from server side.
Javascript function : function Test() {return "Hi"; }
Function call in template from server side: uiGridCoulmn.ClientTemplate= "#=Test() #";
this showing exactly 'Hi' in my specific column. But the problem is when i set a parameter to Test() and try to add the variable in function call it shows Invalid template
Javascript function : function Test(url) {return "Hi"; }
Function call in template from server side: var url ="sometext";
uiGridCoulmn.ClientTemplate= "#=Test(' "+url+" ') #";
Character ' is actually encoded to \u0027.
How can i stop this?
thanks
sabbir
The radeditor renders fine(radeditor2.png) while debugging in VS but when the site is deployed to IIS the radeditor renders without the edit mode.Any help regarding this would be highly appreciated.
Telerik version : 2017.3.913.35
Web.config registration -
</system.web><httpHandlers>
<!-- AJAX httpHandlers -->
<remove verb="*" path="*.asmx" />
<add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false" />
<!-- /AJAX httpHandlers-->
<add path="Reserved.ReportViewerWebControl.axd" verb="*" type="Microsoft.Reporting.WebForms.HttpHandler, Microsoft.ReportViewer.WebForms, Version=11.0.0.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
<add path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2017.3.913.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
<add path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2017.3.913.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
<add path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2017.3.913.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" validate="false" />
</httpHandlers>
<httpModules>
<!-- AJAX httpModules -->
<add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<!-- /AJAX httpModules -->
</httpModules>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<add name="WSFederationAuthenticationModule" type="System.IdentityModel.Services.WSFederationAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />
<add name="SessionAuthenticationModule" type="System.IdentityModel.Services.SessionAuthenticationModule, System.IdentityModel.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" preCondition="managedHandler" />
<remove name="WebDAVModule" />
<add name="ScriptModule" preCondition="integratedMode" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</modules>
<handlers>
<remove name="WebServiceHandlerFactory-Integrated" />
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
<add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
<add name="WebResource" path="Telerik.Web.UI.WebResource.axd" verb="*" type="Telerik.Web.UI.WebResource, Telerik.Web.UI, Version=2017.3.913.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
<add name="DialogHandler" path="Telerik.Web.UI.DialogHandler.axd" verb="*" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2017.3.913.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
<add name="ChartImage" path="ChartImage.axd" verb="*" type="Telerik.Web.UI.ChartHttpHandler, Telerik.Web.UI, Version=2017.3.913.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" />
</handlers></system.webServer>