Open Closed

cascading drop downs #3680


User avatar
0
mel@quadsoftpa.com created
  • **ABP Framework version:**6rc3
  • UI type:Blazor
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): MVC

I need to support cascading drop downs (select). I can easily do this with Telerik Blazor, but I'd like to stay as close as possible with the suite generated code.

if I stick with the default binding, the only way I could think of getting a message back from the createDto to load the municipalities was an event. none of this seems like a very good idea, that's why I'm posting here. Should I change my bindings on the select or do you have a better scenario to get municipalities to load when County is changed. the images should give you a better understanding. Thank you


2 Answer(s)
  • User Avatar
    0
    mel@quadsoftpa.com created

    I should mention that the scenario does work up until CommunitiesAppService is alwasy null

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    There is no need to use EventBus, it will increase your code complexity.

    See the document: https://blazorise.com/docs/components/select

    Select component has a SelectedValueChanged event, and you can use it.

    .

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11