Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

ASPxGridLookup - How to bind a lookup based on multiple selection of another lookup

$
0
0

This example demonstrates how to implement two cascaded ASPxGridLookup controls:
To implement it, perform the following steps:

1) Handle the server-side ASPxGridLookup.Init event of a "detail" lookup and subscribe to the CustomCallback event of a nested ASPxGridView object;
2) Handle the client-side ASPxClientGridLookup.ValueChanged event of a "master" lookup;
3) Perform a custom callback of the "detail" ASPxGridLookup via the ASPxClientGridLookup.GetGridView().PerformCallBack method;
4) Handle the "detail" ASPxGridView.CustomCallback event and define a filter expression for a "detail" datasource based on selected values of the "master" lookup;
5) Save a modified select command to the session to load it when the "detail" ASPxGridLookup/ASPxGridView is initialized after a callback.

Question Comments

Added By: Rick Astley at: 3/12/2015 3:49:38 AM    

This does not work inside editform template.
I was evaluating your componente and came to conclusiion zhat you really really need to take a good look at your stuf and start fixing it.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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