Kendo Ui Tip 6 : Customized View through Querying Datasource

Creating a customized view is highly desirable in web applications .

Kendo UI too provides a way to query the datasource through query method.

Available operations are paging, sorting, filtering, grouping. If data is not available or remote operations are enabled, data is requested through the transport. Otherwise operations are executed over the available data.

Example :

View from page 2 with 10 results and data sorted by EmployeeID

Untitled

This is how we can query datasource and can create a customized view.


					
Advertisements

5 thoughts on “Kendo Ui Tip 6 : Customized View through Querying Datasource

  1. Hi, when performing a query over the DataSource, the bound controls are also affected. In other words, if the query returns only 10 records out of the 100 available in the DataSource, the bound controls are now showing 10 only. Is there a way to query DataSource without affecting the bound controls number of rows being displayed? Thanks

  2. Hi, correct me if i am wrong if the filter satisfy 10 rows out of 100 in first page then the filtered records of second page will come in the first page too and this is how it works.

  3. I have a different requirement. I am using DataSource as a local storage. So at some cases, I want to query some data out of this DataSource but without affecting the bound controls.

  4. I guess I found a decent way. Doing a deep copy of the DataSource, I could filter data as I want without affecting the original DataSource. Then, I could null that variable to get rid of it. What do you think?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s