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
195
igCombo Not Found Error
posted

When I use the combo MVC helper in my page then I get a javascript error that igcombo is not found on the same page if I put the igCombo javascript tag then it works fine. I am not sure why combo MVC helper does not work. Here is it how I am using it:

  @(Html.Infragistics().Combo()

                    .ID("FileId")

                    .Width("200 px")

                    .MultiSelectionSettings(ms =>

                    {

                        ms.Enabled(true);

                        ms.ShowCheckBoxes(true);

                    })

                    .ValueKey("FileId")

                    .TextKey("Name")

                    .DataSourceUrl(Url.Action("scripts-combo-data"))

                    .DataBind()

                    .Render()

                )

Now the code that works is the following:

   $("#checkboxSelectCombo").igCombo({

            width: "270px",

            dataSource: colors,

            textKey: "Name",

            valueKey: "Name",

            multiSelection: {

                enabled: true,

                showCheckboxes: true

            }

        });

 

Parents
  • 16310
    Offline posted

    Hi,

    Could you please share the jQuery code rendered by the MVC helper and copy/paste the error that is displayed in the browser console. Also, please share what version of IgniteUI you are using. Meanwhile I hope you can benefit from the online sample at http://www.igniteui.com/combo/aspnet-mvc-helper demonstrating how to benefit from igCombo MVC helpers in 15.1

Reply Children
No Data