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

Problem in GridViewComboBoxColumn

3 Answers 78 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gauri
Top achievements
Rank 1
Gauri asked on 06 Jul 2010, 11:35 AM
Hi,
I am using telerik RadGridView. In that I use two columns as GridViewComboBoxColumn.
Now I am calling WCF according to first column , if I call from first column then result display in second column combobox. 
But the problem is if I try to edit previous row then combobox contain items which I get from last WCF calling. Because I am binding it to second column. Then how to solve that issue?

3 Answers, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 06 Jul 2010, 11:38 AM
Hello,

Maybe you need to call the WCF again to get the new data?

Best wishes,
Vlad
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
0
Gauri
Top achievements
Rank 1
answered on 06 Jul 2010, 11:50 AM
Thanks for the reply.
I am calling WCF each time with differet value , My WCF is like below:
 public IEnumerable<string> GetFieldValues(FieldType field)
        {
            switch (field)
            {
                case FieldType.Name:
                    return new List<string>() { "AA", "BB", "CC" };
                case FieldType.Id:
                    return new List<string>() { "1", "2", "3" };
           }
     }
public enum FieldType
    {
        Name,
        Id
}

and I am passing Name or Id from firstColumn combobox. 
0
Rahul
Top achievements
Rank 2
answered on 03 Oct 2011, 06:13 AM
Hi Gauri,

Can u post your Code for GridViewComboBoxColumn with WCF Binding.
Tags
GridView
Asked by
Gauri
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Gauri
Top achievements
Rank 1
Rahul
Top achievements
Rank 2
Share this question
or