This is a migrated thread and some comments may be shown as answers.

Checked Items dont display in input on load

3 Answers 50 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Jitin
Top achievements
Rank 1
Jitin asked on 25 Feb 2015, 12:30 AM
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.

3 Answers, 1 is accepted

Sort by
0
Aneliya Petkova
Telerik team
answered on 25 Feb 2015, 02:01 PM
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.

 
0
Jitin
Top achievements
Rank 1
answered on 26 Feb 2015, 12:32 AM
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.
0
Aneliya Petkova
Telerik team
answered on 26 Feb 2015, 08:28 AM
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.

 
Tags
ComboBox
Asked by
Jitin
Top achievements
Rank 1
Answers by
Aneliya Petkova
Telerik team
Jitin
Top achievements
Rank 1
Share this question
or