I am sure that this will all make sense once I have added a couple of components but for now I am lost in the breadth of it all and am struggling to relate the VS examples to the use of RBS. So I am hoping that someone can give me a steer.
I have 3 Dimension joined by 2 relationship tables describing a hierarchy across those dimensions, eg. Country <> State <> City
I want in an edit page to either populate the RadzenTree Component or 3 RadzenDropDown components and once the ‘City’ is selected it be the update that is submitted by the page.
A lot to ask I know but if someone could give me just the high level steps required in the query builder, and properties involved in this I can then try to piece it together.
Here is a demo that uses the Northwind database and displays a Category <> Product relationship via cascading dropdownd (selecting a category filters the products dropdown).
The demo assumes a new data source has been added with name Northwind.
Drag and drop two dropdowns.
Run the configuration wizard for the first dropdown (that will display categories) and configure it like this:
In the change event handler we will invoke the GetProducts() method and filter the products by the selectedCategoryId field. This will do the cascading.
Add a new Invoke statement in the method builder. Set method to GetProducts()
Finally add a new Assignment statement and set products to result.Value. This will assign the Value property of the result returned by the GetProducts() method to the products collection which is what the dropdown displays. This is specific to WASM applications and for Blazor server applications the assignment should be just products to result.
Here is a download link to the application. It uses a SQLite Northwind database so it is ready to use.