Pending Review
Last Updated: 19 Nov 2024 14:39 by Graham
Created by: Graham
Comments: 0
Category: UI for Blazor
Type: Feature Request
0

Hi,

Can I request that the Pdf Viewer:

- Load multiple pdf files on open. Maybe via an array of file names.

     - We use a different viewer due to this capability. For Human Resource files you need the ability to load numerous files into one viewer to show a complete
         document. The current one file option doesn't work for us.

- Display thumbnails of the loaded pages.
      - Thumbnail onclick to move to a specific page.

Regards,
Graham O'Riley

Pending Review
Last Updated: 18 Nov 2024 17:24 by Simi

Steps to reproduce:

  1. Insert a simple TelerikGrid on your page
  2. Add Columns with templates for each property
  3. Specify a Column Template

See https://blazorrepl.telerik.com/GyPvFMFr00zLEEdG00

Problem / Inconvenience

  • Context has to be converted/cast before access to the each property is possible
  • Grid columns are not generic which makes them hard to use sometimes
  • Fields have to be specified by name (may lead to wrong names after changing)

Solution / Feature Request

  • Provide new generic columns (to ensure no current implementations break)
  • Add [CascadingTypeParameter(nameof(TItem))] to the TelerikGrid
  • GridColumns automatically "inherit" the typeparam TItem

Idea from: Blazor QuickGrid

Benefits

  • GridColumns can be specified with Expression
  • Template context does not have to be cast anymore
  • Renaming properties affect expression or an error is display (property does not exist)
<GridColumn For="@(t => t.Name)">
        <Template>
                <div>
                    @item.Name
                </div>
        </Template>
</GridColumn>