Title: MVC3 + Json + uasyui combobox Post by: hahadelphi on July 15, 2014, 01:38:24 AM I am using MVC3 and combobox
my cshtml is Code: <script type="text/javascript"> Code: public JsonResult GetFatherMenu() Now i know that the combo box only accept [{ "MENU_ID":1, "MENU_NAME":"text1" },{ "MENU_ID":2, "MENU_NAME":"text2" }] not {"rows": [{ "MENU_ID":1, "MENU_NAME":"text1" },{ "MENU_ID":2, "MENU_NAME":"text2" }] } what can i do in the action to return the correct json? Thanks Title: Re: MVC3 + Json + uasyui combobox Post by: stworthy on July 15, 2014, 01:43:05 AM Please use the 'loadFilter' function to convert your original data to the standard data format.
Code: $('#c_MENU_ID').combobox({ Title: Re: MVC3 + Json + uasyui combobox Post by: hahadelphi on July 15, 2014, 02:02:13 AM thank you!
i also use this action, it works Code: public JsonResult GetFatherMenu() |