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
990
How to populate datasource of igCombo separate from the Model
posted

I have a parital view that populates several igCombo controls, but i have a custom model that i'm passing in to use to render the controls in the view using "@Html.LabelFor..." and "@(Html.Infragistics().ComboFor...", among other things.  The model type that i define is custom, but when i set the Datasource of my igCombo to something like "Url.Action("GetCountryCodes", "Reports")", i get an exception saying that the model item passed into the dictionary is of type 'System.Linq.EnumerableQuery`1[System.Data.DataRow]', but this dictionary requires a model item of type 'CustomReportModel'.

How do i populate my igCombo if i'm already using a model in the view to render the controls?  Furthermore, i have several igCombos in the partial view, so how do i populate all of them in this way?

thanks,

wvusaf