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.

Added By: Larry (DevExpress Support) at: 3/13/2015 3:33:58 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T219124: The E3959 example does not work in grid's EditForm. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

Added By: John Daren Dizon 1 at: 8/5/2015 3:11:59 AM    

Hello, can I ask how can I combine multiple criteria for my filterexpression?

Added By: Larry (DevExpress Support) at: 8/5/2015 6:50:29 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: T275116: ASPxGridLookup - How to bind a lookup based on multiple selection of another lookup if multiple filter criteria is used. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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