Telerik Forums
UI for Blazor Forum
3 answers
1.1K+ views

I am trying to do a custom filter as FilterMenuTemplate in a Grid.

Filtering works fine.  When I attempt to "unfilter", I get lost in how to detect and handle it.

I have two different styles of handing the filtering in the below, yet neither can I get to work.

How do I have FilterMenuTemplate with a dropdown (custom) and detect the user clicking the "Clear" button?

<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="@nameof(VehiclePartModel.YearId)">
                    </GridColumn>
                    <GridColumn Width="10%" Field="@nameof(VehiclePartModel.BrandModelName)">
                        <FilterMenuTemplate Context="brandModelNameFilterContext">
                            <TelerikDropDownList Data="@_brandModels" TextField="@nameof(BrandModel.Name)" ValueField="@nameof(BrandModel.Id)" @bind-Value="@BrandModelIdFilter" />
                        </FilterMenuTemplate>
                    </GridColumn>
                    <GridColumn Width="10%" Field="@nameof(VehiclePartModel.MakeName)">
                        <FilterMenuTemplate Context="makeNameFilterContext">
                            @{ this._makeNameFilterContext = makeNameFilterContext;}
                            <TelerikDropDownList Data="@_makes" TextField="@nameof(Make.Name)" Value="@MakeIdFilter" ValueField="@nameof(Make.Id)" ValueChanged="@((int value) => ColumnValueChanged(value, nameof(VehiclePartModel.MakeName), makeNameFilterContext.FilterDescriptor))"/>
                        </FilterMenuTemplate>
                    </GridColumn>


Svetoslav Dimitrov
Telerik team
 answered on 07 Jun 2021
1 answer
633 views

Hello,

Is there a way to refresh all Charts in a TileLayout without doing it on every Chart?

 

My TileLayout is created dynamically, and I can have 1 or many Charts in it, but I want to refresh all of them on resize.

I have a method that triggers when a user presses some key combinations, and then every Chart should do .refresh().

 

Thanks

 

BR,
Nikolas

Svetoslav Dimitrov
Telerik team
 answered on 07 Jun 2021
2 answers
726 views

I am attempting to use a drawer component to slide in from the right and present the user with a form to edit various items from a grid.

Is there a way to display content (form, text, etc) in a drawer other than menu-type items?

Thanks,
Jesse

Jesse
Top achievements
Rank 1
Iron
 answered on 04 Jun 2021
1 answer
237 views

I have created my own custom FilterMenuTemplate which is working.  I get the standard "Clear" and "Filter" buttons in the filter popup for free.

I would like to add a third custom button next to the "Clear" and "Filter" buttons called "Default"
(see red outline on attached image as to where I would like to place the button). 

Looks like it would need to be placed inside the <div class="k-columnmenu-actions">

Clicking on the "Default" button will reset the filter back to the default values e.g. "C0", "UA" and "BM" - is that possible?

 

Dimo
Telerik team
 answered on 04 Jun 2021
0 answers
305 views

Hi All,

Can any one help me to integrate a dropdown icon in TelerikMultiSelect component in blazor.

 

Thanks in advance

Soumyo
Top achievements
Rank 1
 asked on 04 Jun 2021
1 answer
196 views

When the user types 0 in with the month selected , the entire date time values goes blank and shows the format. It is reproducible on your demo

https://demos.telerik.com/blazor-ui/datetimepicker/incremental-steps

to reproduce,

  • click inside the date shown on the example on the above page  to select the year
  • press tab until the month is highlighted
  • press 0 
  • entire date is cleared and the format is shown

 

Svetoslav Dimitrov
Telerik team
 answered on 04 Jun 2021
1 answer
236 views
We have the background and foreground colors available now. But its a few swatch ranges only. I need to have Blue, red, purple, and other colors. Is there still a limitation?
Dimo
Telerik team
 answered on 03 Jun 2021
1 answer
176 views
Hi there, 

I'd like to be able to click the Add command button, a child component will popup and I will be able to select an item that will then fill in some fields of the new grid row. I can't seem to get this to work with incell editing though, is this possible?
Dimo
Telerik team
 answered on 03 Jun 2021
1 answer
979 views
Hello

I'm working on the view and I wanted to check if in the grid / editing there is the possibility of creating the PopUp event without the <GridCommandColumn> <GridCommandButton Command = "Edit" Icon = "edit"> Edit </GridCommandButton>

I don't want that edit button to appear in my view, what I'm looking for is that clicking anywhere in the row opens that PoPup and when the PoPup appears there is a delete, update, calcel button.

It is possible to modify the Grid view in this way

I looked a lot and I can't find the way.

Thank you.
Svetoslav Dimitrov
Telerik team
 answered on 03 Jun 2021
0 answers
108 views

Hi everyone,

I have a question regarding the Filter Template. On my grid by default is set the FilterMode to FilterRow and in that situation the row for filter row appears by default on the grid that's fine how it is but I have a setting in my Bussiness Layer, a flag that tells me that the filter should be done down in the SQL select and for that I want to be able to set in the FilterTemplate a an input where the user can enter some values. The FilterTemplate should be set only for the situation explained above otherwise not.

Can the FilterTemplate be configured to in use somehow programaticali according to a true/false flag?

 

Thank you,

Cipri

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 02 Jun 2021
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?