Telerik Forums
UI for Blazor Forum
2 answers
48 views

I have a grid with in-cell editing.  Only some of the columns are editable. 

The grid is grouped by two columns, which I default in OnGridStateInit.  The two aggregate columns are NOT editable.

Everything works just fine, but as I click around through the editable columns, the page gets slower and slower and slower over time.  Specifically, clicking away from an editable column causes a refresh (or something) that takes increasing longer and longer.  A spinny loader appears.

This behavior immediately goes away when the grouped columns are removed by ungrouping at the top of the grid (no code update).

Is this a bug or am I doing something wrong?

I tried changing from in-cell editing to in-row editing and have the same problem.

A workaround is to ungroup for editing, and then regroup for display purposes, but I'm new and want to verify I'm not doing something wrong.

Dimo
Telerik team
 answered on 19 Mar 2025
1 answer
49 views

My bosses like the idea of being able to add the annotations on the PDF Viewer.  I pull my files from Azure and they want to mark them up.  So, I'll need to save the updated copy back to Azure.  How does this work?  Do you have an example of how to keep the changes?  Do the annotations become part of the PDF File or must I save those off separately in order to reapply them when I view?  Or, can I just take the modified bytes and upload them as a new copy of the original file?

Nadezhda Tacheva
Telerik team
 answered on 19 Mar 2025
1 answer
65 views

I am new to using the UI for Blazor products.  I added the code from https://www.telerik.com/blazor-ui/documentation/components/tabstrip/overview

The control renders but I am not able to select the 3d tab, the control remains on the first tab.  Any help on why would be appreciated.

Here is the code from the razor page.

@page "/Reports/report-main"

@using Telerik.Reporting;
@using Telerik.Blazor.Components;

<h3>Report Main</h3>

<!-- Tabs -->
<div>
    <TelerikTabStrip>
        <TabStripTab Title="First">
            First tab content.
        </TabStripTab>
        <TabStripTab Title="Second" Disabled="true">
            Second tab content. This tab is disabled and you cannot select it.
        </TabStripTab>
        <TabStripTab Title="Third">
            Third tab content.
        </TabStripTab>
    </TelerikTabStrip>
</div>

@code {

}
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
 answered on 16 Mar 2025
1 answer
42 views

Hi,

 is there any way, how to "debounce" when you scroll down for example by 1px to NOT CALL onread when data is already in current dataset?

Why? Because you are scrolling to item, which is already loaded(just presented invisible down in html markup).

expected:

- if you scroll to "end of the current page dataset" then it should read next one - call OnRead.

Simple calc - example:
PageSize = 100 - just for testing
ItemHeight= 400px  - HUGE ONE, to get the idea
GridHeight = 600px
items on "page/screen" ~ 2, items loaded: 100

So you at least have inmemory 45 "pages" of data. So calling OnRead is not necessary.

Here is example to observere how many times OnRead is called So if it will be sql/external/network data paging, it hits DB +api every single pixel of move.

https://blazorrepl.telerik.com/QTadFJPJ215VflwP28

 

if someone thinks about caching it to the local variable, dont do that :)  = if even so, is there a way how to get it from <TelerikGrid @Ref=ME  .../> @Me.Data ? If not, so caching this way is bad idea. 

Thanks for the tips.

Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
 answered on 16 Mar 2025
2 answers
62 views

Hello everyone,
Is there a way to get access to the group names at the cell level of a PivotGrid?

The PivotGridDataCellTemplateContext has internal IGroup properties that would fit my need, but those are internals.
Is there of way to access/stored them or any work arounds?

My goal would be to generate a cell "onclick=@() =>MyMethod(Group1, Group2)" event that would pass those informations to a method.
Ultimatly, the method would filter a List/Grid under the PivotGrid.

 

Thank you very much

Jean-François
Top achievements
Rank 1
Iron
 answered on 13 Mar 2025
1 answer
64 views

Hi!

I'm doing a migration from a WPF application to Blazor and I would like to know if there is a way to make a column of a grid reusable. Example:

In WPF you can have a resource dictionary and reference it from the component in question to represent data with the same UI, in Blazor I think this is not possible, the only thing I can think of is to componentize the columns but I'm not sure if this is the right way to do it. Is there any contemplated or recommended way?

Thanks in advance!

Telerik WPF - CellTemplate

Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
 answered on 13 Mar 2025
1 answer
71 views

I have a Scheduler on a dialog with a radio button group. Selecting radio button displays a number of appointments in the calendar and the Scheduler allows the user to click one to select it. When they select another radio button, I have it retrieving a new list of appointments and they're rendered properly but the same slot is still selected. If that slot isn't in the list, it selects a different (I think based on the previously selected appointment's index).

How can I clear the selected appointment index completely?

Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
 updated answer on 12 Mar 2025
2 answers
42 views

Is there a way to add a stylesheet to the prosemirror in the iframe?

I want to add a plugin for a Placeholder eg:

https://gist.github.com/amk221/1f9657e92e003a3725aaa4cf86a07cc0

 

Also: is there a way to let the user change the height of the TelerikEditor, just like with a text area (bottom right corner)?

Robert
Top achievements
Rank 1
Iron
Iron
 answered on 11 Mar 2025
1 answer
56 views

I'm getting a JavaScript error when I open a TelerikDialog that has a TelerikScheduler in it. The error is:

telerik-blazor.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'filter')
    at m.handleOverflowingItems (telerik-blazor.js:1:2451674)
    at e.ResizeService.onResize [as resizeCallback] (telerik-blazor.js:1:2446927)
    at ResizeObserver.onResize (telerik-blazor.js:1:2228100)
    at telerik-blazor.js:1:2239508

I have a reproduction here, specifically in this page. The error appears when you click the button and the dialog opens. If I remove the Scheduler, the error goes away. The configuration for the Scheduler was taken from the overview page.

This is happening with Telerik Blazor 8.0. I checked with version 6.2 and it didn't show an error in that case.

Dimo
Telerik team
 answered on 10 Mar 2025
1 answer
45 views

Code


        <FormItem Field="@nameof(NewRecordClaim.EvidenceLink)"  Id="EvId" LabelText="Evidence Link" Enabled="false">
                    <Template>
                        <label for="EvidenceLink" class="k-label k-form-label">Link:</label>
                        <div class="k-form-field-wrap">
                            <a target="_blank" href="@MyModel.EvidenceLink">View evidence at @MyModel.EvidenceLink</a>
                        </div>
                    </Template>
                </FormItem>

MyModel.EvidenceLink is for example


https://athsvic.resultshub.com.au

 

View evidence at

https://athsvic.resultshub.com.au  <-- Should get this

Get this (unclickable):

 

Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
 updated answer on 08 Mar 2025
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?