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

RadCombobox does not return .Text value

6 Answers 50 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 10 Mar 2009, 11:32 PM
Dear Telerik team,

I have a problem.
I have 

AllowCustomText

 

="True"

 


However when I am trying to get ComboBox1.Text it's always EMPTy.
I have used this control before and did not have this problem. There is something special about this page.

I am populating all the controls on the fly. However, all the other controls (not telerik) DO keep their values between the postbacks.
This is the only one that looses it.

Is there any way to retrieve the value entered by a user?

Thank you.

Thank you.

6 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 11 Mar 2009, 08:26 AM
Hi Maria,

This should work as expected.

You can check that on our online demo: Server-side Events

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Maria
Top achievements
Rank 1
answered on 11 Mar 2009, 12:28 PM
Veselin,
 
Well, I am glad that it should work, but it DOES NOT.
Why did you give me that link? It is completely unrelated to the problem with your combobox.
Do you have anyone who will be able to help me with that?

Thank you.
0
Veselin Vasilev
Telerik team
answered on 11 Mar 2009, 01:15 PM
Hi Maria,

I apologize for not being clear enough.

When you open the demo and type some custom text in the combobox (e.g. Rome) and press Enter then you will see the message: Text changed to "Rome"

You can check in the ASPX page that the AllowCustomText="True".
Next, if you open the CS file you will find this method:

protected void RadComboBox1_TextChanged(object sender, EventArgs e) 
  Label2.Text = String.Format("Text changed to: '{0}'"RadComboBox1.Text);             

This proves that the RadComboBox1.Text is working and returning the correct results.

Please describe in more detail your problem so we can help you accordingly.

Greetings,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Maria
Top achievements
Rank 1
answered on 11 Mar 2009, 02:57 PM
Veselin,

Have you read my messsage at all?
I mentioned already that  I have that combobox working in other projects. So what was the purpose of giving me that link to your demo?

It does not return the value if that control is populated on the fly.

Please, see the example here: 

http://webapps.pcrsoft.com/TelerickComboBoxScks/

Also, I can give you that sample project.

Thank you.
0
Atanas Korchev
Telerik team
answered on 11 Mar 2009, 03:37 PM
Hello Maria,

I am sending you a sample page which works as expected at our side. What could be different in your project?

Regards,
Albert
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
debett
Top achievements
Rank 1
answered on 11 Mar 2009, 04:14 PM
Albert,

I have opened a support ticket with a sample project. Please, review it there.
Support ID:196654

Thank you.
Tags
ComboBox
Asked by
Maria
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Maria
Top achievements
Rank 1
Atanas Korchev
Telerik team
debett
Top achievements
Rank 1
Share this question
or