Click here to Skip to main content
Sign Up to vote bad
good
See more: C#Telerik
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 10 Sep '12 - 0:36
Mithkr518
Edited 10 Sep '12 - 0:48
_Amy38.3K


4 solutions

You need to use AllowCustomText="true" property to the RadComboBox. This will allow the user to enter custom text into RadComboBox. Like:
<telerik:radcombobox id="ddlProposerName" runat="server" xmlns:telerik="#unknown">
                    EmptyMessage="Select" AllowCustomText="false">
</telerik:radcombobox>
In code, use this:
string s = ddlProposerName.Text;
 

All the best.
--Amit
  Permalink  
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....
  Permalink  
  Permalink  
Hi, try it below:
 
http://www.codeproject.com/aspnet/combobox.asp[^]
 

 
__________________________________
Projects I'm working on:
 
Live Chat
Email Marketing
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 508
1 Arun Vasu 315
2 Maciej Los 218
3 OriginalGriff 205
4 Aarti Meswania 170
0 Sergey Alexandrovich Kryukov 9,670
1 OriginalGriff 7,409
2 CPallini 3,968
3 Rohan Leuva 3,352
4 Maciej Los 2,861


Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 10 Sep 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid