Now my question is, how can I get that same functionality in the grid?
6 Answers, 1 is accepted
You will need to add a GridVIewComboBox column to your RadGridView.
To enable the user to type in and the combo to autocomplete - you will need to set the IsComboBoxEditable property of the GridViewComboBoxColumn to true.
the Telerik team
* Combo box is in a gridview
* Combo box has auto complete feature and is populated from WCF service
* supports 1000s of items
The field in question is dynamically populated and can have 1000s of items in it, we use the auto complete not only because it looks cool to the user but also because it is a good way of not having to send the entire dataset to the browser. I am looking for an example of similar functionality in the silverlight radgridview.
Unfortunately I do not have such example , but I may assist you in achieving the goal :
1. ComboBox is in gridview :
There are two ways to achieve that :
b.Placing the combobox in the cell , via the Celltemplate property of a regular column.
2.ComboBox has the AutoComplete feature - this one is easy - just set the RadComboBox.IsEditable property to true and you get the autocomplete feature.
is populated by WCF service - you can set any IEnumerable as ItemsSource to the RadComboBox
-supports 1000s of items - RadComboBox the items panel of RadComboBox may be set to a
VirtualizingStackPanel . This way the performance with 1000 items will not suffer.
Now since in your last post you mention that data should be requested on portions from the server and you already have a working solution with RadComboBox,
I would recommend to chose the approach form 1.a - placing a RadComboBox inside the cell.
Each column has a CellTemplate property. Using this property you may set a template with a combo inside.
Let me know if you find any specific problem while implementing this.
the Telerik team
I know it a old post, but I have simmilar requirement, and the items in my case is 100,000(yes, I said it right), would that work with the same technique below, I am trying to implement it using silverlight toolkit autocomplete box, (with dynamic data binding on populating event using Ria services, it works great outside the grid, but when I added it to Telerik grid edit template, I am not finding a way to update the itemsource of the autocomplete box every time there is a change in entered text.
Could you please tell me how to find a control within the Grid edit cell template and assign the itemsource everytime user types new text in to the autocomplete box control?
Every time there is a key press, I pass in the text from the combo box and then do "select top 20 * from blahblah where blah like 'text%'. I also require that the user enter at least 2 characters before I start making the web service calls, so that already helps pare down the results. I also cache the entire list in memory so I'm not continually making SQL calls. Let me know if you need more details.