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

Possible to use RadComboBox during RadGrid edit mode if not using data source control?

1 Answer 101 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 14 Feb 2013, 03:38 AM
If I'm using a RadGrid that does insert/update/delete using manual CRUD operations, is it still possible to use a combobox within a column during edit mode? All the samples I've seen so far seem to say it's only possible if a data source control is being used (which it's not in my case). If it is possible, how is it done? Sample code would be greatly appreciated. Thank you!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 14 Feb 2013, 04:25 AM
Hi Ben,

You can use RadComboBox without DataSource or DataSourceID by giving the Items as shown below. Another case is if you want to show,update,insert or delete a DataField in a DataSource using RadComboBox.. ie if you are not specifying the RadComboBoxItem manually then its is advisable to  specify the DataSource.

ASPX:
<telerik:RadComboBox ID="RadCombo" runat="server">
    <Items>
        <telerik:RadComboBoxItem Text="sample1" Value="sample1" />
        <telerik:RadComboBoxItem Text="sample2" Value="sample2"/>
        <telerik:RadComboBoxItem Text="sample3" Value="sample3"/>
        <telerik:RadComboBoxItem Text="sample4" Value="sample4"/>
    </Items>
</telerik:RadComboBox>

Thanks,
Shinu.
Tags
Grid
Asked by
Ben
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or