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

[Solved] MultiColumn LoadOnDemand Issues

1 Answer 127 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Atlas
Top achievements
Rank 1
Atlas asked on 28 Jul 2009, 08:17 PM
1) The Office 2007 skin is being applied to our application via the web.config, but the MultiColumn comboBox we are creating does not seem to inherit the look and feel that the rest of the controls get (We are using an item template). How do we fix that?
2) How do you apply a Selected Value column to the MultiColumn example? We are using the item template, and have specified the DataValueField and DataTextField names in the declaration, is that all there is to it?
I am guessing that we don't use the id which we want to use for the selected value in the item template, and it will bind but be invisible to the user?

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 31 Jul 2009, 02:01 PM
Hi Nano,

1. This is expected since nested controls do not inherit the skin that RadCombobox uses. You need to create your own custom css styles for the nested controls. The Multi-column ComboBox demo shows how custom css styles are used for the tempate content.

2. Yes, the selected value will be whatever you specify. For example, the above demo uses CustomerID for selected value and ContactName for selected text:
protected void RadComboBox1_ItemDataBound(object sender, RadComboBoxItemEventArgs e)  
        {  
            //set the Text and Value property of every item  
            //here you can set any other properties like Enabled, ToolTip, Visible, etc.  
            e.Item.Text = ((DataRowView)e.Item.DataItem)["ContactName"].ToString() ;  
            e.Item.Value = ((DataRowView)e.Item.DataItem)["CustomerID"].ToString();    
        } 

That's all there is.

Let us know if you have further questions.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
ComboBox
Asked by
Atlas
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or