Quantcast
Viewing all articles
Browse latest Browse all 7205

How to implement the Master-Details functionality with the ServerMode enabled (the LinqServerModeSource is used as the grid's DataSource)

In the 2012 vol 1 version we implemented a Master-Detail feature, and now we provide it out of the box.


Linq queries are created for the Product and ProductModel tables from the AdventureWorks DB. This DB can be downloaded by the following link: AdventureWorks DB

1. Create a linq query for ProductModel table;
2. Assign this property to the LinqServerModeSource.QueryableSource property; 3. Create a filtered linq query for the nested grid Product table.
The solution is to implement a multi-binding converter. In this converter, pass
the RowHandle and ActiveView. In the Convert method, create a new query. In the query, filter the Product based on the ProductModelID property

value of the current row. Also, create a new LinqServerModeSource object for the detail view, and assign your new query to the
LinqServerModeSource.QueryableSource property.

 


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>