I have implemented an OnClientSplitButtonClicking event handler on the client side, usign this i can call set_cancel(true) which prevents the button click event being fired.
However, it is still selecting the button as the selected button in the ribbonbar - i.e. it still updates the selected index of the split button itself.
Any ideas on how can i prevent this ?
I have tried adding client side handlers for OnClientButtonClicking, OnClientButtonToggling and OnClientSplitButtonClicking - but nothing else seems to allow me to cancel this.
Currently, i am having to reset the selection manually:
However, it is still selecting the button as the selected button in the ribbonbar - i.e. it still updates the selected index of the split button itself.
Any ideas on how can i prevent this ?
I have tried adding client side handlers for OnClientButtonClicking, OnClientButtonToggling and OnClientSplitButtonClicking - but nothing else seems to allow me to cancel this.
Currently, i am having to reset the selection manually:
function OnSplitButtonClicking(sender, args) { args.set_cancel(true); var splitButton = findSplitButton("spbActions"); if (splitButton != null) setTimeout(function () { splitButton.set_selectedButtonIndex(0); }, 0);}