I have the following ComboBox with some bad data (fixing the data is on the list to do, but the system will launch with bad data.)
AllContacts is pulled from
<TelerikComboBox Data="AllContacts" TextField="FullName" ValueField="Id" TValue="int?" TItem="TblCompanyContact" Width="100%" Value="ContactId" ValueChanged="@( (int? c) => ChangeDropDownContact(c) )" Filterable="true" FilterOperator="StringFilterOperator.Contains"> </TelerikComboBox>@code{
List<TblCompanyContact> AllContacts; int? ContactId; protected void ChangeDropDownContact(int? c) { if (c != 0 && c != null) { //more code will go here when c is not null ContactId = c; } else { ContactId = null; } }
Hello,
I've done quite a bit of searching and I'm going in loops between hitting other products (mvc, Kendo, etc.) or coming back to the same example (link below).
This is what I'd like to be able to do; Upon user clicking the update/save button I'd like to attempt to save the bound model data, validate it on the server side, (key being server side) and if there are any errors, return to the client and indicate the error within the grid popup (I know how to prevent the popup from going away based upon other examples). The notification example is very poor (the link below). It shows the error in its own popup window, and if the user hits cancel on the Grid Popup, the notification popup remains until they close it. It's not a very elegant solution, and I'm not aware of any other site/web application that behaves this way.
One prime example is the user attempts to save a new item, but names the item the same accidentally as one already in the database causing a key violation. It would be nice to display "Item with name provided already exists", right above text entry field "Name" on the popup. Gets right to the point, does not require user to look elsewhere for the issue and/or acknowledge an additional popup.
Any suggestions for how to accomplish such a repetitive task (common server side validation errors)? We'd prefer NOT providing/creating a custom form/component for each and every set of items (objects) that we need to edit from within a grid/gird popup.
On a side note; It seems this would be a pretty common scenario. We should never trust the clients validation, so all validation should be done again on the server anyway. If the server is a REST api, the same errors could and should occur on the server and returned to the client that would normally get trapped on a blazor client. It would be very nice if your Blazor popup (as one example) implementation (and other standard edits) could elegantly handle/display the servers side error messages. Or am I missing an implementation somewhere?
Thanks in advance,
Curt
Current "Notification" example:
https://github.com/telerik/blazor-ui/tree/master/grid/remote-validation
Is there a way to access the fulltext search value programatically?
I have three scenarios in my mind:
1. My customer requested a button to clear all filters, resp. reset the grid to it's initial state
2. I would like to use external textbox for the fulltext filtering. Sometimes it just doesn't fit into the grid toolbar and I need it to be outside the grid.
3. I would like to use querystring for setting innitial value of the fulltext filter.
Hi,
Version 2.14.1
I want to display 2 or 3 panes in a splitter.
With the code below middle pane is on the right.
What is the best way to keep pane order ?
Remi
@page "/"<div style="width: 500px; height: 300px; border: 1px solid red;"> <TelerikSplitter @ref="ts" Width="100%" Height="100%" Orientation="@SplitterOrientation.Horizontal"> <SplitterPanes> <SplitterPane Size="20%" Collapsible="true"> <div>left</div> </SplitterPane> @if (bunique) { <SplitterPane Size="10%" Collapsible="true"> <div>middle</div> </SplitterPane> } <SplitterPane> <div>right</div> </SplitterPane> </SplitterPanes> </TelerikSplitter></div>@code{ bool bunique = false; Telerik.Blazor.Components.TelerikSplitter ts; protected override void OnAfterRender(bool firstRender) { if (firstRender) { if (!bunique) { bunique = true; StateHasChanged(); } } }}
Hi,
How can I format the resulting data. I want to only show a rounded value.
So 10.123456 hours will be 10 hours.
Thanks in advance
<GridColumn Field="Hours"> <GroupFooterTemplate Context="gridContext"> @{ <div>@gridContext.Sum.ToString()</div> } </GroupFooterTemplate></GridColumn>Is it possible to create grid subcomponents which have a number of parameters set ?
Simple example (not realistic) would be to have components like
<SortableTelerikGrid> which is just the <TelerikGrid Sortable="true">
so instead of having to specify all parameters in each page we can get some default parameters going.
I am unclear how or what makes the selected Blazor Grid row highlighted when selected. I can select the row, but it doesn't get highlighted.
I've looked at the demos, and for the life of me, I cannot tell how the selected row is highlighted. I assume class attribute requires something added.
What am I missing here?
Thx
For uploads, the examples that are given have the controllers returning an empty results set.
Is there an example of returning a custom result set back?
Is there a way to set the size of the dropdown for the datetime picker? I have complaints from users where when they are changing between different months and the position of the arrows move due to different lengths of month names. This causes them to accidently click the "Today" button and lose their selection. Any help is appreciated.