I'm trying to put checkbox in menu item and I started from this tutorial :
http://www.telerik.com/help/aspnet-ajax/tool_templatesoverview.html
I'm able to put checkbox whithout problem, but I found that the behavior of the CSS is strange when I mouse over. The background image is cut instead of occupying all the menu item(see attached images for comparaison of the menu item with and without item template set). I want to know if I can have the original behavior or at least remove the background image beacause I can't seem to be able to replace it. In fact, I'm not very experienced in css, I tried both those Css in setting the hoveredCssClass :
Still the same result. Here is the code, mostly from the tutorial, just replace a textbox with a checkbox.
Hope you find my solution.
Sébastien
http://www.telerik.com/help/aspnet-ajax/tool_templatesoverview.html
I'm able to put checkbox whithout problem, but I found that the behavior of the CSS is strange when I mouse over. The background image is cut instead of occupying all the menu item(see attached images for comparaison of the menu item with and without item template set). I want to know if I can have the original behavior or at least remove the background image beacause I can't seem to be able to replace it. In fact, I'm not very experienced in css, I tried both those Css in setting the hoveredCssClass :
Remove the image
background-image
:
none
!important
;
Replace the image
background-image
:
"~\Image\img.png"
!important
;
Still the same result. Here is the code, mostly from the tutorial, just replace a textbox with a checkbox.
<
telerik:RadToolBar
ID
=
"RadToolBar1"
runat
=
"server"
>
<
Items
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Button 1"
DisplayName
=
"TextBox1"
>
<
ItemTemplate
>
<
input
type
=
"text"
value
=
'<%# DataBinder.Eval(Container, "Attributes['
DisplayName']") %>' />
</
ItemTemplate
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarDropDown
runat
=
"server"
Text
=
"DropDown 1"
DisplayName
=
"DropDown"
>
<
Buttons
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Child Button 1"
DisplayName
=
"TextBox11"
>
<
ItemTemplate
>
<
input
type
=
"checkbox"
value
=
'<%# DataBinder.Eval(Container, "Attributes['
DisplayName']") %>' />
</
ItemTemplate
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Child Button 2"
DisplayName
=
"TextBox21"
>
<
ItemTemplate
>
<
input
type
=
"text"
value
=
'<%# DataBinder.Eval(Container, "Attributes['
DisplayName']") %>' />
</
ItemTemplate
>
</
telerik:RadToolBarButton
>
</
Buttons
>
</
telerik:RadToolBarDropDown
>
<
telerik:RadToolBarSplitButton
runat
=
"server"
Text
=
"SplitButton 1"
DisplayName
=
"SplitButton"
>
<
Buttons
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Child Button 1"
>
</
telerik:RadToolBarButton
>
<
telerik:RadToolBarButton
runat
=
"server"
Text
=
"Child Button 2"
>
</
telerik:RadToolBarButton
>
</
Buttons
>
</
telerik:RadToolBarSplitButton
>
</
Items
>
</
telerik:RadToolBar
>
Hope you find my solution.
Sébastien