Check all items on pageload

3 posts, 0 answers
  1. Ei Wai
    Ei Wai avatar
    56 posts
    Member since:
    Jul 2014

    Posted 12 May 2015 Link to this post

    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. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 14 May 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Ei Wai
    Ei Wai avatar
    56 posts
    Member since:
    Jul 2014

    Posted 14 May 2015 in reply to Nencho Link to this post

    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

Back to Top