Click here to Skip to main content
15,880,967 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have taken dropdownlist and I have binded this and I want enter new text value not binded data should enter.
and new text value should be insert into database. and one more thing i have taken one RadioButtonSist . when we enter new text in dropdownlist then radiobutton should be selected .
plz help me .
Posted
Updated 10-Sep-12 0:48am
v2

You need to use AllowCustomText="true" property to the RadComboBox. This will allow the user to enter custom text into RadComboBox. Like:
ASP.NET
<telerik:radcombobox id="ddlProposerName" runat="server" xmlns:telerik="#unknown">
                    EmptyMessage="Select" AllowCustomText="false">
</telerik:radcombobox>

In code, use this:
C#
string s = ddlProposerName.Text;



All the best.
--Amit
 
Share this answer
 
Then u have these controls :-
1) one radio button
2) one dropdownlist
3) one textbox
4) one button

logic should be:-

(i) for selecting radio button, give required field validator or put some validation logic so that user has to select radio button before submiting.

(ii) dropdownlist updation, when user inputs some text in textbox compare textbox value to dropdownlist value. If that value is present in dropdownlist then avoid to update in database and give a message to user. If that is new value then 1st insert that value to database and then fetch data from database againg and bind to the dropdownlist.

Fun coding dear....
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900