How to Add Toast message after completion of AutoQueryGrid CRUD operation #152
Unanswered
dharasoni16
asked this question in
Q&A
Replies: 1 comment
-
|
I saw that the code I tried is not completely added in my query above so adding the complete code below. Bookings<AutoQueryGrid` Model="Booking" Apis="Apis.AutoQuery<QueryBookings,CreateBooking,UpdateBooking,DeleteBooking>()" DataLoaded="OnDataLoaded"/> @code { } |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In my project I am using servicestackserver blazor project template in that i am using AutoQueryGrid Component like given below
<AutoQueryGrid Model="Booking" Apis="Apis.AutoQuery<QueryBookings,CreateBooking,UpdateBooking,DeleteBooking>()" />and I want to show Toast message after completion of each CRUD operation at UI side to display the user that the CRUD operation is completed. I checked the document but could not find anything related to these query. Also I show that the AutoQueryGrid.razor.cs file is in readonly mode so I cannot create custom callbackevent to show toast after the CRUD completion.
I tried using following
[Parameter] public EventCallback<List<Model>> DataLoaded { get; set; }event already mentioned in AutoQueryGrid.razor.cs file thinking that after CRUD operation as the datagets loaded this event might get triggered so I added the logic to show toast message in that but it did not work. Given below is the code for the same`
@code {
bool _firstLoad = true;
`
As it did not work can you help me how can I display toast message after completion of CRUD operation ? Also, I do not want to use customedit form template. I am looking for an option that can work directly with AutoQueryGrid component inbuilt event or allowing to create custom event for the component.
Beta Was this translation helpful? Give feedback.
All reactions