Telerik Forums
UI for Blazor Forum
1 answer
764 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
792 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
416 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
361 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.5K+ 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
309 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.3K+ 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
271 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
1 answer
2.1K+ views

Hello, a REALLY basic question here, as I don't work on the UI tier very often.  I am looking for a little help getting started with Less-Based themes.  I'm reading https://docs.telerik.com/kendo-ui/styles-and-layout/appearance-styling.

How do I add the CSS files (kendo.common.css  and kendo.[theme].css) to my Visual Studio 2019 project?  I.e., where are they installed on my Windows 10 machine so I can reference them?  Or, is there a URL to Telerik that I have to configure somewhere in my project?

I am also going to throw out this anticipatory question - Do you think I will be able to do things like make Blazor Grid rows shorter in height via using Less-Based (or any)Themes...or do I need to make my own CSS classes to accomplish this? 

Thanks a lot!

Marin Bratanov
Telerik team
 answered on 21 May 2021
1 answer
843 views
With my original queston, I got to know about FileSelect here. I'm now able to send files to my internal unexposed Api. How do I download these files? I want to have an Api that sends file back to Blazor Portal. My files are saved as byte[] in a SQL table. I'm also triyng to figure out a way to show preview of common files on the portal as well. Any helpers?
Marin Bratanov
Telerik team
 answered on 21 May 2021
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?