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
1730
adding Htmlattributes to igCombo
posted

Hi,

I am trying to add a style to igCombo using htmlattributes property as shown below:

@(Html
                            .Infragistics()
                            .Combo().ID("CategoryList")
                            .MultiSelection(ComboMultiSelection.OnWithCheckboxes)
                            .Width("200px")
                            .HtmlAttributes(new System.Collections.Generic.Dictionary<string,object>().Add("class" , (object)"span-text"))

                            .Height("20px")
                            .ValueKey("TagKey")
                            .TextKey("AttributeName")
                            .Mode(ComboMode.DropDown)
                            .SelectedValues(ViewBag.CategoryListSelected)
                            .DataSource(ViewBag.CategoryList)
                            .DataBind()
                            .Render()
                        )

The code is throwing error of invalid arguments. Whats wrong here ??