Telerik Forums
UI for Blazor Forum
1 answer
88 views

Hello,

Is there a way to make the ChartPlotArea in an alternating way?

Example: That every 2nd row is white

 

Thanks

Regards,
Nikolas

Nadezhda Tacheva
Telerik team
 answered on 04 Feb 2022
1 answer
104 views
Calendar days that fall outside the selected month never have the class k-state-disabled, even when those days are part of DisabledDates.
That means the user sees a normal (enabled) rendering, the pointer cursor, and can even click on the day, but nothing will happen.

It becomes more obvious, and annoying, when I want to color each disabled day red, and/or each allowed day green.
I cannot do this because the k-other-month days now cannot be colored red, and will be colored green, or not colored at all.
Svetoslav Dimitrov
Telerik team
 answered on 04 Feb 2022
1 answer
121 views

After upgrading to version 3 we now always get the clear filter button in our filter row
Before the upgrade this button would only show up after we typed something in the filter, now it is always there even when the filter is empty.

Is there a way to return to the old behaviour?

Kind Regards

Dimitri

Hristian Stefanov
Telerik team
 answered on 03 Feb 2022
1 answer
125 views

Hello, I have a rather long list of items (> 400) that users will multiselect from.

I was hoping the TelerikMultiSelect control would work for this, as it's the only Blazor control I've found so far that comes close to providing the required functionality.

However, it doesn't seem to be rendering properly, and it doesn't provide a way to scroll beyond one page worth of data.

First of all, it only draws the "drop down" for 8 items, even though the list renders far beyond the drop down, causing a poor visual rendition of the list.  This is just a snippet, as the list goes down beyond the bottom of the browser page:

The component should know how long to render the "drop down" based on the number of items in the list?  I tried setting a MinHeight, which increased the length of the list, but that only changed where the visual cutoff occurs, as it still cuts off.

Secondly, there's no way to scroll beyond one page worth.  When the control scrolls off the page in the browser, the list collapses, making it impossible to scroll even to the 'Bs'.

I think I can make this work by making use of filters and setting the MinHeight so that it extends beyond the controls below it, however this doesn't seem like the right way to do it.

I'm open to other ideas.

Thanks!

Marin Bratanov
Telerik team
 answered on 02 Feb 2022
1 answer
449 views

Hi,

I have a grid and upon editing, the user would need to be able to select only from certain items to some of the columns. For this, I would need to use a drop down list, listing the respective items.

Anyone knows how would I be able to incorporate drop down lists in the PopUp editor please?

Thanks!

Astig 

Marin Bratanov
Telerik team
 answered on 02 Feb 2022
1 answer
212 views

Hi,

I am trying to filter items from code and get this error:

cannot implicity convert type 'system.collections.generic.list<telerik.datasource.filterdescritptorbase>' to 'system.collections.generic.icollection<telerik.datasource.ifilterdescriptor>'>

Please see code below:

private async Task FilterByNameAndWritter()
        {
            List<FilterDescriptorBase> filterDescriptorBases = new List<FilterDescriptorBase>();
            filterDescriptorBases.Add(new FilterDescriptor() { Member = "Name", Operator = FilterOperator.Contains, Value = Name,    MemberType = typeof(string) });
            filterDescriptorBases.Add(new FilterDescriptor() { Member = "Writter", Operator = FilterOperator.Contains, Value = Writter, MemberType = typeof(string) });

            GridState<BookDto> gridState = new GridState<BookDto>();
            gridState.FilterDescriptors = filterDescriptorBases;  // the error comes from here

            await BookGrid.SetState(gridState);
        }

Marin Bratanov
Telerik team
 answered on 02 Feb 2022
1 answer
2.2K+ views
Hello, I'm trying to figure out a way to trigger an event to close when the Modal window looses focus from the user for example when they click outside of the box. I've looked through the documentation for the window component and although their are keyboard shortcuts such as "ESC" to close the window I couldn't find any events for closing the window based on lose of focus. Any suggestions or assistance with this issue would be great.
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 02 Feb 2022
2 answers
402 views

The component can bind to a DateTime variable.

The expected behaviour is that only the time part is updated, so that the actual date is preserved.

