I have a page with a datagrid generated with Radzen scaffolding.
I need to load the same datagrid with two differents set of data depending on a checkbox state:
- the table X;
- the view Y with same columns of table X but less rows;
Both X and Y have one to many relationships with other tables.
I supposed I can do this in the checkbox change event:
- depending on checkbox state
- invoke right datasource
- set getXResult and getXcount
- execute this.grid0.load()
I supposed also I can copy steps directly from datagrid loaddata event.
Unfortunately it seems it is not working, I see query are executed but I do not see the query on the view.
Am I following the right path? Can you give me some hints ?