Hello Deniz,
You could use a combination of the iitemClick and hide events of the Drawer to achieve the desired. In the itemClick event, you are setting a flag that an item has been clicked:
var shouldPrevent = false;
...
itemClick: function(e) {
shouldPrevent = true;
},
While in the hide event, if that flag is true, you are preventing the default execution of the logic:
hide: function(e) {
if(shouldPrevent) {
shouldPrevent = false;
e.preventDefault();
}
},
Here is a small Dojo sample implementing the above:
https://dojo.telerik.com/eXUnaveT/3
Regards,
Veselin Tsvetanov
Progress Telerik