Telerik Forums
UI for Blazor Forum
1 answer
508 views
My typical case
Users for working with various business objects (let's assume that this is a Product) work with a paged grid (the number of pages is from 20 to 1000). Product has 10-30 fields (Name, Type, Code, etc.).
The user using the search box selects for example by Type the Product they are interested in and adds the Product with the same Type using a complex form on a separate page. After recording the added Product, the user returns to the page with the paged grid, updates the data, and wants to return to the same search box filter that was before the addition.
How do I save the filter from the search box before entering a new Product and restore it after adding a new Product to the database?
Hristian Stefanov
Telerik team
 answered on 07 Jun 2021
1 answer
1.1K+ views
We're trying to wrap the Telerik card component into my own card deck and card components.  I have the following classes that I would like to create in a collection on the page and then have the click events from the button wired up to methods on the page similar to this example.
 
CardDeck - This holds a List of CardItems
Card - Contains an individual CardItem object
CardItem - Properties of the card as well as a CardButton collection
CardButton - Properties of the button as well as a property that represents the method I'd like to wire up on the page.
 
Card.razor iterates through the CardButton collection and creates a TelerikButton object for each item.  This is where I'd like to have the CardButton.OnClick wired up.  This works fine if I have a method defined in card.razor, but if I try and define a method on the page I can't seem to wire it up (see the example).
 
 

Nadezhda Tacheva
Telerik team
 answered on 07 Jun 2021
3 answers
1.0K+ 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
572 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
647 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
201 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
273 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
155 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
149 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
133 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Andrey
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?