Hi Grant,Greetings from Syncfusion support.We have analyzed your query about sidebar over mode. In sidebar component, during initial rendering we have checked whether the component is initialized in mobile or desktop device. If it is the mobile device, we operated the sidebar in over mode else the sidebar will open in auto mode (like push). In your case, you have dynamically changed the desktop to handheld resolution. But during initial rendering, captured device detection is same as desktop, this is the reason for your concerns. In that case, you have to manually refresh the sample to recognize the device mode and the sidebar will act as an over mode.Regards,Keerthana.
window.addEventListener("resize", function() {
var instance = document.getElementById('default-sidebar').ej2_instances[0];
instance.type = (window.matchMedia('(max-width: 600px)').matches) ? "Over" : "Auto"
});
|