Display data in combobox by calling WCF

2 posts, 0 answers
  1. Gauri
    Gauri avatar
    25 posts
    Member since:
    Jun 2010

    Posted 01 Jul 2010 Link to this post

    Hello,

    I am using radGridViewin my project. It has two columns, I take it as GridViewComboBoxColumn, Now if I select item from User columnthen WCF will call and according to selection Computer combobox displays theitems.

     

         <telerikGrid:RadGridViewx:Name="TopGrid" >

                <telerikGrid:RadGridView.Columns>

    <telerikGrid:GridViewComboBoxColumn x:Name=" User " Header="User "  />

    <telerikGrid:GridViewComboBoxColumn x:Name="Computer" Header="Computer"/>               

                </telerikGrid:RadGridView.Columns>          

            </telerikGrid:RadGridView>

     

    First Combobox had items like: User, Computer.

     

    If I select one from User combobox, then WCF shouldbe called and items should be display in Computer combobox.

     

    [OperationContract]

            publicIEnumerable<string> GetValues(FieldType field)

            {

                switch(field)

                {

    case FieldType. User:

    return new List<string>() { "Local Account", "Tony","Raj" };

    case FieldType. Computer:

    return new List<string>() { "INRG081", "INRG082","INRG083"};

                 }

            }

    public enum FieldType

        {       

            User,

    Computer      

        }  

     

    How to display items in Computer column combobox?

  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Jul 2010 Link to this post

    Hi Gauri,

    Thank you for your interest in our controls.

    Could you please review the following help articles about GridViewComboBoxColumn and binding of a ComboBox to WCF Service:


    If you still experience difficulties please feel free to contact us again.

    Kind regards,
    Konstantina
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top