Telerik Grid for Blazor, how to add a row through code. Should be easy, but I cannot find a straightforward answer anywhere. Here's my grid:
<TelerikGrid Data=@GridPallets
Height="200px"
FilterMode="@GridFilterMode.None"
Sortable=true
Pageable=true>
<GridColumns>
<GridColumn Field=@nameof(PalletGridModel.Type) />
<GridColumn Field=@nameof(PalletGridModel.Quantity) />
<GridColumn Field=@nameof(PalletGridModel.Weight) />
<GridColumn Field=@nameof(PalletGridModel.DeliveryCharge) Title="Delivery Charge" />
<GridColumn Field=@nameof(PalletGridModel.HubCharge) Title="Hub Charge" />
</GridColumns>
</TelerikGrid>
Here's some code on the same page to create a new item to add to the grid:
PalletGridModel pgm = new PalletGridModel();
pgm.DeliveryCharge = palletType == "QTR" ? 10 : palletType == "HALF" ? 20 : palletType == "FULL" ? 30 : 40;
pgm.HubCharge = palletType == "QTR" ? 4 : palletType == "HALF" ? 5 : palletType == "FULL" ? 6 : 10;
pgm.Quantity = quantity;
pgm.Type = palletType;
pgm.Weight = weight;
Everything I've tried after that to add that new item to the grid doesn't work - from adding the item to the grid data with a simple list.add(item) to trying to use the grid's update handler - but so far, nothing has worked. Surely something as simple and straightforward as this can't be this difficult?
I am trying to use DataSourceRequest to query a table with a joined table to bring back a total count for each joined item in the second table.
i.e.
Notes joined to NoteTypes
Is there an example of how to use the DataSourceRequest to access an OData api and get a count of each item that is joined to records in the second table?
This works but now I need to add in grouping and counts.
var request =new DataSourceRequest() { Page =0, Skip =0, Filters =new List<IFilterDescriptor>(), Sorts =new List<SortDescriptor>(), Aggregates =new List<AggregateDescriptor>(), Groups =new List<GroupDescriptor>() }; request.Filters.Add(new FilterDescriptor() { Member ="AssignedToUser", Operator = FilterOperator.Contains, Value = CurrentUserName, MemberType =typeof(string) }); request.Filters.Add(new FilterDescriptor() { Member ="IsActive", Operator = FilterOperator.IsEqualTo, Value =true, MemberType =typeof(bool) }); request.Filters.Add(new FilterDescriptor() { Member ="IsResolved", Operator = FilterOperator.IsEqualTo, Value =false, MemberType =typeof(bool) });
var results = await NotesService.GetNotesAsync(request);
Hi, in 2.25 I was able to use bootstrap input-group to make the following numeric input:
<div class="row">
<div class="col-6">
<label for="inputTest" class="col-form-label-sm">Label</label>
<div class="input-group flex-nowrap">
<div class="input-group-prepend">
<span class="input-group-text">$</span>
</div>
<TelerikNumericTextBox Class="form-control" @bind-Value="number" Id="inputTest" />
</div>
</div>
</div>
In 2.26 the kendo-bootstrap-theme/all.css seems to be missing a .k-widget.form-control css override of padding:0 to make this work.
Is this intended or a bug?
Hi Team,
Could you please suggest to implement Item Template like below
Thanks
I have a need for a two dimensional "grid" of cards that is dynamic in both directions. Each column is independent of the others.
Something like this:
Each Status/Step to the approval process could have duplicates of the Request, i.e. Request 1 is still in pending status. Request 2 has been submitted and needs Approval 1 and Approval 2. Request 3 has been submitted and needs Approval 3. I will build an ordered list with necessary duplicates to fill this.
I was trying to use nested StackLayouts to do this but it does not appear to like anything dynamic. Display should be approximately like:
Status
Pending Submitted Approval 1 Approval 2 Approval 3
Request 1 Request 2 Request 2 Request 2 Request 3
Request 3
When there are so many rows that the browser has a scroll bar, the context menu that opens automatically moves the scroll bar to the lowest position.
Pictures attached showing the problem.
Also example code attached.
Hello
Is it possible to change the error message in the Blazor Upload component to a custom error when the files get selected or uploaded?
We require the files to have a specific name format, and we check for this format on the OnUpload event.
We would also like to disable the retry button, because the name of the file can't be changed and thus, won't fit the naming requirement when retrying.
Is this currently possible? If necessary, by using Javascript (though preferably without)?
Thanks in advance.
Ruben