For instance if I want to want to let the user set a time for an appointment tomorrow, the appointment should not move to today because the time was changed

Dimo
Telerik team
 answered on 02 Feb 2022
1 answer
113 views

Unlink TelerikButton's, ToolbarButton's do not have a ThemeColor, so cannot change their colour like you could a normal button.

This is really an issue as of 3.0.0, not before I should note.

Nadezhda Tacheva
Telerik team
 answered on 02 Feb 2022
1 answer
543 views

Hi,

I've migrated my project to version 3.0 and I've issue with row virtualization.

Before migration virtualization was working fine.

  • Version 2.30


<TelerikGrid 

   Data=@_items
   TotalCount=@_browseDataManager.TotalCount 
   OnRead=@ReadItems
   PageSize="10"
   Height="100%"
   RowHeight="40"
   Pageable="false"
   Sortable="true" 
   ScrollMode="GridScrollMode.Virtual">
   <GridColumns>
        <GridColumn Field="@(nameof(UnitOfMeasureDTO.Code))" Title=@_localizer["Form_UnitOfMeasure_Code"] Width="100px" Locked="true" />
        <GridColumn Field="@(nameof(UnitOfMeasureDTO.ShortName))" Width="200px" Title=@_localizer["Form_UnitOfMeasure_ShortName"] Locked="true"/>
              <GridCommandColumn Width="150px" Context="UnitOfMeasureCommands">
              <GridCommandButton OnClick="@((args) => Edit(args.Item as UnitOfMeasureDTO))" Icon="edit"></GridCommandButton>
              <GridCommandButton OnClick="@((args) => Delete(args.Item as UnitOfMeasureDTO))" Icon="delete"></GridCommandButton>
              </GridCommandColumn>
       </GridColumns>
       <GridToolBar>
             <GridCommandButton OnClick="@(() => Create())" Icon="add">@_localizer["Title_Crud_Add"]</GridCommandButton>
       </GridToolBar>
</TelerikGrid>


protected async Task ReadItems(GridReadEventArgs args)
{
      _browseDataManager.CurrentSkip = args.Request.Skip;
      _browseDataManager.CurrentPageSize = args.Request.PageSize;
      await GetDataAsync();
      IsBusy = false;
}

scrolling version 2.30

  • Version 3.0

I've noticed that parameter TotalCount has removed from grid control.


<TelerikGrid 
   Data=@_items 
   OnRead=@ReadItems
   PageSize="10"
   Height="100%"
   RowHeight="40"
   Pageable="false"
   Sortable="true" 
   ScrollMode="GridScrollMode.Virtual">
<GridColumns>
           <GridColumn Field="@(nameof(UnitOfMeasureDTO.Code))" Title=@_localizer["Form_UnitOfMeasure_Code"] Width="100px" Locked="true" />
            <GridColumn Field="@(nameof(UnitOfMeasureDTO.ShortName))" Width="200px" Title=@_localizer["Form_UnitOfMeasure_ShortName"] Locked="true"/>
                               
        <GridCommandColumn Width="150px" Context="UnitOfMeasureCommands">
              <GridCommandButton OnClick="@((args) => Edit(args.Item as UnitOfMeasureDTO))" Icon="edit"/>                                    
             <GridCommandButton OnClick="@((args) => Delete(args.Item as UnitOfMeasureDTO))" Icon="delete"/>                                                            
        </GridColumns>
          <GridToolBar>
                                <GridCommandButton OnClick="@(() => Create())" Icon="add">@_localizer["Title_Crud_Add"]</GridCommandButton>
          </GridToolBar>

</TelerikGrid>

Error


Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Telerik.Blazor.Components.Grid.GridRowCollection`1[[Hyperion365.Web.Shared.DTOs.UnitOfMeasureDTO, Hyperion365.Web.Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]].BuildRenderTree(RenderTreeBuilder __builder)
   at Microsoft.AspNetCore.Components.ComponentBase.<.ctor>b__6_0(RenderTreeBuilder builder)
   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment, Exception& renderFragmentException)

Dimo
Telerik team
 updated answer on 02 Feb 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?