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

[Solved] radcombobox inline editing

1 Answer 147 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
lekha
Top achievements
Rank 1
lekha asked on 17 Aug 2009, 07:27 AM
Hi all,
I am having a radcombobox with some items at loading time , and  i need  to add another  new item into the combobox at the same time into the database also. Is there any additional property of radcombox to  achieve this?? If anyone knows please answer ..

thanks in advance
lekha

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 17 Aug 2009, 10:10 AM
Hello Lekha,

You can set the AllowCustomText property of the RadComboBox to true, to type custom text into the combobox:
aspx:
<telerik:RadComboBox ID="RadComboBox1" runat="server"  
 DataSourceID="SqlDataSource1" AllowCustomText="true" 
 DataTextField="FirstName" DataValueField="FirstName" > 
</telerik:RadComboBox> 
               

and you can retrieve the text as shown below while updating the database:
c#:
string strtxt = RadComboBox1.Text;

Thanks
Princy.
Tags
ComboBox
Asked by
lekha
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or