Telerik Forums
UI for Blazor Forum
1 answer
388 views

This lightly modified ComboBox sample won't show the value of the nested class.  Filtering does work, so I think this is a bug?

<TelerikComboBox @bind-Value=@SelectedValue
                  Data="@ComboBoxData"
                  Filterable="true"
                   ValueField="ProductId"
                   TextField="ProductName.Description">
    <ItemTemplate>
        <strong>@((context as Product).ProductName.Description) - @(String.Format("{0:C2}", (context as Product).UnitPrice))</strong>
    </ItemTemplate>
</TelerikComboBox>
 
@code {
    public IEnumerable<Product> ComboBoxData { get; set; }
    public int SelectedValue { get; set; } = 2;
 
    protected override void OnInitialized()
    {
        List<Product> products = new List<Product>();
        for (int i = 1; i < 10; i++)
        {
            products.Add(new Product()
            {
                ProductId = i,
                ProductName = new ProductName {Description = $"{i} Product {i}"},
                UnitPrice = (decimal)(i * 3.14)
            });
        }
 
        ComboBoxData = products;
        base.OnInitialized();
    }
 
    public class Product
    {
        public int ProductId { get; set; }
        public ProductName ProductName { get; set; }
        public decimal UnitPrice { get; set; }
    }
 
    public class ProductName
    {
        public string Description { get; set; }
    }
}
Marin Bratanov
Telerik team
 answered on 04 Sep 2020
9 answers
1.9K+ views

 Hello,

I've replicated the show/hide grid columns feature as per the grid demo.  The only issue i'm having is that "showing" the column results in the column being moved to the end of the grid instead of appearing in the order in which i have it placed in my list of GridColumns.  Is this expected behavior and is there a way to force the columns to stay in the defined order even when they are being hidden and shown?

 

Thank You

Josh F.

Jim
Top achievements
Rank 1
Veteran
 answered on 03 Sep 2020
9 answers
314 views

How do I influence the styling of appointments, and in particular the background color, without using a resource/groupby view or css?

I want to be able to decide runtime what the color should be.

Roland
Top achievements
Rank 3
Iron
Iron
Veteran
 answered on 01 Sep 2020
3 answers
155 views

Every time you try to edit the year part, strange things happen.

"20" is not accepted as 2020, "60" not as 1960. Typing in a full year like 2020 is also not accepted.

Is this a bug, or am I doing something wrong?

Marin Bratanov
Telerik team
 answered on 01 Sep 2020
1 answer
144 views

Is there a way to specify that only certain entries are not editable, as opposed to the entire Scheduler component? I'm currently working around this by immediately returning from the CRUD handlers if they attempt to operate on one of the events. This is unexpected UX, since these entries look like they should respond to CRUD operations like "regular" entries.

 

Alternatively, how can I specify certain dates as outside of work hours? Specifically looking at things like federal holidays; Christmas, for instance, should never have an entry from a user.

 

Thanks,

Andrew

Marin Bratanov
Telerik team
 answered on 28 Aug 2020
2 answers
1.2K+ views

How do we change the icons used by the filter mode on the Blazor Grid? 

For example the calendar and filter icon I have shown in my attachment are using Telerik Icons but we want to use Office UI Fabric Icons to match the rest of the site.

 

 

 

 

Scott
Top achievements
Rank 1
Veteran
 answered on 27 Aug 2020
1 answer
268 views

Hi, 

Is it possible to move page counter (first page, next page and so on) to the top of the grid? 

thanks, 

Irina

Marin Bratanov
Telerik team
 answered on 27 Aug 2020
3 answers
455 views
Hi! I'd like to set different background color to specific date ranges behind the appointments on the scheduler. Is it possible to do? Thanks! 
Marin Bratanov
Telerik team
 answered on 24 Aug 2020
2 answers
1.8K+ views

Hi,

I have a dropdownlist and I want to have a TextField as a combined value between two properties of the context

I can do this using <ItemTemplate> and it works, but only when I click on dropdown and see the list, list has items with combined properties

When I select one item from that list and list is closed, the selected text in drop down list is not combined, it shows only code in my case

How can I show selected value as Item Template? Code ( Description )

<TelerikDropDownList Data="@Sites"
                     ValueChanged="@( (int v) => SiteValueChangedHandler(v) )"
                     TextField="@nameof(Site.Code)"
                     ValueField="@nameof(Site.SiteId)"
                     DefaultText="@LanguageContainer.Keys["All"]"
                     Width="200px"
                     Id="ddlSite">
    <ItemTemplate>
        @(string.Concat((context as Site).Code, " (", (context as Site).Description, ")"))
    </ItemTemplate>
</TelerikDropDownList>

 

Thanks,

Artem


Artem
Top achievements
Rank 1
Veteran
 answered on 24 Aug 2020
1 answer
133 views

    Here is a copy of the component that i built for my form this is the component named "DataTextField"

@inherits EagleCS.ComponentClasses.DataInputTextBase<string>
<div class="form-group">
    <label class="h6">@(TextLabel): </label>
    <TelerikTextBox @bind-Value="@Value"></TelerikTextBox>
    <ValidationMessage For="@ValueExpression"></ValidationMessage>
</div>

 

Here it is inside an EditForm

<DataAnnotationsValidator/>
<DataTextField TextLabel="Name" @bind-Value="screenModel.Name"/>

 

When I click submit for the form even with a value inside it blanks out the text field

and then set the field to be empty.

 

Marin Bratanov
Telerik team
 answered on 24 Aug 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?