Telerik Forums
UI for Blazor Forum
1 answer
4.6K+ views

I am looking for more help/demos on styling the Telerikgrid.  I would like to know:

How do I change the background color of rows?  '.k-grid tr.k-alt' changes the alternate row, but setting '.k-grid tr' isn't applied when ran.  When ran '.k-grid tr' is set to inherit. I can change the style within the master theme, but the master row background stays white, even though the debugger shows that it should be a different color.

How do I change the background color dependent on row data? For example, perhaps I want future transactions to be shades of blue.

How do I hide gridcommandbuttons based on the current row's data?

I have set the gridcommandbutton size to "small" to decrease the row height.  I have tried changing the font size using the styling below, but this only affects the display rows and not the new/edit row.  How do I change the size of the new/edit row? 


@page "/GeneralLedgerGridEntry"

<style>
    div.smallerFont,
    div.smallerFont .k-filtercell * 
    {
        font-size: 10px;
    }

    div.smallerFont .k-dropdown.k-header.k-dropdown-operator 
    {
        width: calc(8px + 2em) !important;
    }
    div.smallerFont .k-grid-edit-cell .k-grid-content input 
    {
        font-size: 10px;
        line-height: 0.05;
        padding: 0.25rem 0.25rem;
    }
    div.smallerFont .k-grid-container
    {
        font-size: 10px;
        line-height: 0.05;
        padding: 0.25rem 0.25rem;
    }
    div.smallerFont .k-grid  .k-grid-content .k-grid-content
    {
        font-size: 10px;
        line-height: 0.05;
        padding: 0.25rem 0.25rem;
    }
    .k-grid tr 
    {
        border-color: rgba(84, 122, 218, 0.39);
    }

    .k-grid tr.k-alt
    {
        background-color: rgba(84, 122, 218, 0.8);
    }
</style>

<div class="row">
    <div class="sm-col-4">
        <h3>Select Account:</h3>
    </div>
    <div class="sm-col-8">
        <TelerikComboBox 
                Data="@AccountList" 
                @bind-Value="chosenAccountID"
                ValueField="@nameof(VM_AccountsGridEntry.AccountID)"
                TextField="@nameof(VM_AccountsGridEntry.AccountDescription)"
                Id="cmbAccountSelect"
                OnChange="ChangeSelectionChoice">
        </TelerikComboBox>
    </div>
</div>

