Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
120
igCombo
posted

Hi,

I am working ASP.NET MVC . I have a method like 

public JsonResult Test(int i)

{

......

return Json(new
{
value= '100',

text='abc'

},JsonRequestBehavior.AllowGet);

}

I want to call above method and load that json result into igcombo controls

I tweaked sample from this page "http://igniteui.com/combo/aspnet-mvc-helper"

and tried below code but throwing error like "ReferenceError: Url is not defined"

$("#combo").igCombo({
dataSourceUrl: Url.Action('Test', new { i: 4 }),
valueKey: "Value",
dropDownAsChild: true,
textKey: "Text"
});

This page "http://igniteui.com/combo/aspnet-mvc-helper" example requires infragistics mvc dll 

How to do this in jquery instead of using dll.

Regards,

Ashok