Panel always on top

Answered
0
0

Hi!

How can I frooze a panel on top, turning it always visible, even using auto scroll on page?

Thanks,
Ulisses.

  • You must to post comments
Best Answer
0
0

Two ways:

  1. Add a StyleSheet component with a css class like this “.fixed {position:fixed !important;}”. Set the CssClassName of the panel to “fixed”. You can also do this programmatically like this:
        var css = new StyleSheet();
        css.Styles = ".fixed {position:fixed !important;}";
        css.SetCssClass(panel, "fixed");

Or you can simply add a <style> section in Default.html selecting the panel by name [name=mypanel]. Or you can add a css file with the same selector.

2. Use a UserPopup with AutoHide set to false and show it using ShowPopup(0, 0) or any other coordinate – it will stay there forever. If you need to resize it attach to the Application.BrowserSizeChanged event or the page’s SizeChanged or Resize events.

 

HTH

 

  • Ulisses
    Perfect! Thank you very much!
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.