Not able see Radcombobox values

5 posts, 0 answers
  1. keerthi
    keerthi avatar
    4 posts
    Member since:
    Oct 2008

    Posted 24 Oct 2008 Link to this post

    I''m anot able to get the second RadCombobox values on server side when it is loaded through on item request of first Radcombobox.

    i can able to see data in second RadCombobox,but on button click,i can able to get the selected item from first RadCombobox and second RadCombobox  is coming as null.

    Can you let me know,what i am missing in the functionality
  2. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 24 Oct 2008 Link to this post

    Hey Keerthi,

    Just curious, are you doing these operations client-side or server-side?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. keerthi
    keerthi avatar
    4 posts
    Member since:
    Oct 2008

    Posted 24 Oct 2008 Link to this post

    Hi Serrin,

    I posted the code in my earlier post with heading Regadring AJAX ASP.NET RadComboBox .


  5. keerthi
    keerthi avatar
    4 posts
    Member since:
    Oct 2008

    Posted 24 Oct 2008 Link to this post

    Hi Serrin,

    I posted the code in my earlier post with heading Regadring AJAX ASP.NET RadComboBox .


  6. Rosi
    Admin
    Rosi avatar
    2527 posts

    Posted 27 Oct 2008 Link to this post

    Hello ,

    RadComboBoxItems are not persisted on the server if they are loaded on demand. I suggest you use the SelectedValue and Text properties of the controls instead of the SelectedItem property.

    For example:
    protected void btnsubmit_Click(object sender, EventArgs e){   
    string r1 = RadComboBox1.SelectedValue;  
     
    string r2 = RadComboBox2.SelectedValue;  
    // getting null for  r2  
    }  
     

    For more details you can read our help article.

    Kind regards,
    Rosi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017