Hello:
I've followed the demo to setup the master/detail grids (or hierarchy grids), they works fine as intended.
However I'd like to make improvement by asking how to make SubGrid data binding conditional.
By default if the MasterGrid returned 10 rows, then the data binding to the SubGrid, which is the url to Controller/Action, were called 10 times, with each one pass in the different ID from MasterGrid.
In my case I only need to call the data bind to SubGrid when a value in MasterGrid has met the requirement.
i.e. for each row of MasterGrid returned, only if the column MyFlag=1, then I need to call the SubGrid.
So out of 10 rows turned, if only 3 rows has MyFlag=1, then the data call to SubGrid only need to be 3 times, instead of 10.
I am not sure how to do that, please advise.
Thank you,
9 hours ago (Link to this post)
Hello:
I've followed the demo to setup the master/detail grids (or hierarchy grids), they works fine as intended.
However I'd like to make improvement by asking how to make SubGrid data binding conditional.
By default if the MasterGrid returned 10 rows, then the data binding to the SubGrid, which is the url to Controller/Action, were called 10 times, with each one pass in the different ID from MasterGrid.
In my case I only need to call the data bind to SubGrid when a value in MasterGrid has met the requirement.
i.e. for each row of MasterGrid returned, only if the column MyFlag=1, then I need to call the SubGrid.
So out of 10 rows turned, if only 3 rows has MyFlag=1, then the data call to SubGrid only need to be 3 times, instead of 10.
I am not sure how to do that, please advise.
Thank you,
9 hours ago (Link to this post)
Hello:
I've followed the demo to setup the master/detail grids (or hierarchy grids), they works fine as intended.
However I'd like to make improvement by asking how to make SubGrid data binding conditional.
By default if the MasterGrid returned 10 rows, then the data binding to the SubGrid, which is the url to Controller/Action, were called 10 times, with each one pass in the different ID from MasterGrid.
In my case I only need to call the data bind to SubGrid when a value in MasterGrid has met the requirement.
i.e. for each row of MasterGrid returned, only if the column MyFlag=1, then I need to call the SubGrid.
So out of 10 rows turned, if only 3 rows has MyFlag=1, then the data call to SubGrid only need to be 3 times, instead of 10.
I am not sure how to do that, please advise.
Thank you,