Telerik Forums
UI for Blazor Forum
1 answer
2.0K+ views

We have a grid as the snippet below.

I can't figure out how to put a FilterMenu on the Template(d) columns.  

The Filter shows up for the "Id" column, which is just a field.

Is it possible to have a filter menu for the columns which are Template?


            <TelerikGrid Data="@_vehicleParts"
                         Pageable="true"
                         Sortable="true"
                         FilterMode="Telerik.Blazor.GridFilterMode.FilterMenu"
                         Resizable="true"
                         Reorderable="true"
                         PageSize="20"
                         Navigable="true"
                         OnRead=@OnVehiclePartsRead
                         TotalCount="@TotalCount">
                <GridColumns>
                    <GridColumn Width="10%" Field="Id"/>
                    <GridColumn Width="10%" Title="Year">
                        <Template Context="vehiclePartCtx">
                            @{
                                if (vehiclePartCtx is VehiclePart { BaseVehicle: { } } vehiclePart)
                                {
                                    <span>@vehiclePart.BaseVehicle.YearId</span>
                                }
                                else
                                {
                                    <span>???</span>
                                }
                            }

                        </Template>
                    </GridColumn>

Dimo
Telerik team
 answered on 28 May 2021
1 answer
1.1K+ views
Hello!
Is it possible to set expand/collapse state manually?
I'm try to set panelBar.ExpandedItems = null but this isnt change state.
Svetoslav Dimitrov
Telerik team
 answered on 28 May 2021
1 answer
295 views

After playing around with the new Drag&Drop functionality - I found a possible issue 

After Drag and Drop a lot (about 20 to 30 times) the Grid does not refresh anymore.  Also the demo (Blazor Telerik Demo) does not work correct anymore - have a look at the attachment 

Best regards

Matthias

Matthias
Top achievements
Rank 5
Bronze
Bronze
Iron
 answered on 27 May 2021
1 answer
2.3K+ views

I have a common scenario that my users complain about and find annoying. 

1) I have a DatePicker with format of M/d/yyyy

2)They click in and (for example) quickly type 2/20/2021 expecting that to be the date, instead as soon as they hit the forward slash it jumps to the year and leaves them with 2/d/0020

3) In an attempt to fix it the user will press backspace to delete a character but that clears it all and leaves the yyyy highlighted, forcing them to stop their workflow and click back to the start and be careful not to mess anything up

This is not very user friendly.  Reproducible here: Blazor DatePicker Demos - Overview | Telerik UI for Blazor

 

I and our users much prefer what they are used to in your Telerik Ajax tools that pops open the calendar when focusing on the box and will allow for free flow typing of a date, allowing a variety of formats on the fly and verify on leaving the field. https://demos.telerik.com/aspnet-ajax/datepicker/overview/defaultcs.aspx

 

Are there any workarounds or should a feature request be submitted?

 

Svetoslav Dimitrov
Telerik team
 answered on 27 May 2021
1 answer
421 views

Hello,

Yesterday, ASP.NET Core, the web-dev component of .NET, received a new functionality in the new NET. 6 Preview 4: Ahead-of-Time (AoT) compilation for Blazor WebAssembly.

Do you plan to update current Telerik Blazor demo to confirm that AoT will drastically enhance Telerik Blazor control execution speed ?

Thanks.

Jonathan.

Marin Bratanov
Telerik team
 answered on 27 May 2021
1 answer
535 views

Hi everyone,

I have binded a datatable to my grid and the Edit Mode was set to Inline. In an Editor template I have added for example TelerikNumericTextBox like this:

<TelerikNumericTextBox Arrows="@false"
                                                                   Value="@((decimal)dataRow[col.ColumnName])"
                                                                   ValueChanged="@((decimal value) => { OnDecimalCellValueChange(col.ColumnName, value); })" />

No when I want to edit the value this error appears

System.InvalidOperationException: Telerik.Blazor.Components.TelerikTextBox requires a value for the 'ValueExpression' ValueExpression is provided automatically when using 'bind-Value'.See more at https://docs.telerik.com/blazor-ui/knowledge-base/requires-valueexpression

I have read the details from that link but it doesn't seam to work, I don't have a model but a datatable binded to my grid.

Is there in this situation a solution?

Best regards,

Cipri

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 27 May 2021
1 answer
650 views

Hello,

I try to insert a YouTube iFrame into the editor but it is automatically removed from the editor. Even when I use the "Edit HTML" function it is removed on save.

How can I embed a YouTube video or other iFrame?

Thanks for your support!

Marin Bratanov
Telerik team
 answered on 27 May 2021
1 answer
135 views

Hi everyone,

Is there a way to edit inline a grid if I bind a datatable to it? because now it doesn't seam to work.

Thank you.

Cipri

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 27 May 2021
1 answer
1.4K+ views
I love the Masked TextBox control. We are using it for a a social security field with a mask of xxx-xx-xxxx. But we also need to have the value shown as ***-**-**** so that ssns are not reveled. Is this possible? I know we can use the standard TextBox and set it to password which hides the input, but we need to mask it somehow to be an ssn. Any Ideas on this?
Dimo
Telerik team
 answered on 27 May 2021
1 answer
824 views

I know this was asked before but I cannot find it, however, I have a DatePicker tied to a nullable Datetime.

When the datetime is null, the datepicker shows "M/d/yyyy" in the textbox portion of the control.  Is there any way I can get rid of than and just show an empty textbox?

I am not putting anything in the Format of the DatePicker control so I am guessing that "M/d/yyyy" is the default format but I don't what this to display on the screen.

Thanks.

Marin Bratanov
Telerik team
 answered on 27 May 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?