I am trying to get an action sheet to modify itself depending on which screen it is on. Basically in my scenario I have an button on my navbar that I wish to be a context sensitive menu. I have a jsbin to show an example of what I am trying here ... http://jsbin.com/ehicof/5/edit.
If you hit the 'logout' button on the top right initially the action sheet looks fine, when you go to the search tab and then to 'search 1' I change the action sheet contents to have a 'search 1' button, however the action sheet doesn't grow (and thus the 'cancel' button is not visible). I have tried re-initializing the action sheet to no avail (using kendo.mobile.init), perhaps I am using it wrong. Am I taking the wrong approach here? Would I be better off making multiple action sheets and then changing the link on the navbar to the appropriate one?
If you hit the 'logout' button on the top right initially the action sheet looks fine, when you go to the search tab and then to 'search 1' I change the action sheet contents to have a 'search 1' button, however the action sheet doesn't grow (and thus the 'cancel' button is not visible). I have tried re-initializing the action sheet to no avail (using kendo.mobile.init), perhaps I am using it wrong. Am I taking the wrong approach here? Would I be better off making multiple action sheets and then changing the link on the navbar to the appropriate one?