Telerik Forums
UI for Blazor Forum
1 answer
133 views

Hi everyone,

Is there a way to edit inline a grid if I bind a datatable to it? because now it doesn't seam to work.

Thank you.

Cipri

Ciprian Daniel
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 27 May 2021
1 answer
1.4K+ views
I love the Masked TextBox control. We are using it for a a social security field with a mask of xxx-xx-xxxx. But we also need to have the value shown as ***-**-**** so that ssns are not reveled. Is this possible? I know we can use the standard TextBox and set it to password which hides the input, but we need to mask it somehow to be an ssn. Any Ideas on this?
Dimo
Telerik team
 answered on 27 May 2021
1 answer
819 views

I know this was asked before but I cannot find it, however, I have a DatePicker tied to a nullable Datetime.

When the datetime is null, the datepicker shows "M/d/yyyy" in the textbox portion of the control.  Is there any way I can get rid of than and just show an empty textbox?

I am not putting anything in the Format of the DatePicker control so I am guessing that "M/d/yyyy" is the default format but I don't what this to display on the screen.

Thanks.

Marin Bratanov
Telerik team
 answered on 27 May 2021
0 answers
875 views

Hello,

I'm using the Drawer component as a nav bar based on your example in github and it works great except for one thing. One of my pages (components) can accept optional URL parameters, i.e. it has two @page directives. If I supply the URL parameters in the address bar I get an object reference error. I tried adding the parameters to the URL when building the DrawerItem the same way they are in the @page directive but that doesn't work. Can you please show me how to make this work? Thank you.

Doug
Top achievements
Rank 1
Iron
Iron
Veteran
 asked on 26 May 2021
1 answer
507 views

I have implemented a TelerikCheckBoxListFilter as shown in: https://docs.telerik.com/blazor-ui/components/grid/filter/checkboxlist#custom-data

My code looks like this.
<FilterMenuTemplate Context="context">
    <TelerikCheckBoxListFilter Data="@ManufacturersList"
                               Field="@(nameof(ManufacturerCodeFilterOption.Make))"
                               @bind-FilterDescriptor="@context.FilterDescriptor">
    </TelerikCheckBoxListFilter>
</FilterMenuTemplate>

The TelerikCheckBoxListFilter renders as expected but when I try to apply selected items to filter the data, it builds those individual selected items with an "AND" clause.  Is it possible to change the LogicalOperator for the FilterDescriptor it uses to use "OR" clauses between the selected items?

 

 

Marin Bratanov
Telerik team
 answered on 26 May 2021
1 answer
408 views

Hi there,

I've created a grid with columns that can be added dynamically, but I'm unable to use incell editing in the dynamically created columns. 

QuestionData is a Dictionary<string, object>

Source below: 

<TelerikGrid Data=@QuestionGroup
             ScrollMode="@GridScrollMode.Scrollable"
             Height="35vh"
             EditMode="@GridEditMode.Incell"
             Resizable="true"
             @ref="gridref"
             Reorderable="true"
             RowDraggable="true"
             OnRowDrop="@((GridRowDropEventArgs<EvaluateQuestion> args) => OnRowDropHandler(args))"
             OnCreate="@CreateHandlerAsync">
    <GridSettings>
        <GridRowDraggableSettings DragClueField="@nameof(EvaluateQuestion.Title)"></GridRowDraggableSettings>
    </GridSettings>
    <GridToolBar>
        <GridCommandButton Command="Add">New Question</GridCommandButton>
        <TelerikButton OnClick="NewColumn">New Column</TelerikButton>
        <TelerikButton OnClick="RemoveGrid">Remove Grid</TelerikButton>
    </GridToolBar>

    <GridColumns>
        <GridColumn Field="Title">

        </GridColumn>

        <GridColumn Field="FullQuestion">

        </GridColumn>

        @foreach (string entry in Template.ColumnHeadings)
        {
            <GridColumn Title="@entry">
                <Template>
                    @{
                        var c = context as EvaluateQuestion;
                        if (c.QuestionData.TryGetValue(entry, out var check))
                        {
                            @c.QuestionData.Where(v => v.Key == entry).FirstOrDefault().Value
                        }
                        else
                        {
                            c.QuestionData.Add(entry, new string("test"));
                        }
                    }
                </Template>
                <EditorTemplate>

                </EditorTemplate>
            </GridColumn>
        }
    </GridColumns>

</TelerikGrid>


public void NewColumn() {
        Template.ColumnHeadings.Add(new string("Placeholder"));
        StateHasChanged();
    }



Hristian Stefanov
Telerik team
 answered on 26 May 2021
3 answers
1.6K+ views

We wanted to see if the Telerik controls like the Masked Input performed any faster when running in release mode as opposed to debug mode of Visual Studio 2019.

 

But when I switch to release mode and tried to build the app I got the following three errors which do not occur in debug mode. Can you help me?

 

Severity Code Description Project File Line Suppression State
Error CS0006 Metadata file 'C:\Projects\VSWorkspace\BlazerDemo\Client\bin\Release\netstandard2.1\BlazorDemo.Client.dll' could not be found BlazorDemo.Server C:\Projects\VSWorkspace\BlazerDemo\Server\CSC 1 Active

Severity Code Description Project File Line Suppression State
Error Unhandled exception. Mono.Linker.LoadException: Error while processing references of 'Telerik.Blazor, Version=2.24.0.0, Culture=neutral, PublicKeyToken=20b4b0547069c4f8' BlazorDemo.Client C:\Users\david\.nuget\packages\microsoft.aspnetcore.components.webassembly.build\3.2.1\targets\Blazor.MonoRuntime.targets 326

 

Severity Code Description Project File Line Suppression State
Error ILLink failed with exit code -532462766. BlazorDemo.Client C:\Users\david\.nuget\packages\microsoft.aspnetcore.components.webassembly.build\3.2.1\targets\Blazor.MonoRuntime.targets 326
David
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 26 May 2021
1 answer
347 views

Hi

The documentation reads:

  • Fields - a list of string that denotes the fields names that the grid should search in. By default, the grid looks in all string fields in its currently visible columns, and you can define a subset of that.

Question 1:

Why only string fields? In the Netherlands we have a numeric field which is unique for all persons living in the netherlands, many customers search for people using this number, So now i have to make this fields a string to let the user search on it?

 

Question 2:

Lets say i have 2000 records, only 140 records are fetched so far, how is the search working, only on these 140 records?

I can imagine that my rest server is called to let me make a query with a where clause based on the entered search value.

 

Eric

 

 

 

 

 

Marin Bratanov
Telerik team
 answered on 24 May 2021
1 answer
1.5K+ views

I have a grid bound to a List<> of data.

I have a button in the row to remove the row.

I am not using "OnRead".

If I would like to delete the row (and send the change to the backend), how do I remove the row from the grid without having to refresh all the data?

 

I have tried removing it from the List<> and then calling StateHasChanged, but it has no effect on the grid.  The record is removed in the backend.

 

Please advise.

Marin Bratanov
Telerik team
 answered on 24 May 2021
2 answers
363 views

Just that.
Is there an "out of the box" grouping functionality in TreeList component?? 

If it is not possible, do you have any suggestions on how I can accomplish this?

Regards,

 
Blazorist
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 21 May 2021
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?