Planned
Last Updated: 06 Sep 2024 12:29 by ADMIN
Scheduled for 2024 Q4 (Nov)
Created by: MichaƂ
Comments: 3
Category: UI for Blazor
Type: Bug Report
14

When filtering or editing a Grid with enum data, the Name property of their Display parameter is respected.

However, in the initial view mode of the Grid the Name property is not applied and the enum values are rendered regardless of whether or not their Display parameter has a Name property defined.

 

==========

ADMIN EDIT

==========

In the meantime, a workaround you might try is to create a custom method to check whether Display attribute is defined and get and display its Name property, otherwise display the Enum's member name.

You can then use a Template for the column that uses enum data, cast its context to the model you are using and invoke the method on the field containing the enum. The sample below demonstrates how you can achieve this.

@using System.ComponentModel.DataAnnotations
@using System.Reflection

<TelerikGrid Data=@MyData EditMode="@GridEditMode.Inline" Pageable="true" Height="500px"
             OnUpdate="@UpdateHandler" FilterMode="@GridFilterMode.FilterRow">
    <GridColumns>
        <GridColumn Field=@nameof(SampleData.ID) Editable="false" Title="ID" />
        <GridColumn Field=@nameof(SampleData.Name) Title="Name" />
        <GridColumn Field=@nameof(SampleData.Role) Title="Position">       
            <Template>
                @{
                    var currentEmployee = context as SampleData;
                    var currentRole = GetDisplayName(currentEmployee.Role);                        
                }

                @currentRole
            </Template>
        </GridColumn>
        <GridCommandColumn>
            <GridCommandButton Command="Save" Icon="save" ShowInEdit="true">Update</GridCommandButton>
            <GridCommandButton Command="Edit" Icon="edit">Edit</GridCommandButton>
        </GridCommandColumn>
    </GridColumns>
</TelerikGrid>

@code {
    //custom method to check whether Display attribute is defined and get and display its Name property, otherwise display the Enum's member name
    public string GetDisplayName(Enum val)
    {
        return val.GetType()
                  .GetMember(val.ToString())
                  .FirstOrDefault()
                  ?.GetCustomAttribute<DisplayAttribute>(false)
                  ?.Name
                  ?? val.ToString();
    }


    public void UpdateHandler(GridCommandEventArgs args)
    {
        SampleData item = (SampleData)args.Item;

        //update the view-model
        var index = MyData.FindIndex(i => i.ID == item.ID);
        if (index != -1)
        {
            MyData[index] = item;
        }

        //perform actual data source operations here
    }

    //model and dummy data generation
    public class SampleData
    {
        public int ID { get; set; }
        public string Name { get; set; }
        public Role Role { get; set; }
    }

    public enum Role
    {
        [Display(Name = "Manager")]
        ManagerRole,
        [Display(Name = "Employee")]
        EmployeeRole,
        [Display(Name = "Contractor")]
        ContractorRole
    }

    public List<SampleData> MyData { get; set; }

    protected override void OnInitialized()
    {
        MyData = new List<SampleData>();

        for (int i = 0; i < 50; i++)
        {
            MyData.Add(new SampleData()
            {
                ID = i,
                Name = "name " + i,
                Role = (Role)(i % 3) // just some sample to populate initial values for the enum
            });
        }
    }
}

Planned
Last Updated: 27 Aug 2024 11:44 by ADMIN
Scheduled for 2024 Q4 (Nov)
Created by: Neil
Comments: 6
Category: Scheduler
Type: Feature Request
18

I want to hide the 'All Day slot'  - I don't want to offer this functionality.

At the moment, you could try CSS like this, but ideally this would be a parameter (maybe on the view):

 

        .no-allday .k-scheduler-head .k-scheduler-group:last-child{
            display:none;
        }

    <div class="no-allday">
        <TelerikScheduler Data="@Appointments" @bind-Date="@StartDate" @bind-View="@CurrView" Height="600px" Width="800px">
            <SchedulerViews>
                <SchedulerDayView StartTime="@DayStart" />
                <SchedulerWeekView StartTime="@DayStart" />
                <SchedulerMultiDayView StartTime="@DayStart" NumberOfDays="10" />
            </SchedulerViews>
        </TelerikScheduler>
    </div>

Planned
Last Updated: 23 Aug 2024 11:25 by ADMIN
Scheduled for 2024 Q3 (7.08.2024)
Created by: Heinie
Comments: 3
Category: Installer and VS Extensions
Type: Feature Request
2

