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

multi Combo problem

1 Answer 78 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Mathews
Top achievements
Rank 1
Mathews asked on 05 Aug 2008, 12:09 PM
Hi all 
I have a problem in multi combo box
my selection is not reflecting some times . same thing is happening in help(telerik site) also.
1) also i want to format the string in combo.
2) i have a field which was not binding(id field).but i need that field for rurther manipulations
how to resolve these problems.
waiting for the reply

regards
Mathews Baby

1 Answer, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 07 Aug 2008, 02:59 PM
Hello Mathews,

It's very strange that selection of RadComboBox item is not reflecting sometimes, our examples are tested and work as expected at our side.

You can format a string when it is databinding to the item like this:

<li class="col1"><%# FormatString(DataBinder.Eval(Container.DataItem, "CompanyName")) %></li> 

 and the FormatString function:

public string FormatString(object text)  
{  
    string strToFormat = text.ToString();  
    //do some formatting  
    return strToFormat;  

Alternatively you can use DataBinder.Eval Method(Object, String, String), the third parameter is a format string.

I am not able to understand what you mean about the second issue. Could you, please, explain in more details?
Thanks

All the best,
Yana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
ComboBox
Asked by
Mathews
Top achievements
Rank 1
Answers by
Yana
Telerik team
Share this question
or