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

Check all items on pageload

2 Answers 43 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ei Wai
Top achievements
Rank 1
Ei Wai asked on 12 May 2015, 09:55 AM

Hi

 I tried to check all items on pageload. I used below source code.

 

for (int i = 0; i < objList.Count; i++)
   {
       cboLocation.Items.Add(new RadComboBoxItem(objList[i].Name, objList[i].ID));
       cboLocation.Items[i].Checked = true;
 
   }

It worked and show "All Items Checked" text on local. But when I publish to server, it did not show "All Items Checked" text and display items with "," delimiter. Can anyone advice me on this?

 

Thank you.

Best regards,

Ei Wai

2 Answers, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 14 May 2015, 02:37 PM
Hello Ei,

The behavior that you've described is managed by the CheckedItemsTexts property of the RadComboBox. If it is set to DisplayAllInInput, the checked items will be listed in the input, but if it is set to FitInInput, the All Items Checked text will be placed in the input.

Please make sure that you have set the FitInInput value of the CheckedItemsTexts property in production version.

Regards,
Nencho
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Ei Wai
Top achievements
Rank 1
answered on 15 May 2015, 03:48 AM

Hello Nencho,

 I tried to put FitInInput value in checkedItemsTexts on production version. But it is still showing values with delimiter.

 

Thank you.

Best regards,

Ei Wai

Tags
ComboBox
Asked by
Ei Wai
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Ei Wai
Top achievements
Rank 1
Share this question
or