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
Mithkr726
Edited 10-Sep-12 0:48am
_Amy49.3K
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 509
1 Nirav Prabtani 298
2 OriginalGriff 215
3 _Amy 165
4 Abhinav S 160
0 OriginalGriff 7,715
1 Sergey Alexandrovich Kryukov 6,911
2 Maciej Los 3,954
3 Peter Leow 3,698
4 CHill60 2,742


Advertise | Privacy | Mobile
Web02 | 2.8.140721.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