Hi, I'm trying to have a menu option be an Inputbox, but it automatically closes when the user clicks on it to start typing.
The code I'm using is:
$("#menulogin").kendoMenu({
dataSource: [
{
text: "Login", imageUrl: "",
items: [
{ text: "1", imageUrl: "images/icons/house.png" },
{ text: "2", imageUrl: "" },
{ text: "3", imageUrl: "" },
{ text: "<div style='width:200px;position:relative;'><input id='subsearch' type='text' name='textfield' id='textfield' style='width:100%;' /><img src='images/icons/search_icons/normal/search_icon.png' width='26' height='20' style='position:absolute; right:0px;top:1px' /></div>", encoded: false, closeOnClick: false, imageUrl: "" },
{ text: "<i>option 1</i>", encoded: false,imageUrl: "" },
{ text: "<i>option 2</i>", encoded: false,imageUrl: "" }
] } ] });
What I want is to have the menu act normally when clicked at any option except the one with the DIV and INPUT tags.
Not sure if it's with the closeOnClick option, but haven't been able to make it work.
Please help.
The code I'm using is:
$("#menulogin").kendoMenu({
dataSource: [
{
text: "Login", imageUrl: "",
items: [
{ text: "1", imageUrl: "images/icons/house.png" },
{ text: "2", imageUrl: "" },
{ text: "3", imageUrl: "" },
{ text: "<div style='width:200px;position:relative;'><input id='subsearch' type='text' name='textfield' id='textfield' style='width:100%;' /><img src='images/icons/search_icons/normal/search_icon.png' width='26' height='20' style='position:absolute; right:0px;top:1px' /></div>", encoded: false, closeOnClick: false, imageUrl: "" },
{ text: "<i>option 1</i>", encoded: false,imageUrl: "" },
{ text: "<i>option 2</i>", encoded: false,imageUrl: "" }
] } ] });
What I want is to have the menu act normally when clicked at any option except the one with the DIV and INPUT tags.
Not sure if it's with the closeOnClick option, but haven't been able to make it work.
Please help.