Telerik Forums
UI for Blazor Forum
5 answers
86 views

My project is a windows service that hosts a blazor web site and api.  When deployed using an MSI, Telerik says it is not licensed.  What must be done with the license file to ensure it is registered?

            int portNumber =
                builder.Configuration.GetValue<int>(
                    "Kestrel:Startup:Port");

            builder.Host.UseWindowsService();
            builder.WebHost.UseKestrel(options =>
            {
                options.Listen(IPAddress.Loopback, portNumber);
            });

Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
 answered on 05 May 2026
1 answer
20 views

Given this markup:

 

<TelerikGrid Data="@PrognoseData" EditMode="GridEditMode.Incell" OnUpdate="@OnGridUpdate">
	<GridColumns>
		<GridColumn Title="Prijs/eenh." Field="PrognoseKostenModel.EenheidId" Width="120px">
			<EditorTemplate>
      @{
        var model = (PrognoseKostenModel)context;
        <TelerikDropDownList Data="@_eenheden" 
@bind-Value="@model.EenheidId"
TextField="@nameof(PrijsEenheidDto.Sign)"
ValueField="@nameof(PrijsEenheidDto.Id)" >
<DropDownListSettings> <DropDownListPopupSettings Height="auto"/> </DropDownListSettings> </TelerikDropDownList> } </EditorTemplate> <Template> @{ var model = (PrognoseKostenModel)context; } <span>@model.Eenheid</span> </Template> </GridColumn> </GridColumns> </TelerikGrid>

So eg:

1. the initial value is "vkm2"
2. User selects "post" in dropdown
3. Dropdown is automatically closed, but value in grid remains "vkm2"
4. User clicks in different field in same row: OnGridUpdate is fired and value in grid changes to "post"

 

Any idea how to get OnGridUpdate immediately after the selection in the dropdown? 

Dimo
Telerik team
 answered on 17 Apr 2026
1 answer
25 views

On a TelerikGrid, I allow users to filter, resize, reorder, hide and lock coumns.  I also have a button that lets them reset the grid state to the default settings.

This all works great except that the locked property of a grid column cannot be cleared under any circumstances that I can find.  When I set state to null using SetStateAsync(null), all the user customizations are reset back to defaults and the grid is re-bouund, but the user-locked columns stay locked.  Even if I trigger another manual rebind it does not update the locked status.  I have to do a full page refresh to get back to the normal state.

I have a demonstration of this behavior here:

https://blazorrepl.telerik.com/mUYyvRPU52qGBUkY21

To reproduce:

  1. using the above Repl, change a couple of columns settings like width, order, sort or filter
  2. using the drop down menu on the first column, set the state to locked
  3. click on the Reset State button
  4. notice that all settings are reset to original, except for the locked column

One thing I have done with some success is instead of setting GridState to null, I create a new empty grid state , create a ColumnState for every column and set the Locked property to false.  That will unlock the column.  However,  the default state of some of our colums is locked=true and  I don't have a way of programmatically determining which columns should be locked by default, so this method unlocks all columns, which is not what I want.

