I want to pass a tip on that hopefully will save someone else some time. I have an MVC5 project that has the default Index view and the four CRUD (create, read, update, delete) views. I ran into an issue with using the dataAdapter that uses JSON to get data from the controller and place it in a jqxDropDownList. In my CRUD View I would get a blank drop down list with no data while all worked in the Index View. Further, the breakpoint in the controller method was not hit. I finally found that you could set a call back function for “loadError(jqXHR, status, error):”. Placing a debugger statement inside this function allowed me to finally see the error which was a malformed URL value. It turns out that in CRUD View the URL value is “prepended” with the name of the controller. In the Index view (or default View) it is not.
Example:
Controller Name: User
Controller Method: public JsonResult GetUser(){…..}
Correct Source object URL parameters
– in Index View: URL: User/GetUser
– in CRUD View: URL: GetUser
Also here is how I instantiated the dataAdapter with the load error:
new $.jqx.dataAdapter(UserSource, { loadError: function (jqXHR, status, error) { debugger; var i = 1; } });
To recap, if you define the Source Objects URL parameter in a CRUD View(or any non default view) as “URL: User/GetUser” the value passed to the server will be “User/User/GetUser”