I have the situation where I need to update a grid based on what has been selected in a combo box. The layout is such that the combo box is part of a form on top and the grid is at the bottom.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First use dojo connect to bind the onChange event of your combo boxes to a function like below:
Then in the function call the filter function on your grid:
In these examples, selectFilterGroup and selectFilterParameter are both dijits representing combo boxes.
Another way to do this, depending on how you have constructed your grid and combo boxes is to use the displayedValue property for the filter