The approach that you have used is OK and actually, it will handle cases where the right click occurs on an empty grid row or header row, and I will recommend using it.
Another possible approach is to examine the explorer's selected item, e.g.:
selectedItem = explorer.get_grid().get_selectedItems();
(selectedItem && selectedItem.isDirectory())
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items