jQuery UI Widgets › Forums › Lists › DropDownList › Event is not fired if initiated from the Select tag using angular
Tagged: angular dropdownlist, angularjs, bootstrap dropdownlist, javascript dropdownlist, jQuery DropDownList, jqwidgets dropdownlist, jqxDropDownList, selectevent, typescript dropdownlist
This topic contains 1 reply, has 2 voices, and was last updated by Hristo 7 years, 11 months ago.
Hi,
I am using jqx in MVC project. I am using angularjs to create jqx controls as below:
@Html.DropDownListFor(m => m.PlantId, new SelectList(Model.PlantList, "Id", "Name"), new { id = "ddlPlant", jqx_drop_down_list = "ddlPlant", jqx_width = 300, jqx_height = 33, jqx_theme = "theme", jqx_on_select = "onSelect(event)" })
I have create below function in angular controller.
$scope.onSelect = function (event) { alert('hi'); }
but select event never fire. Can you help me in this?
Regards, Vatsal
Hello Vatsal,
You could try to correct your code and set this jqx-on-select="onSelect(event)" instead of ‘jqx_on_select = “onSelect(event)”‘. Hope this helps.
jqx-on-select="onSelect(event)"
Best Regards, Hristo Hristov
jQWidgets team http://www.jqwidgets.com
You must be logged in to reply to this topic.