Declined
Last Updated: 20 Nov 2014 18:59 by ADMIN
Imported User
Created on: 20 Feb 2013 23:20
Category: Kendo UI for jQuery
Type: Feature Request
4
Allow parameters to be passed to Actionsheet callback functions
Allow parameters to be passed to Actionsheet callback functions.  I have a need for a varying number of Actionsheet actions based on data-driven settings.  I can dynamically populate the Actionsheet with jscript, but each action has to call a different callback function.  What I'd rather do is have each action call the same callback function and just pass an ID of the selected option to that function.  For example, I am using the ActionSheet to present the user with a list of places they can route the current record.  I don't need a different function for each place they can route it - just the ID of their selection.
3 comments
ADMIN
Telerik Admin
Posted on: 07 Mar 2014 15:08
If you need additional assistance after following these instructions, please post a support request on telerik.com, using our forums or support system for this goal.
Don
Posted on: 05 Mar 2014 14:35
Brandon, I tried what you suggested but was unable to retrieve any information about which button was pressed via e.target.  Can you give an example of how to do what you described?
ADMIN
Brandon
Posted on: 05 Jun 2013 22:27
you should be able to do this by setting all of the actions to the same function, getting the target element from the event object passed into the callback and then determining the proper function to call next based on the element clicked.