@if (ShowGrid)
{
    <EditForm EditContext="@_formDataContext"
        OnValidSubmit="@HandleValidSubmit"
        OnInvalidSubmit="@HandleInvalidSubmit">
        <h5 class="card-title">
            @FormTitle
        </h5>
        <div class="p-2">
            <DataAnnotationsValidator />
            <ValidationSummary />
        </div>
    </EditForm>

    <TelerikGrid Data=@Griddata Class="smallerFont"
                 EditMode="@GridEditMode.Inline"
                 Pageable="true"
                 OnCreate="@CreateItem"
                 OnUpdate="@UpdateItem"
                 OnDelete="@DeleteItem"
                RowHeight="1">
        <GridToolBar>
            <GridCommandButton Command="Add" Icon="add">Add Transaction</GridCommandButton>
        </GridToolBar>
        <GridColumns>
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.TransactionID)) Title="TransactionID" Visible="false" />
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.TransactionDate)) Editable=true width="15em" DisplayFormat="{0:dd MMM yyyy}" Title="Transaction Date" Visible="true" />
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.CheckNumber)) Editable=true Title="Check #" width="10em" />
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.PayeeDescription))  Title="Payee Description"  width="28em" Visible="true">
                <Template>
                    @{
                        ProductToEdit = context as VM_GeneralLedgerGridEntry ?? new VM_GeneralLedgerGridEntry();
                        <TelerikTextBox Size="small" Enabled="false"   @bind-Value="@ProductToEdit.PayeeDescription"/>


                        if ((ProductToEdit.CategoriesID == 1) && (ProductToEdit.PayeeID == 1))
                        {
                            //Hide gridcommandbuttons
                        }
                }
                </Template>
                <EditorTemplate>
                    @{
                        ProductToEdit = context as VM_GeneralLedgerGridEntry ?? new VM_GeneralLedgerGridEntry();

                                        <TelerikDropDownList Size="Small" Data="@PayeeList" @bind-Value="@ProductToEdit.PayeeID"
                                             Width="100%"
                                             TextField="PayeeDescription"
                                             ValueField="PayeeID"
                                             Filterable="true"
                                             FilterOperator="StringFilterOperator.Contains">
                                        </TelerikDropDownList>
                            <TelerikValidationMessage For="@(() => ProductToEdit.PayeeID)" />
                }
                </EditorTemplate>
            </GridColumn>
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.Memo))  Title="Memo" Visible="true" width="20em"/>
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.CategoryDisplayDescription)) Editable=true Title="Category" width="28em" Visible="true">
                <EditorTemplate>
                    @{
                        ProductToEdit = context as VM_GeneralLedgerGridEntry ?? new VM_GeneralLedgerGridEntry();

                                        <TelerikDropDownList Size="Small" Data="@CategoryList" @bind-Value="@ProductToEdit.CategoriesID"
                                             Width="100%"
                                             TextField="CategoryDisplayDescription"
                                             ValueField="CategoriesID"
                                             Filterable="true"
                                             FilterOperator="StringFilterOperator.Contains">
                                        </TelerikDropDownList>
                                        <TelerikValidationMessage Class="smallerFont" For="@(() => ProductToEdit.CategoriesID)" />
                    }
                </EditorTemplate>
            </GridColumn>
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.Payment)) Editable=true Title="Payment" DisplayFormat="{0:C}" width="15em" />
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.Deposit))  Title="Deposit" Visible="true" DisplayFormat="{0:C}" width="15em"/>
            <GridColumn Field=@(nameof(VM_GeneralLedgerGridEntry.Current_Balance))  Title="Account Balance" Editable="false" Visible="true" DisplayFormat="{0:C}" width="13em"/>
            <GridCommandColumn Width="15em">
                <GridCommandButton Id="btnEdit" Command="Edit" Icon="edit" Size="Small">Edit</GridCommandButton>
                <GridCommandButton Command="Delete" Icon="delete"  Size="Small">Delete</GridCommandButton>
                <GridCommandButton Command="Save" Icon="save"  Size="Small" ShowInEdit="true"  OnClick="@CreateItem">Save</GridCommandButton>                
                <GridCommandButton Command="Cancel" Icon="cancel" ShowInEdit="true"  Size="Small">Cancel</GridCommandButton>
            </GridCommandColumn>
        </GridColumns>
    </TelerikGrid>
    
}
else
{
    <LoadingAnimation LoadingText="Loading Data"></LoadingAnimation>
}

Dimo
Telerik team
 answered on 17 Aug 2022
2 answers
284 views

I am kind of new to Telerik and Blazor. I try to read all the documentation, but I still can not figure out how to solve this:

I only want to enter the InCell-Edit-Mode when I am doubleclicking on the specific cell.

Is that possible ?

Dimo
Telerik team
 answered on 16 Aug 2022
1 answer
410 views

Is there a way to put the stepper control in a read-only mode so the user can't click on the steps and trigger events?  I can disable it, but then it grays out the control.

Thanks in advance,

Eric
Top achievements
Rank 2
Iron
Iron
 answered on 15 Aug 2022
2 answers
867 views

Is it possible to hide the selected values on top of the control and continue showing the hint?? as it doesn't look so good on narrow control

Nadezhda Tacheva
Telerik team
 answered on 12 Aug 2022
1 answer
176 views

Hello,

I have a CalDav-Server as data storage for caldav-clients. One client frontend is the Telerik Scheduler.

I have created an event series with end date like this:

RecurrenceRule = "FREQ=DAILY;UNTIL=2022-08-13T23:59:59"

which works fine.

But a RecurrenceRule like this:

RecurrenceRule = "FREQ=DAILY;BYDAY=MO,TU,WE,TH,FR"

works on other clients (like Thunderbird), but in the Scheduler it produces the same result like:

RecurrenceRule = "FREQ=DAILY"

Did I something wrong with the rule or is there a problem with the Scheduler?

 

Nadezhda Tacheva
Telerik team
 answered on 12 Aug 2022
0 answers
397 views

Long story short:

The SelectedItemsChanged-Event is not firing when the Grid is in EditMode like "GridEditMode.Incell".

When the EditMode is "GridEditMode.None" it works just fine.

Is this a bug or a feature ?

 

Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
 asked on 11 Aug 2022
1 answer
253 views

My app has a long list of possible fields to filter on. The dropdown box for the fields exceed the height of the page so a scrollbar would be nice.

