See the code below, the RadMenu1 ALT-M works but the RadMenu2 ALT-N does not? So I'm guessing we need to set the RadMenu2 RadMenu2.KeyboardNavigationSettings.FocusKey in the code behind but RadMenu2.KeyboardNavigationSettings.FocusKey="N" is an error, how do we set this property?
<telerik:RadMenu ID="RadMenu1" runat="server" BorderWidth="1px"
Style="z-index: 10; width: 100%; white-space: normal;" Skin="Silk"
Font-Names="Verdana" Font-Size="X-Small" EnableRoundedCorners="True"
EnableAriaSupport="True">
<Items>
<telerik:RadMenuItem runat="server" AccessKey="1" Text="Unit 1">
<Items>
<telerik:RadMenuItem runat="server" AccessKey="O" Text="open">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" AccessKey="C" Text="Close">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" AccessKey="2" Text="Unit 2">
<Items>
<telerik:RadMenuItem runat="server" AccessKey="A" Text="Lec A">
</telerik:RadMenuItem>
<telerik:RadMenuItem runat="server" AccessKey="B" Text="Lec B">
</telerik:RadMenuItem>
</Items>
</telerik:RadMenuItem>
</Items>
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
<KeyboardNavigationSettings CommandKey="Alt" FocusKey="M"></KeyboardNavigationSettings>
</telerik:RadMenu>
<telerik:RadMenu ID="RadMenu2" runat="server" Flow="Horizontal" BorderWidth="1px"
Style="z-index: 10; width: 100%; white-space: normal;" Skin="Silk"
Font-Names="Verdana" Font-Size="X-Small" EnableRoundedCorners="true" RenderMode="Lightweight"
EnableAriaSupport="true">
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>
<KeyboardNavigationSettings CommandKey="Alt" FocusKey="N"></KeyboardNavigationSettings>
</telerik:RadMenu>
protected void Page_Load(object sender, EventArgs e)
{
RadMenuItem m = new RadMenuItem();
m.Text = "Menu 1";
RadMenu2.Items.Add(m);
m.Text = "Menu 2";
RadMenu2.Items.Add(m);
//RadMenu2.KeyboardNavigationSettings.FocusKey = "";
//RadMenu2.KeyboardNavigationSettings.CommandKey = "Alt";
}
Hi
Is there a way of putting grouping together on one page instead spreading over multiple pages in a rad grid ?
Regards
Alex
I have a radmenu and one of the radmenuitems needs to be set to differernt pages depending on session variable. The other menuitems are static.
I have tried navigateurl='<%# session("pageid")%>
The first menuitem is the one I want to be dynamic
here is my radmenu code
<telerik:RadMenu runat="server" ID="radMenu2" Style="vertical-align:middle; width: 74%; margin: 0 auto;padding-right:5px; padding-bottom: 15px; padding-top: 10px;" RenderMode="Lightweight" >
<Items>
<telerik:RadMenuItem runat="server" Text="Letter of Intent/Proposal" Font-Names="Trebuchet MS" Font-Size="12pt" navigateurl='<%#Session("pageName") %>'></telerik:RadMenuItem>
<telerik:Radmenuitem text ="Letter of Intent/Proposal" font-size="12pt" Font-Names="Trebuchet MS" runat="server"
enabled="true" >
</telerik:Radmenuitem>
<telerik:Radmenuitem text ="Third Party Information" font-size="12pt" Font-Names="Trebuchet MS" runat="server"
>
</telerik:Radmenuitem>
<telerik:radmenuitem text="Essentials" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/essentialinfo.aspx"></telerik:radmenuitem>
<telerik:radmenuitem text="Focus" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/focus.aspx"></telerik:radmenuitem>
<telerik:radmenuitem text="Award Design" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/awardDesign.aspx"></telerik:radmenuitem>
<telerik:radmenuitem text="Student Support" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/studentsupport.aspx"></telerik:radmenuitem>
<telerik:radmenuitem text="Narrative" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/Narrative.aspx"></telerik:radmenuitem>
<telerik:radmenuitem text="Invoice Schedule" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/invoiceSchedule.aspx"></telerik:radmenuitem>
<telerik:radmenuitem text="Grant Documents" runat="server" font-size="12pt" Font-Names="Trebuchet MS" navigateurl="/mssApplications/grantdocuments.aspx"></telerik:radmenuitem>
</items>
</telerik:radmenu>
Thank you
I have put a RadAsynchUpload control in a table <TR><td> ...
When I scroll the web page with the table, the table and it's contents scroll, but the RadAsynchUpload does not. It's like it has an Absolute Position.
I have not set any CSS or other styling on that control. It is set up with it's default.
Any assistance would be appreciated.
Thanks,
Roger
Hi all,
I'm updating EndDate value when StartDate value changes. This seems to work fine, but when I try to save the appointment the old date value appears in the EndDatePicker and I cannot save the appointment.
Here is mycode
JavaScript
function
changeEndDate(sender, e) {
var
endDatePickerID = sender.get_id().replace(
"StartDate"
,
"EndDate"
);
var
endDatePicker = $find(endDatePickerID);
endDatePicker.set_selectedDate(sender.get_selectedDate());
}
c#
RadDatePicker startDate = (RadDatePicker)e.Container.FindControl(
"StartDate"
);
if
(startDate !=
null
){
startDate.ClientEvents.OnDateSelected =
"changeEndDate"
}
Can
The code is copied from this link https://docs.telerik.com/devtools/aspnet-ajax/controls/scheduler/how-to/change-the-end-date-when-the-start-date-changes
Any help on this?
Thanks a lot
Hello Folks,
I would like to get a css class for HeaderStyle-Width="200" and then call using mediaquery for mobile.
Unable to assign a css for this property unlike asp grid.Please help me
I am experiencing an issue when I converted a .NET radioButtonList to a Telerik.Web.UI.RadRadioButtonList.
We display Yes/No Radio Buttons, then depending on which was clicked we show a panel.
After the OnSelectedIndexChanged fires the RadRadioButtonList will disappear.
Additionally during the Event the SelectedValue is not set, and the SelectedIndex = -1. Niether of these issues happen with the ASP RadioButtonList object.
Any help would be greatly appreciated.
WG
Sample code to reproduce error:
<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="TelerikRadioButtonListError.aspx.vb" Inherits="TelerikQuickQuote.TelerikRadioButtonListError" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
<div>
<span>Are you Currently Insured:</span>
<telerik:RadRadioButtonList ID="RBL_CurrentlyInsured" runat="server" AutoPostBack="true" OnSelectedIndexChanged="RBL_CurrentlyInsured_SelectedIndexChanged">
<Items>
<telerik:ButtonListItem Text="Yes" Value="1" Selected="false"></telerik:ButtonListItem>
<telerik:ButtonListItem Text="No" Value="0" Selected="false"></telerik:ButtonListItem>
</Items>
</telerik:RadRadioButtonList>
<asp:Panel ID="PNL_PresentlyInsured" runat="server" Visible="false">
Presently Insured Controls
</asp:Panel>
<asp:Panel ID="PNL_NotPresentlyInsured" runat="server" Visible="false">
Not Presently Insured Controls
</asp:Panel>
</div>
</form>
</body>
</html>
Public Class TelerikRadioButtonListError
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
End Sub
Protected Sub RBL_CurrentlyInsured_SelectedIndexChanged(sender As Object, e As EventArgs)
Dim isPresentlyInsured As Boolean = (RBL_CurrentlyInsured.SelectedValue = "1")
If isPresentlyInsured Then
PNL_PresentlyInsured.Visible = True
PNL_NotPresentlyInsured.Visible = False
Else
PNL_PresentlyInsured.Visible = False
PNL_NotPresentlyInsured.Visible = True
End If
End Sub
End Class
Having a bit of trouble with the resize mode on the BinaryImage. I have specified the Width and Height in the aspx attributes and set the ResizeMode to fit, however it's just setting every image to the sizes that I specified rather than fitting them as it should be. This results in images being stretched rather than fit as if it's actually set to fill instead.
I'm using an httphandler to serve the image from a database and this is the relevant code:
Is there something that I'm missing here? Simply setting the ResizeMode to fit and setting a max height and width should be enough, right?
<
asp:Panel
runat
=
"server"
Style
=
"text-align:center;"
>
<
telerik:RadBinaryImage
runat
=
"server"
ID
=
"imgStu"
ResizeMode
=
"Fit"
Width
=
"1050"
Height
=
"700"
/>
</
asp:Panel
>
imgStu.ImageUrl =
"~/frm/ShowImage.ashx?id="
+ strImageID;