<
telerik:RadMenu
ID
=
"RadMenu1"
RenderMode
=
"Mobile"
runat
=
"server"
></
telerik:RadMenu
>
protected
void
Page_Load(
object
sender, EventArgs e)
{
RadMenu1.RenderMode = RenderMode.Mobile;
RadMenu1.Width = 300;
for
(
int
i = 0; i < 10; i++)
{
var radmenuItem =
new
RadMenuItem();
radmenuItem.Text =
"demo radmenu item "
+ i.ToString();
for
(
int
j = 0; j < 10; j++)
{
var radmenuItemChild =
new
RadMenuItem();
radmenuItemChild.Text =
"demo radmenu item child "
+ j.ToString();
radmenuItem.Items.Add(radmenuItemChild);
}
RadMenu1.Items.Add(radmenuItem);
}
}
var
old_transition = $telerik.transition;
$telerik.transition =
function
(element, properties, duration, easing, complete) {
if
(!complete) {
complete =
function
() {
$telerik.$(
".RadMenuPopup .rmToggle"
).hide().show();
}
}
old_transition.call(
this
, element, properties, duration, easing, complete);
}