Checked Items dont display in input on load

4 posts, 0 answers
  1. Jitin
    Jitin avatar
    4 posts
    Member since:
    Feb 2015

    Posted 24 Feb 2015 Link to this post

    Hi,

    I having trouble getting a Combobox to display its checked items when the page first loads.

    There is enough space to fit all the items but it still reverts to the "# items checked". If I were to uncheck and then recheck one of the items, the items are displayed correctly. It is only when the page initially loads that the combobox only shows how many are checked, even when there is ample room.

    Is there any way to force display of items when the page loads, but still reverts back to the number of items checked with the space is filled?

    Any help is greatly appreciated,
    Thanks.

  2. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 25 Feb 2015 Link to this post

    Hi Jitin,

    I tested the RadComboBox control with check-boxes on a simple page, but I was not able to reproduce the issue you are facing. Please find attached the sample page I used for testing and let me know what I am missing in order to reproduce this issue. I also recorded a video showing the result of my test(all checked items are visible in the input on page load).

    Regards,
    Aneliya Petkova
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Jitin
    Jitin avatar
    4 posts
    Member since:
    Feb 2015

    Posted 25 Feb 2015 in reply to Aneliya Petkova Link to this post

    Hi Aneliya,

    I managed to figure out what the problem was. Basically the data for the combo is loaded in the back end and then the items are also selected in the back end. If the width for the combo box is specified as a percent, you will get the "# of items checked" when the page loads. If you specify the width in pixels, you will get the comma list of items selected, which is really odd.

    So the solution was to change the width from being percentage calculated to a hard coded pixel count, which in our case is OK for now.
  5. Aneliya Petkova
    Admin
    Aneliya Petkova avatar
    207 posts

    Posted 26 Feb 2015 Link to this post

    Hi Jitin,

    Could you please isolate this issue in a sample runnable project in order to inspect it and see your exact implementation(or you can modify the project I send in my previous post)? Thus I will be able to see what exactly could be causing the issue and log it for fixing.

    Regards,
    Aneliya Petkova
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top