RadCombobox does not return .Text value

7 posts, 0 answers
  1. Maria
    Maria avatar
    27 posts
    Member since:
    Feb 2008

    Posted 10 Mar 2009 Link to this post

    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.
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 11 Mar 2009 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria
    Maria avatar
    27 posts
    Member since:
    Feb 2008

    Posted 11 Mar 2009 Link to this post

    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.
  5. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 11 Mar 2009 Link to this post

    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.
  6. Maria
    Maria avatar
    27 posts
    Member since:
    Feb 2008

    Posted 11 Mar 2009 Link to this post

    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.
  7. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 11 Mar 2009 Link to this post

    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.
  8. debett
    debett avatar
    30 posts
    Member since:
    Feb 2007

    Posted 11 Mar 2009 Link to this post

    Albert,

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

    Thank you.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017