The demo works, enter "ani" for example (note that the ComboBox' MinLength
option is set to 3, thus for filtering to be triggered a minimum of three characters need to be entered).
As for the missing controller and action, in this particular demo the GetProducts action from the Home controller is called:
This specific action is called by many other demos, but as you have correctly noticed it is not posted in the demo's source viewer. Currently the demos source viewer displays the view and the associated with it controller (in this case ServerFilteringController.cs), and since the actual server logic for filtering the ComboBox is in the Home controller it is not visible from this demo's page. This is definitely something that we aim at improving in the future in our demos site. The relevant code (views, controllers, etc.) should be displayed in the source section.
Here's the actual definition of the GetProducts action:
var northwind =
var products = northwind.Products.Select(product =>
ProductID = product.ProductID,
ProductName = product.ProductName,
UnitPrice = product.UnitPrice ?? 0,
UnitsInStock = product.UnitsInStock ?? 0,
UnitsOnOrder = product.UnitsOnOrder ?? 0,
Discontinued = product.Discontinued
products = products.Where(p => p.ProductName.Contains(text));
Since as I explained currently the demos site does not display all the relevant information, we can recommend running the sample demos application locally. It contains all the demos and comes with the Telerik UI for ASP.NET MVC installation. Here's a documentation article
, which explains how you can run it. The sample application would allow you to inspect more closely the implementation of any demo that presents an interest.
Telerik by Progress