I have a page with a simple splitter using buttons to open/collapse the splitter. I would like to disable the user ability to resize the splitter - instead relying only on user actions (in this case, button press) to split / unsplit the window.
Thank you. I've tried setting resizable with unsatisfactory results
If I set Resizable=false on the first / left pane, I get an unhandled excaption. The first splitterpane must be true, it seems.
If I set resizable=false on the second / right pane, the panels are not split - they are either one or the other. The splitter handle is removed, the collapse icons are visible and work, but eventually throws an unhandled exception.
Please take a closer look at the code, perhaps run it and observe the behavior, and tell me what settings to use?
Downloaded and installed 5.09 today and can confirm that the exception is no longer thrown.
However, I'm still unsure of how to achieve my objective:
Start the page with the right panel collapsed.
On an action in the left panel (in this case a button) display the right panel in a 30/70% split.
I'm able to get this to work correctly using the collapsed attribute.
I would like to remove the splitter handles, preventing the user from resizing the splitter using anything but the supplied actions (buttons, in this case.)
Setting resizable on either pane prevents the 70/30 split.
This may not be possible in the current version - in which case I would like to request a feature to enable/disable the display of the handles on the splitter.
The splitter pane in your video and in my testing remains at 30%; It should move all the way to the right, making the left hand pane fill the browser window.
I was finally able to understand what you are trying to achieve. You can leave Resizeble=true for both panes and use the following CSS to disable resize by the user:
Neglected to send my thanks for this response.
Very helpful (as usual.)
I've evaluated all the Blazor UI frameworks and keep coming back to this one as the most reliable, accessible and easiest to implement. I'm using Oqtane framework for the inrastructure and it integrates nicely thanks to @leigh-pointer