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

Change header text of combobox

6 Answers 157 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Ralph
Top achievements
Rank 1
Ralph asked on 18 Jan 2012, 11:03 AM
Hallo,

I have a RadComboBox with set "CheckBoxes = true". The header displayes always "X items checked". I want to display an other text. How can I affect the header text?

Thanks

6 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 18 Jan 2012, 11:56 AM
Hello,

Try setting ItemsCheckedString property in Localization as shown.
ASPX:
<telerik:RadComboBox ID="RadComboBox1" runat="server" AllowCustomText="true" CheckBoxes="true" EnableCheckAllItemsCheckBox="true">
  <Localization ItemsCheckedString="Your Text" />
   <Items>
            ... ... ...
   </Items>
</telerik:RadComboBox>

Thanks,
Princy.
0
Ralph
Top achievements
Rank 1
answered on 18 Jan 2012, 12:03 PM
Hi Princy,

thank you for your quick response. Unfortunately this is not the solution to my problem.
I want to display the Text "Choose columns".
If I change the Property the following is displayed: "8 Choose Columns".
I don't want to display the number of items checked.
Is there an other solution?
Thank you
0
JP
Top achievements
Rank 1
answered on 28 Mar 2012, 09:56 AM
I also would like to change this text without having the selected checkboxes count as prefix. How can we achieve this?
0
Kalina
Telerik team
answered on 28 Mar 2012, 11:32 AM
Hi,

Please set the RadComboBox CheckedItemsTexts property to "DisplayAllInInput".
You can test the control behaviour upon different property configurations here.

Regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
JP
Top achievements
Rank 1
answered on 28 Mar 2012, 12:21 PM
That makes it a bit better, but the best solution would be if I could display a custom text. Is this possible?
0
Kalina
Telerik team
answered on 02 Apr 2012, 02:27 PM
Hello,

I am afraid that displaying custom text in RadComboBox input when the CheckBoxes feature is enabled is not supported.

Regards,
Kalina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
ComboBox
Asked by
Ralph
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Ralph
Top achievements
Rank 1
JP
Top achievements
Rank 1
Kalina
Telerik team
Share this question
or