What is the standard way to display error messages to the user?
I have an ASP.NETCore, EFCore, Blazor-Server, Kendo-Blazor-UI application. A user accomplishing a record change with TelerikGrid might trigger a DbUpdateConcurrencyException in BankAccountService.Update(). I want to catch the exception, then give the user a useful action such as, "Another user, (*cough* Bob H. in Accounting), made insignificant changes to account (#45678) while you were making your very important modifications. Please refresh your browser, review Bob's changes, then submit your modifications, again. Be sure to thank Bob later."
How is this communication back to the user best accomplished in a standard way?
Thanks!
Hello,
how to prevent calling "OnParametersSet " multiple times when DialogFactory is used?
its firing 2-6 times per page opening. Without DialogFactory, its correct, only 1x.
Blazor server app. With PreRendering disabled.
Thanks
Just updated to the latest release and gave the multi-column option on the grid a try. It worked well for most cases, but on an initial transition from a non-multi-column to a multi-column, part of a grid line is missing. Code is pretty standard stuff, but then, being new to Blazor (or any kind of web programming) I could easily be missing something obvious:
<TelerikGrid Data="@lstOpsYields" Sortable="true" Pageable="true" PageSize="20" Width="100%">
Hi,
I'm just playing with the TelerikEditor control and I've noticed that if I type or paste some text into the editor and then delete it all, it's leaving behind some HTML.
If just typing text and deleting it, it seems to leave "<p><br></p>" in the bound value.
When pasting in some code from stack overflow I've also seen it leave behind this: "<pre><code><br></code></pre>" - this happens when you paste part of a code block and then a combination of "delete" & "backspace" (I haven't quite figured the order of deleting to get this).
On a separate note, in an ideal world this control would be functionally similar to the other rich text editors in your suite - I'm trying to find one that behaves the same in Blazor (or the Web) and on WPF, as our application runs on different platforms. Yours seem very different to each other.
No rush as for me as I probably won't use it anyway, but I thought I'd mention!
Kind Regards,
Nick.
I have a Telerik Blazor Grid which has selection tickboxes that allow multiple tickboxes to be selected at any one time. I can store the selected tickbox state to hold a list of all the selected items.
If I navigate away from the grid say to another page and then return back to the grid I would like to be able to render the grid with the rows that were selected so they are shown as still ticked - is this possible?
Do you have any example code?
Thanks.
---
I have followed the pattern in here: https://github.com/telerik/blazor-ui/blob/master/grid/persist-selection/Pages/Index.razor
I am storing the SelectedItems in the SelectedItemsChanged event handler and storing them on a Cascading value component so they are available across pages.
When returning back to the page that has the grid the SelectedItems are not highlighted.
The grid's SelectedItems property points to the CascadingValue property of selected items.
I can successfully print out the SelectedItems count from the same CascadingValue property above the grid, so there is definitely data there, but the grid doesn't seem to want to show those items as selected.
I have also tried setting the SelectedItems property on SetState but that has same problem.
FYI
The grid uses OnRead where the data is filled into the grid on initialization of the page and when ever paging or filtering, sorting is applied.
---
I have taken the https://github.com/telerik/blazor-ui/blob/master/grid/persist-selection example and updated it to use a CascadingValue parameter to persist the state across pages. This can be found here in this feature branch: https://github.com/adrianwright109/blazor-ui/tree/feature/persisted-state-not-updated-in-grid
The CascadingValue is working to persist state across pages as can be seen from the animated gif below, as the IDs 1 and 3 are shown under the grid after navigating pages. What is not working is that those rows in the grid should also be highlighted and ticked as selected.
---
I think the issue could be that the grid is not seeing the selected items that have been persisted as the same as the ones when returning back to the grid.
The data in the grid is re-populated from the database and the object references don't match.
If I hard code the data then the persisted selection so correctly when returning back to the grid.
Is this a bug or do I need to manually override/set Equals on the grid row objects?
If implementing manual overrides to the Equals method is required, examples of how to do this so its compatible with the grid would be appreciated.
---
I was using Ed Charbenaeau's BlazorSize, but wanted to remove the extra dependency now that similar functionality is built into UI for Blazor.
Is there an analogue to the IResizeListener/ResizeListener class? I have a base class component that's injecting IResizeListener, I didn't see a method to do that with Telerik.
Thanks!
Hi!
I have successfully used the editor control in my application. Now its priming time. I need guidance on sanitization as in the docs section, I only see this tip section:
The application must sanitize the content before passing it to the editor and, optionally, before saving it to its storage after obtaining it from the editor. It is up to the application to ensure there is no malicious content (such as input sanitization, XSS attack prevention and other security concerns).
Is there a best-practice or at least a minimum common rules to check for? Is there something you guys are using behind your online demo? I need to know because my site will be public facing and any malicious activity can get me in trouble.