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

telerik:RadComboBox preserve white space

2 Answers 160 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
nickJr
Top achievements
Rank 1
nickJr asked on 20 Aug 2008, 06:34 PM
I am using a RadComboBox to populate some values and its loosing the extra white space from the items.
eg: I have an item called "my[space][space][space]home"
(note 3 spaces between my & home)
But when it binds i loose spaces & it becomes "my[space]home"
How can i stop this from happening? I want to preserve the white spaces.
I use this to select a product from the auto suggestion drop down to do a search.. but cos im loosing spaces it wont return the correct search results.

Help!

2 Answers, 1 is accepted

Sort by
0
Rosi
Telerik team
answered on 21 Aug 2008, 02:11 PM
Hi ,

I understand what the problem is. You can workaround it by using templates. Please find the attached project which works as expected.

All the best,
Rosi
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
nickJr
Top achievements
Rank 1
answered on 21 Aug 2008, 02:46 PM
Hi Rosi,
Thanks for the reply!
I was trying the ItemTemplate before too, but I didnt use
HighlightTemplatedItems=true, so I wasnt getting the exact effect. But after reading your post, I added that tag and everything worked.
thanks
Tags
ComboBox
Asked by
nickJr
Top achievements
Rank 1
Answers by
Rosi
Telerik team
nickJr
Top achievements
Rank 1
Share this question
or