Is there a reason that the locked status is not reset with the other settings and is there any way to force them to reset? Alternatively, is there any way to get the default column status out of the grid at runtime?

    Dimo
    Telerik team
     answered on 15 Apr 2026
    1 answer
    20 views

    I'm trying to save the page number and page size of a Grid to be later restored if the page with that grid is loaded again, and I have 2 issues with the 'All' size.

    My Sizes list is

           private List<int?> PageSizes { get; set; } = [50, 100, 250, null];

    If my grid has 76 rows and I select 'All' from the pager dropdown, the PageSize property is set to 76, but the dropdown shows 'All'.
    If I then add a row to the grid, it is still showing 'All', but with page 1 of 2, where page 1 contains 76 items and page 2 contains 1 item.
    Choosing 'All' again shows 1 page with 77 items.
    That is my first issue, 'All' isn't all, but the current number of items

    The second issue is when I set the Page and Pagesize with the values I saved earlier, the page size dropdown is showing '76', not 'All'. (76 isn't even a member of the PageSizes list. ). What value do I have set the PageSize to to force the dropdown to show 'All'?

    Kind regards,

    Kees Alderliesten

     

    Hristian Stefanov
    Telerik team
     answered on 15 Apr 2026
    1 answer
    24 views

    This is version 12.3.0

    An application in production grew in memory consumption to several gigabytes and I've pinpointed the problem to the grid. The data of the grid is being updated frequently and each time the data of the grid is being updated with a new list, the memory goes up with hundreds of megabyte. Even when the page is reloaded with F5, the memory is not released. 

    I ran some memory profiling in visual studio 2022 but could not find anything useful (I'm not good at profiling), except that the object that has the most diff between snapshots is SharedArrayPool+Partition<Byte>

    In the end I had to force a Garbage Collection before setting the Data prop of the grid, which helps.

    Perhaps there is a better (or a right) way to update the data of the grid? I've tried so many things now :D

    Dimo
    Telerik team
     answered on 14 Apr 2026
    1 answer
    39 views

    I have a situation where I need the:

    EditMode="GridEditMode.Incell"

    but I also need to have an event trigger when the row is updated:

    EditMode="GridEditMode.Inline"

    There is no mode that supports both, what are my options?

    I need to be able to trigger some action on a Cell by Cell update basis, but also need to trigger a specific action on a Row update.

    Thoughts?

    Robl

    Dimo
    Telerik team
     answered on 06 Apr 2026
    1 answer
    25 views

    Hello,

    I have a Telerik Grid where each row contains a TelerikFileSelect component. In the OnSelect method how can I determine the row of the component selecting the file.

    Thanks,

    Dave

    Dimo
    Telerik team
     answered on 17 Mar 2026
    1 answer
    32 views

    If I place a breakpoint in the OnUpdate handler (async) in a grid, spend about 20 seconds inspecting values (no code changes, just looking at values) and then "continue" I get the following:

    The grid is now completely unresponsive ... it doesn't continue execution and I have to basically stop execution from VS 2026.  Having to return a test session every time I debug is INCREDIBLY time consuming ... there must be a better way to debug?

     

    Dimo
    Telerik team
     answered on 09 Mar 2026
    1 answer
    43 views

    Objective: show different color (say Green Text) for any grid cell the user has modified in "real-time" (as the user navigates cell to cell in the grid).

    I can get the field name from the OnUpdate event:

    var nameOfField = args.Field;

    But this isn't of much use in that event handler.  I set the model property "WasEdited" to true:

    item.WasEdited = true;
     

    The OnCellRender fires but for every column that is editable ... so rather than having a single cell's text color change ALL cells set as Editable will have their color changed.  So I created a unique OnCellRender handler for each column/field/cell that can be edited (Editable=true):

        void OnFirstIncrementDaysNextCellRender(GridCellRenderEventArgs args)
        {
            RateCyItem item = (RateCyItem)args.Item;
            if (item.HasFutureRate)
            {
                args.Class = "futureRate";
            }
    
            if (item.WasEdited)
            {
                args.Class = "editedCell";
                item.WasEdited = false;
            }
    
        }
    
        void OnFirstIncrementRateNextCellRender(GridCellRenderEventArgs args)
        {
            RateCyItem item = (RateCyItem)args.Item;
            if (item.HasFutureRate)
            {
                args.Class = "futureRate";
            }
    
            if (item.WasEdited)
            {
                args.Class = "editedCell";
                item.WasEdited = false;
            }
    
        }
    
        void OnSecondIncrementRateNextCellRender(GridCellRenderEventArgs args)
        {
            RateCyItem item = (RateCyItem)args.Item;
            if (item.HasFutureRate)
            {
                args.Class = "futureRate";
            }
    
            if (item.WasEdited)
            {
                args.Class = "editedCell";
                item.WasEdited = false;
            }
    
        }

    However, this doesn't work?  I trace thru the code and single per field/colum onCellRender is fired once (an only once) as expected for the appropriate event.   However, the cell text color doesn't change?  If I remove item.WasEdited = false (basically don't reset model was edited state).

        void OnFirstIncrementDaysNextCellRender(GridCellRenderEventArgs args)
        {
            RateCyItem item = (RateCyItem)args.Item;
            if (item.HasFutureRate)
            {
                args.Class = "futureRate";
            }
    
            if (item.WasEdited)
            {
                args.Class = "editedCell";
            }
    
        }
    
        void OnFirstIncrementRateNextCellRender(GridCellRenderEventArgs args)
        {
            RateCyItem item = (RateCyItem)args.Item;
            if (item.HasFutureRate)
            {
                args.Class = "futureRate";
            }
    
            if (item.WasEdited)
            {
                args.Class = "editedCell";
            }
    
        }
    
        void OnSecondIncrementRateNextCellRender(GridCellRenderEventArgs args)
        {
            RateCyItem item = (RateCyItem)args.Item;
            if (item.HasFutureRate)
            {
                args.Class = "futureRate";
            }
    
            if (item.WasEdited)
            {
                args.Class = "editedCell";
            }
    
        }
    

    Then ALL 3 cells render green text, rather than just the one cell ... this is not what I want.  I don't understand why this is happening since the other OnCellRender events are NOT being called (verified with breakpoint), just the single OnCellRender event that should update the cell color for just that one cell (NOT all cells).

    It looks to me like there is some issue with Grid cell render where setting the args.Class in a OnCellRender gets applied to ALL editable cells rather than the single cell?

    Is this a bug or am I missing something?

    Rob.

    Dimo
    Telerik team
     answered on 16 Feb 2026
    1 answer
    51 views

    I have a simple grid with a list object, where one property is a date and the other a string. The grid is sorted on dates. I want to insert a custom <tr> row before the "normal" row if the month changes, containing a single <td> cell with the year and month.

    I've looked at the <RowTemplate> but if I try to insert a <tr> in there, the whole table is broken because the rowtemplate should not (as I understand it) not contain a tr but only td cells.

    Anyone?

    Dimo
    Telerik team
     answered on 09 Feb 2026
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Chester
    Top achievements
    Rank 1
    Iron
    Simon
    Top achievements
    Rank 1
    Iron
    Douglas
    Top achievements
    Rank 2
    Iron
    Iron
    SUNIL
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Top users last month
    Chester
    Top achievements
    Rank 1
    Iron
    Simon
    Top achievements
    Rank 1
    Iron
    Douglas
    Top achievements
    Rank 2
    Iron
    Iron
    SUNIL
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Marco
    Top achievements
    Rank 3
    Iron
    Iron
    Iron
    Want to show your ninja superpower to fellow developers?
    Want to show your ninja superpower to fellow developers?