I used the custom button to change the orientation property of splitter, but the modified page did not change. Is there any way to achieve it?
1 Answer, 1 is accepted
1
Petar
Telerik team
answered on 25 May 2022, 09:01 AM
Hi Jingjun,
I can see that you are using the Splitter Wrapper component. If you are now starting your project, we would recommend using the Native Splitter instead of the Wrapper.
Here are two examples demonstrating how the targeted functionality can be implemented in the context of both the Native and Wrapper components:
Wrapper Splitter - https://stackblitz.com/edit/cu8mkb?file=src%2Fmain.vue The main thing here is to force the Splitter to re-render by adding to it a "key" attribute and updating the value of the rerender data property every time we switch the orientation of the component.
I hope the above examples will help you achieve what you need in your application.