This is a migrated thread and some comments may be shown as answers.

Templates via Javascript

2 Answers 40 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Baatezu
Top achievements
Rank 2
Baatezu asked on 23 Sep 2009, 06:20 AM
Is it possible to add templates to the radmenu via javascript.

A little more exact question could be : How do I add a RadTextBox (I want to possibly use other controls as well) to a radmenuitem via javascript?

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 23 Sep 2009, 06:40 AM
Hello Baatezu,

As far as I know, it is not possible to create the whole control on the client. But perhaps, you can add the RadTextBox to the RadMenuItem template and hide/ show the textbox on client side.

Thanks
Shinu.
0
Baatezu
Top achievements
Rank 2
answered on 23 Sep 2009, 06:52 AM
I've thought about setting it at design time, then just flipping it on and off; I was hoping to prevent the 'option' from being visible at all if I wasn't going to give access to it. I'm a curious guy and often investigate the source of sites I'm on, and I like to prevent people from seeing options I'm not giving them. hehe
So, preferably, I'd like to not even include that menu option.

It's probably going to boil down between a design time template or an implementation of RadWindow and aspx pages  to do what I want.
I like the RadWindow option - The menu option just flowed better with the rest of what I'm doing.

Many thanks.
Tags
Menu
Asked by
Baatezu
Top achievements
Rank 2
Answers by
Shinu
Top achievements
Rank 2
Baatezu
Top achievements
Rank 2
Share this question
or