Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
519
SelectedCssClass - After PostBack
posted

Hi,

After a PostBack in MasterPage the item in WebDataMenu don't show as Selected item (CSS Class).

How do I config this?

 

Tks.

Parents
  • 3726
    Verified Answer
    posted

    Hi,

    currently the menu does not remember properly the selected item on postback. The problem is that on postback the server side renderer does not render the selected style if the item is selected. The item selected state is preserved though. But the client side method get_selectedItem() will return null after the postback. This is fixed in 10.3. We will merge this fix to older versions too.

    In the mean time you could manually add the selected css class to the item element, in the Initialize client side event.

    Thanks,

    Lubomir

Reply Children