I have recently downloaded the latest Telerik.UI for blazor 5.0.1 commercial and I tried converting a dotnet 8 project to a telerik project using the context menu but the wizard says it can't be converted.

Planned
Last Updated: 23 Aug 2024 07:08 by ADMIN
Scheduled for 2024 Q4 (Nov)

The "Edit Recurring Appointment" modal is only partially visible on mobile which prevents the user from proper editing.

Planned
Last Updated: 20 Aug 2024 16:57 by ADMIN
Scheduled for 2024 Q4 (Nov)
Created by: Peter
Comments: 0
Category: Grid
Type: Feature Request
7

Feature Request

Currently, when a grid is rendered with 500 rows in a WASM application and expand/collapse action is initiated, it takes a few seconds to finish grouping and rendering. 

Steps to reproduce

1. Create a grid in WASM app.
2. Add 500 rows.
3. Do not enable paging.
4. Group by any field and initiate expand/collapse.
5. All rows are re-rendered which leads to a few seconds delay.

 

 

Planned
Last Updated: 06 Aug 2024 10:54 by ADMIN
Scheduled for 2024 Q4 (Nov)

By design, the filter should be cleared when the user blurs the component. The filter is currently persisted and this is not correct.

Reproducible in the filtering demo.

Planned
Last Updated: 06 Aug 2024 10:00 by ADMIN
Scheduled for 2024 Q4 (Nov)
This issue is for all date inputs when having a higher latency (physical distance between the server and the end-user) the value of the date inputs is not correct. 
Planned
Last Updated: 06 Aug 2024 10:00 by ADMIN
Scheduled for 2024 Q4 (Nov)
In our serverside blazor application we use the Telerik's DateTimePicker. When we type values in to the date time picker control, it jumps to the next section or to the end before completing the currect section. We use the format 'yyyy-MM-dd HH:mm'

It does not happen always and I think it is happenning when the internet connection is slow and it shows a Javascript error as well (screenshots below)
Planned
Last Updated: 25 Jun 2024 11:07 by ADMIN
Scheduled for 2024 Q4 (13.11.2024)

Steps To Reproduce

  1. Install a Telerik VS extension in Visual Studio 2019/2022 on a machine with high DPI scaling (more than 150%)
  2. Try to create a new Telerik application

Expected result:

The Create New Project wizard (or any other used Telerik wizard) is shown and usable as expected.

Actual result:

The Create New Project wizard is hidden or inaccessible and the project creation is blocked.

Planned
Last Updated: 27 Feb 2024 11:45 by ADMIN
Scheduled for 2024 Q2 (15.05.2024)
When only all.css stylesheet is referenced in the masterpage:
  • the wizard doesn't detect the masterpage at all because it searches for swatches theme reference
  • if the user leaves commented swatches theme reference the wizard will modify the all.css reference incorrectly
Planned
Last Updated: 30 Jan 2024 02:47 by Greg
Scheduled for 2023.1
Created by: Constantinos Petridis
Comments: 1
Category: ToolBar
Type: Feature Request
7

Where there is a spacer inside the ToolBar or when there are no items that should be hidden anymore, the overflow anchor overlay with the other items.

 

#1563693

Planned
Last Updated: 02 Nov 2023 19:25 by ADMIN
In a template column scenario, when the cell contains focusable elements, pressing Enter doesn't move focus to the element in the cell.
Planned
Last Updated: 30 Oct 2023 07:13 by ADMIN
Scheduled for 5.0.0 (15 Nov 2023) (R1 PI1)

The Tooltip Template of the Gantt behaves strangely in a WASM application. It flickers and does not display any information. Reproduction in REPL which is essentially a WASM app: https://blazorrepl.telerik.com/QQFEapOg56MCIhIK48.

The issue is not reproducible in a server-side application using the same code.

Planned
Last Updated: 27 Jan 2022 07:38 by ADMIN
Created by: Jerdobi
Comments: 1
Category: UI for Blazor
Type: Bug Report
1

Accessibility Insights for Web extension is flagging the k-grid-filter icon in the Grid Header labels.  Need workaround and remove the aria-label and replace with aria-role per guidance.  Under each of the red explanation marks is the filter icon on the column.  Running the Accessibility Insights for Web tool by Microsoft using Edge browser flags this code.

Please provide temporary workaround and permanent fix.

Blazor-UI 2.30 Release.