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
845
igCombo Load On Demand - selected item not always showing
posted

Hi there,

I have igCombo on an MVC vew defined as follows:

@Html.Infragistics().ComboFor(m => m.PrdColourID).ID("cboItem").DataSource(Model.Items).DataSourceUrl(Url.Action("GetItemsLOD", new { intCtBrID = Model.CtBrID, strBarCodeFilter = Model.BarCodeFilter })).ValueKey("prd_colour_id").TextKey("prd_colour_code").Width("310px").LoadOnDemandSettings(load => load.Enabled(true).PageSize(25)).ShowDropDownButton(false).Virtualization(true).FilteringType(ComboFilteringType.Remote).AutoComplete(false).AllowCustomValue(false).DataBind().Render()

If the selected item is one of the first items in the list (e.g. the first page), the combo displays the selected item code. If its not on the first page, and has been found by the filter type-ahead, it is not shown after selectsion


How can this be resolved?

Parents
No Data
Reply
  • 605
    Suggested Answer
    Offline posted

    Deon,

    I had a similar problem, I managed to solve it by adding the item to be selected to the top of the list returned by the remote datasource, so it would always be on the first page, so it will be shown. I know this is a dirty hack, but it works, apparently. More on this: http://es.infragistics.com/community/forums/t/105234.aspx

    If any of the Infragistics guys could come up with a better solution, I'm interested ;)

    regards,

    Peter

Children