Hi
I have implemented the new Drawer component:
$("#drawer").kendoDrawer({
template: tooltemplate,
mode: "push",
mini: true,
itemClick: function (e) {
e.sender.drawerContainer.find("#drawer-content > div").addClass("hidden");
e.sender.drawerContainer.find("#drawer-content").find("#" + e.item.find(".k-drawer-id").text()).removeClass("hidden");
var spanItemText = e.item.find(".k-item-text").html();
$('#titleSpan').html(spanItemText);
},
position: 'left',
minHeight: 800,
swipeToOpen: false
});
All is great. The Drawer component functions perfectly. Whenever it is used it always defaults to the top (first) drawer. My users now want the ability to specify which drawer is selected by default. I've implemented a my settings page where the user can specify which drawer they prefer as their default. This value (which is the spanItemText value in my code above) is stored in a cookie. How do I select this drawer each time the component is used. Or is there a better way of doing this? I'm trying to programmatically click the drawer icon but I'm not having much luck at the moment.
Thanks.