Jun 23, 2009, 5:25 AM
Can I change MenuItem's Icon dynamic .
Hi all,
I want to use Menu to manage themes, and only selected theme has Icon, I tried use AjaxMethod to update like
but it doesn't change Icon. i also tried to change in client side.
Thanks
I want to use Menu to manage themes, and only selected theme has Icon, I tried use AjaxMethod to update like
[AjaxMethod]
public string GetThemeUrl(string theme)
{
this.menuItemThemesDefalut.Icon = Icon.Accept;
this.menuItemThemesGray.Icon = Icon.Cross;
this.menuItemThemesSlate.Icon = Icon.Cross;
}
but it doesn't change Icon. i also tried to change in client side.
<Click Handler="menuItemThemesDefalut.iconCls = 'icon-cross';"
Thanks