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

[Solved] Autocomplete in GridViewComboBoxColumn not working

3 Answers 133 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Randy
Top achievements
Rank 1
Randy asked on 10 Nov 2010, 07:12 AM

I am trying to use Autocomplete in this combobox and I have values in the data like Auto, Motorcycle, Truck, etc. but the only thing that shows up when editing the cell is Setup : 1.  When I leave the cell, it puts the value Auto (the first value in the list).  What am I missing?

 

 


 

<telerik:GridViewComboBoxColumn UniqueName="PolicyType" 
                      Header="Policy Type" 
                      DataMemberBinding="{Binding PolicyTypeID}" 
                      IsComboBoxEditable="True" >
    <telerik:GridViewComboBoxColumn.ItemTemplate>
        <DataTemplate>
            <TextBlock Text="{Binding Value}"></TextBlock>
        </DataTemplate>
    </telerik:GridViewComboBoxColumn.ItemTemplate>
    <telerik:GridViewComboBoxColumn.FilteringControl>
        <rscc:GenericFilterControl />
    </telerik:GridViewComboBoxColumn.FilteringControl>
</telerik:GridViewComboBoxColumn>
void loadPolicyType_Completed(object sender, EventArgs e)
{
    LoadOperation<Setup> loadOperation = (LoadOperation<Setup>)sender;
    GridViewComboBoxColumn policyTypeColumn = (GridViewComboBoxColumn)_rgvEntryData.Columns["PolicyType"];
    policyTypeColumn.ItemsSource = loadOperation.AllEntities;
    policyTypeColumn.SelectedValueMemberPath = "SetupID";
    policyTypeColumn.DisplayMemberPath = "Value";
}

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 15 Nov 2010, 10:20 AM
Hello Randy,

I have tried to reproduce the issue you specified, but I was not able to. I am sending you the sample project I used for testing it. Feel free to modify it in the way you want and share more details in case of some discrepancies towards your requirements.
  

Greetings,
Maya
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
Randy
Top achievements
Rank 1
answered on 22 Nov 2010, 01:54 AM
Still not having much luck.  I tried changing the IsComboBoxEditable property of other columns in the grid and I get similar results.  For an entity called RSUsers, when you click the dropdown you get RSUser : 1, RSUser : 2, etc.  I wonder if it is not liking the way that I am loading the data in with EntityQuery?
0
Randy
Top achievements
Rank 1
answered on 22 Nov 2010, 02:04 AM
Nevermind, I found my problem.  I was also using a DataTemplate that was getting in the way.  Thank you.
Tags
GridView
Asked by
Randy
Top achievements
Rank 1
Answers by
Maya
Telerik team
Randy
Top achievements
Rank 1
Share this question
or