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

Display data in combobox by calling WCF

1 Answer 84 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Gauri
Top achievements
Rank 1
Gauri asked on 01 Jul 2010, 07:38 AM

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?

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 06 Jul 2010, 12:03 PM
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
Tags
ComboBox
Asked by
Gauri
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or