Can you point out the class styling that needs to be updated? I just added arbitrary number of fields to the Filter demo.

<TelerikFilter Value="@Value" ValueChanged="@OnValueChanged">
    <FilterFields>
        <FilterField Name="@nameof(OrderDetailDto.OrderId)" Type="typeof(int)" Label="Id" />
        <FilterField Name="@nameof(OrderDetailDto.Quantity)" Type="typeof(short)" />
        <FilterField Name="@nameof(OrderDetailDto.OrderFreight)" Type="@typeof(decimal)" Label="Freight" />
        <FilterField Name="@nameof(OrderDetailDto.OrderShipCountry)" Type="typeof(string)" Label="Country" />
        <FilterField Name="@nameof(OrderDetailDto.OrderShipName)" Type="typeof(string)" Label="Ship to" />
        <FilterField Name="@nameof(OrderDetailDto.OrderShipAddress)" Type="typeof(string)" Label="Ship Address" />
        @for (int i = 0; i < 25; i++)
        {
            <FilterField Name="@i.ToString()" Type = "typeof(string)" Label="@i.ToString()" />
        }
    </FilterFields>
</TelerikFilter>

 

Dimo
Telerik team
 updated answer on 11 Aug 2022
1 answer
321 views

Is there a way to have the column header template be optional?  Depending upon some values in my data, I might need to use a header template for a specific column, otherwise, I would like the have the default behavior.

I tried placing an if statement inside the <GridColumn/> element like this:

<GridColumn Field= "" FieldType="" >
     @if (_useHeaderTemplate)
     {
         <HeaderTemplate></HeaderTemplate>
     }
</GridColumn>

This results in a compile error of "Unrecognized child content inside component ...."

I then tried

<GridColumn Field= "" FieldType="" >
     <HeaderTemplate>
          @if (_useHeaderTemplate)
          {
            <div>Custom Header</div>
          }
     </HeaderTemplate>
</GridColumn>

This results in no text being rendered for the column header.

I'm trying to avoid (a) duplicating the <GridColumn/> configuration for both the  true and false evaluations of the if statement; (b) I don't want to take over the complete rendering and management of the grid column header.  I still want the framework to handle that.

Thanks

-marc

 

 

Dimo
Telerik team
 answered on 11 Aug 2022
0 answers
155 views

Hi,

I have:

 <TelerikEditor @bind-Value="@ViewModel.MyText" />

(MyText ist string :-) )

And get the following exception in Firefox, but not in Chrome:

blazor Loaded 13.64 MB resources
This application was built with linking (tree shaking) disabled. Published applications will be significantly smaller. blazor.webassembly.js:1:48472
Firefox kann keine Verbindung zu dem Server unter wss://localhost:58268/ aufbauen. aspnetcore-browser-refresh.js:234:24
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572
crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100]
      Unhandled exception rendering component: this.valueContainer is undefined
      setValue@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:1114771
      Yt@https://localhost:5001/_content/Telerik.UI.for.Blazor/js/telerik-blazor.js:6:36477
      beginInvokeJSFromDotNet/s<@https://localhost:5001/_framework/blazor.webassembly.js:1:3332
      beginInvokeJSFromDotNet@https://localhost:5001/_framework/blazor.webassembly.js:1:3306
      St@https://localhost:5001/_framework/blazor.webassembly.js:1:59853
      _mono_wasm_invoke_js_blazor@https://localhost:5001/_framework/dotnet.6.0.6.lrf372qj4b.js:1:195300
      @:wasm-function[1]:0x0
      @:wasm-function[219]:0x1a490
      @:wasm-function[167]:0xce5e
      @:wasm-function[166]:0xbd71
      @:wasm-function[2812]:0xabf01
      @:wasm-function[1616]:0x6fcc2
      @:wasm-function[1620]:0x7032f
      @:wasm-function[118]:0x969d
   …
blazor.webassembly.js:1:35572

The editor work as excepted. But how I get rid of the exception? :-)

Holger
Top achievements
Rank 1
Iron
Iron
 asked on 11 Aug 2022
1 answer
382 views

Hi, Is it possible disable totalcount if pagable is true? or  localizate totalcount?  1- .. OF .. ITEMS

I don't want show total items in datasource becasue I have more than 100000 rows and it's too slow.

 

Thanks for answer

Peter

Dimo
Telerik team
 answered on 10 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?