Telerik Forums
UI for Blazor Forum
1 answer
106 views
I have a TelerikDateTimePicker on a form and limit the time to 15 minute intervals (00, 15, 30, 45) on form validation but the testers are asking if we can limit the times displayed in the time portion of the date time picker to only show 00, 15, 30 and 45. Is there any way to do that?
Svetoslav Dimitrov
Telerik team
 answered on 28 Oct 2020
6 answers
1.0K+ views

I inserted a Loader component to my project:

                        <TelerikButton ButtonType="@ButtonType.Button" OnClick="@CancelForm">Cancel</TelerikButton>
                        <TelerikButton ButtonType="@ButtonType.Submit" Primary="true" Enabled="@Activado">
                            <TelerikLoader Visible="@IsGeneratingReport" ThemeColor="light"></TelerikLoader>
                            @( Activado ? "Creando recogida" : "Recogida creada" )
                        </TelerikButton>

But it makes me mistake:

"Found Markup element with unexpected name 'TelerikLoader'. If this is intended to be a component , add @using directive for its namespace".

Download the TelerikBlazorAppLibManSample project and it has the same error. In the project I have referenced Telerik for Blazor and I use other components: TelerikTabStrip, TelerikTextBox, etc. and i don't have this problem.

 

Thank you.

 

Juan


Marin Bratanov
Telerik team
 answered on 26 Oct 2020
1 answer
535 views

Hi Telerik Blazor team and users,

some question regarding the width of the progress bar component:

1. Is it planned to set the width by a property, e.g. Width="100%"?

2. Currently the control width is still the same after the target device is changed by Google developer tools (attached files). Is it a bug?

 

Regards, Stefan

Marin Bratanov
Telerik team
 answered on 25 Oct 2020
1 answer
911 views

 

Hi, I am not able to concatenate value in TextField for selected value eg: (Code+ '-' +Name) 

<TelerikDropDownList DefaultText="NONE" Data="@categotyTypes" @bind-Value="@Model.Code"
                                     TextField="@nameof(CategoryTypes.Name)"
                                     ValueField="@nameof(CategoryTypes.Code)" Id="CategoryCode" Width="100%">
                    <ItemTemplate Context="dlContext">
                        @($"{dlContext.Code} - {dlContext.Name}")
                    </ItemTemplate>
                </TelerikDropDownList>

Could you please help on this.

Marin Bratanov
Telerik team
 answered on 25 Oct 2020
1 answer
207 views

Good Day

Is there a way to catch which tile was resized in the OnResize event and subsequently get the content (in this case a chart).

I do not want all my charts to refresh if only one is resized.

Marin Bratanov
Telerik team
 answered on 25 Oct 2020
2 answers
1.3K+ views

Hello!
I have a tabstrip with many tabs.
One of tabs contains validator like

<ValidationMessage For="@(() => crmView.Name)" />

 

If I switch between tabs, and return to the tab with validation, duplicate validation messages occur when switching between tabs.
How to prevent that?

 

Ivan
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 23 Oct 2020
1 answer
462 views

I have a Blazor Modal with a combobox. It provides a list of users that I want to group by role (see image).

 

<div class="col-10 offset-2 mt-2">
                    <TelerikDropDownList Data="@UserDropdownList" ValueField="Id" TextField="Name" @bind-Value="@UserSettings.UserId" >     </TelerikDropDownList>
                </div>

 

Marin Bratanov
Telerik team
 answered on 23 Oct 2020
1 answer
70 views

Hi,

My data model looks like this, but I'm not sure how to map it to the grid.

It gives an error saying it isn't enumerable, which is true. How do I map complex fields as a sub-grid row?

 

        public class MainModel
        {
            public DetailsModel Order { get; set; }
            public DetailsModel2 Stuff { get; set; }
        }

        public class DetailsModel
        {
            public string OrderId { get; set; }
            public string DealSize { get; set; }
        }

        public class DetailsModel2
        {
            public string StuffId { get; set; }
            public string StuffSize { get; set; }
        }

 private List<MainModel> GenerateData()
        {
            List<MainModel> data = new List<MainModel>();
            for (int i = 0; i < 5; i++)
            {
                MainModel mdl = new MainModel()
                {
                    Order = new DetailsModel() { OrderId = i.ToString(), DealSize = i.ToString() }
                    ,
                    Stuff = new DetailsModel2() { StuffId = i.ToString(), StuffSize = i.ToString() }
                };
                data.Add(mdl);
            }
            return data;
        }

 

<TelerikGrid Data="salesTeamMembers">
    <DetailTemplate Context="TemplateItem">
        @{
            var Item = TemplateItem as MainModel;
            <TelerikGrid Data="Item.Order" Pageable="true" PageSize="5">
                <GridColumns>
                    <GridColumn Field="OrderId"></GridColumn>
                    <GridColumn Field="DealSize"></GridColumn>
                </GridColumns>
            </TelerikGrid>
        }
    </DetailTemplate>
    <GridColumns>
        <GridColumn Field="Order">Order</GridColumn>
        <GridColumn Field="Stuff">Stuff</GridColumn>
    </GridColumns>
</TelerikGrid>

Thanks!
Marin Bratanov
Telerik team
 answered on 23 Oct 2020
1 answer
533 views

Window-component:

<TelerikWindow @bind-Visible="@_visible">
    <WindowTitle>Window</WindowTitle>
</TelerikWindow>
<TelerikButton OnClick="Show">Toggle</TelerikButton>

@code
{
    private bool _visible;

    public void Show()
    {
        _visible = !_visible;
    }
}

Other component:

<WindowComponent @ref="_windowComp"/>
<TelerikButton OnClick="() => _windowComp.Show()">Show</TelerikButton>

@code {
    private WindowComponent  _windowComp;
}

Nothing happens when pressing the "Show"-button, although debugging clearly shows that the Show()-method is executed.

 

Svetoslav Dimitrov
Telerik team
 answered on 23 Oct 2020
1 answer
485 views

I have a Data grid which is populated with remote data 1 page at a time using OnRead. This requires custom sort and filtering in the OnRead method. When 

I was using filter row, and the filters were returned as FilterDescriptor, and their value was populated.

When I changed the setting to filtermenu, and started getting composite filters (which I wanted), the values were always null, regardless of what I entered. Is this the right way to get values from the composite filters? If so, why is the value of each FilterDescriptor always null?

 

                    if (filter is FilterDescriptor)
                    {
                        FilterDescriptor currFilter = filter as FilterDescriptor;

                        var member = currFilter.Member;
                        var operation = currFilter.Operator;
                        var value = currFilter.Value;
//value is not null
                    }
                    else if(filter is CompositeFilterDescriptor)
                    {
                        var filters = filter as CompositeFilterDescriptor;
                        foreach (var compFilter in filters.FilterDescriptors)
                        {
                            FilterDescriptor currFilter = compFilter as FilterDescriptor;

                            var member = currFilter.Member;
                            var operation = currFilter.Operator;
                            var value = currFilter.Value;
//value is always null
                        }
                    }

Svetoslav Dimitrov
Telerik team
 answered on 22 Oct 2020
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?