hi,
i need enable and disable the item child of the radmenu depending on the data taken from a database.
For example...
into page aspx into page_load event or page_init, if there're not the record into database the item child witn value 2 must be disable.
this code radmanu is:
how can i do it? with client side and use javascript or server side and use codce behind?
i use this code:
i need enable and disable the item child of the radmenu depending on the data taken from a database.
For example...
into page aspx into page_load event or page_init, if there're not the record into database the item child witn value 2 must be disable.
this code radmanu is:
<telerik:RadMenu ID="RadMenu1" Runat="server"EnableRoundedCorners="True" EnableShadows="True" Skin="Sunset"><Items><telerik:RadMenuItem runat="server" Owner="RadMenu1" Text="Immagine profilo"><Items><telerik:RadMenuItem runat="server" ImageUrl="~/Image/Icone/new.png" Owner=""Text="Nuova" Width="110px" Value="1"></telerik:RadMenuItem><telerik:RadMenuItem runat="server" ImageUrl="~/Image/Icone/view.png" Owner=""Text="Visualizza" Width="110px" Value="2"></telerik:RadMenuItem><telerik:RadMenuItem runat="server" ImageUrl="~/Image/Icone/delete.png"Owner="" Text="Elimina" Width="110px" Value="3"></telerik:RadMenuItem></Items></telerik:RadMenuItem></telerik:RadMenu>how can i do it? with client side and use javascript or server side and use codce behind?
i use this code:
RadMenu1.Items(0).Items(1).Enabled = false
but into load event dont fuction. this code function only radmenu1_init event. But i must need that function in page_load event because there i load the record from database
Second problem i use the radwindows for load a new page and into this i save the record. When i close the radwindows, the item child with value 2 must be enable. So must tu use the javascript code?
Please help me
thanks you