Hi Manfred,

AjaxDropDownList belongs to the kendoDropDownList widget, which can be
triggered this way:

var dropdownlist = $("#myDDL").data("kendoDropDownList"); // eq. to
KendoUIBehavior.widget(myDDL, DropDownListBehavior.METHOD) in wicket
dropdownlist.trigger("change"); // this will trigger change event

I'm not sure it can be triggered like the regular (on)change event...

Another option, maybe you can execute the OnChangeAjaxBehavior trough
BaseWicketTester#executeBehavior(AbstractAjaxBehavior).

Never tested, so hope this helps :)
Sebastien.


On Fri, Feb 17, 2017 at 6:44 PM, Manfred Bergmann <m...@software-by-mabe.com>
wrote:

> Hi.
>
> I've tried to get the AjaxDropDownList under test.
> In a test I'm doing:
>     val formTester = tester.newFormTester("form")
>     formTester.select("cut:container:data.serviceType", <someservicetype>)
>     tester.executeAjaxEvent(basePath+":data.serviceType", "change")
>
> but the onSelectionChanged is never triggered in a test.
> It works when starting the app in a browser.
>
> How can I make this testable?
>
>
> Manfred
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Kendo-UI-AjaxDropDownList-onChange-tp4677142.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to