Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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:36am
Mithkr752
Edited 10-Sep-12 0:48am
_Amy50.8K
v2
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

  Permalink  
v3

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 766
1 OriginalGriff 345
2 CPallini 200
3 PIEBALDconsult 150
4 Magic Wonder 131
0 OriginalGriff 5,795
1 Sergey Alexandrovich Kryukov 5,028
2 CPallini 4,700
3 George Jonsson 3,142
4 Gihan Liyanage 2,450


Advertise | Privacy | Mobile
Web03 | 2.8.140916.1 | Last Updated 27 May 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100