Two related grids

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Hace 5 años
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
Hace 5 años
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..!!
Hace 5 años
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
Hace 5 años
Thanks, I'll try nested grids.
Hace 5 años
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.