Two related grids

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
In my plugin in Configure  area I have to add two related grids (grid1 and grid2). When user clicks on some row in grid1 only related records should  appear in grid two. Where to start? Is there any similar example in nopcommerce? Should I use Kendo grid or ... ?

Thanks in advance,


Tomislav
5 years ago
Hello,

There is no perfect example in nopcommerce.

But you can achieve with your own logic.

Based on first grid record selection you have to refresh second grid and pass relavent parameter to the list method of second grid.

Based on that fetch exact record which you need.

Hope you will understand..!!
5 years ago
Hi,

nopCommerce 4.1 uses nested grids in the admin area. You can check it here. I think this has a better UX and functionality than separated grids.

I hope this will help.

Regards
5 years ago
Thanks, I'll try nested grids.
5 years ago
sk5202 wrote:
Hello,

There is no perfect example in nopcommerce.

But you can achieve with your own logic.

Based on first grid record selection you have to refresh second grid and pass relavent parameter to the list method of second grid.

Based on that fetch exact record which you need.

Hope you will understand..!!



I tried, but not sure how to pass parameter back to controller method. Is there any example?  I googled it but without success.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.