Autoquery Crud Form Existing Application

Blazor Wasm. I added the blazor wasm service stack controls to an existing app but can’t seem to determine how to get the auto query New to open the form. In this case the button appears and does nothing when clicked. Any ideas on what might be missing?

  <AutoQueryGrid ShowNewItem="true" @ref=@grid Model="EmployeeDependent" Apis="Apis.AutoQuery<EmployeeDependentQuery,CreateEmployeeDependent,UpdateEmployeeDependent>()" ConfigureQuery="Configure">
    <CreateForm>
        <div class="relative z-10">
            <div class="pointer-events-none fixed inset-y-0 right-0 flex max-w-full pl-10 sm:pl-16">
               <h1>Here</h1>
            </div>
        </div>
    </CreateForm>
    <Columns>...</Columns>
</AutoQueryGrid>

Could you provide your definitions for your model and request DTOs used in the control? This will help us try to reproduce the problem. Also out of interest is your existing project based on the blazor-tailwind template or something else? Any error messages you are getting as well for the New click not working if you could provide them, check your browser console.

1 Like

This is a “legacy” project that uses tailwind so it is not using a Service Stack template. The autoquery grid works fine, just clicking the “New” button doesn’t open a side window so I am wondering if there is anything special that needs to be included for that to work?

The model is simple (as a test):

public class CreateEmployeeDependent : ICreateDb<EmployeeDependent>, IReturn<EmployeeDependent>
    {
        public int EmployeeId { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public DateTime? BirthDate { get; set; }
       
    }

Update:
This has been addressed.

Are you able to share what you found? It may help others in similar situations, and if common, we can add it to our documentation. Thanks.