Telerik Forums
UI for Blazor Forum
1 answer
136 views

This doesn't seem to be available by default?

please advise on the usual... roadmap, places to upvote, temp workarounds, etc

my initial rough workaround is some fairly manageable styling along these lines...

<style>
    .k-dropdown {
        padding-top: 1.03125em;
    }

        .k-dropdown::after {
            content: "Gender";
            color: rgba(0,0,0,0.6);
            position: absolute;
            margin-top: 0.5em;
            transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        .k-dropdown.k-state-focused::after, .k-dropdown:not(.k-state-empty)::after {
            transform: translate(-0.4em, -1.5em) scale(.75) ;
        }

        .k-dropdown.k-state-focused::after {
            color: #3f51b5;
        }

</style>

Svetoslav Dimitrov
Telerik team
 answered on 29 Jul 2020
2 answers
2.0K+ views

Hi

Are there any Blazor / Conversation UI samples or code.

What is the suggested method to integrate Conversation UI in a Blazor app? Which of the samples should I begin to look at.

 

thx in advance

Jonathan
Top achievements
Rank 1
Iron
Veteran
 answered on 28 Jul 2020
5 answers
1.0K+ views

From the example:

In the api handler, what is the preferred way to read the value in "SomeFormField" from the request? Is it in the Body collection of the Request?
 
@inject NavigationManager NavigationManager
 
<TelerikUpload SaveUrl="@SaveUrl"
               RemoveUrl="@RemoveUrl"
               OnUpload="@OnUploadHandler">
</TelerikUpload>
 
@code {
    async Task OnUploadHandler(UploadEventArgs e)
    {
        e.RequestData.Add("SomeFormField", "SomeFormValue"); // for example, user name
        e.RequestHeaders.Add("CustomHeader", "SomeHeaderValue"); // for example, authentication token
        // you can add more than one
    }
 
    // a sample way of generating the URLs to the endpoint
    public string SaveUrl => ToAbsoluteUrl("api/upload/save");
    public string RemoveUrl => ToAbsoluteUrl("api/upload/remove");
Marin Bratanov
Telerik team
 answered on 27 Jul 2020
1 answer
595 views

I did a bit of searching and couldn't find this in the documentation. Is there a way to change the text in the ComboBox dropdown when there is no data in the source collection? 

 

Thanks,

Andrew

Marin Bratanov
Telerik team
 answered on 23 Jul 2020
2 answers
1.3K+ views
I have implemented the drawer following your sample to use the drawer as navigation in the main site layout.  I have also used the template to create hierarchical menu.  I believe since I am using the template, the @Body will not be set for the url content?  Do you have a sample which uses hierarchical template and is able to navigate to a Razor Component.  I have tried using a RenderFragment on each drawer item and bind that value in the content field.  It seems to be rather slow. Also, when I render the component this way it seems any layout template I have specified at the component level is ignored. Do you have any suggestions?  Thank you in advance.
Will
Top achievements
Rank 1
 answered on 23 Jul 2020
1 answer
113 views

I've got a problem with the treeview.

The child element in is not fully visible in that container (see attached picture).

My problem is that the child element is wider than the parent element. In my css file there is an overflow-x property and the child element does not detect it as an element. The scrollbar seems to be attached to the parent element and not to the child elements. 

Marin Bratanov
Telerik team
 answered on 23 Jul 2020
3 answers
1.4K+ views

Hi,

I want to allow the input of a decimal number with exactly two decimal places in one column and in another column a number with three decimal places. How can I implement this in a GridColumn? DataAnnotations does not work.

[RegularExpression(@"^\d+\.\d{0,2}$")]
[Range(0, 9999999999999999.99)]

Thanks in advance

Marin Bratanov
Telerik team
 answered on 17 Jul 2020
1 answer
348 views

I am attempting to populate some "dummy" data into a Scheduler component by iterating over a list of Entries and adding each to the Scheduler's Data, like so:

 

foreach (ScheduleEntry entry in DummyDataForDemo)
{
    await TimesheetService.AddOrUpdateEntryAsync(entry);

    EntryUpdated(entry);
}

EntryUpdated(entry) calls ScheduleEntries.Add(entry), where ScheduleEntries is the datasource of my Scheduler component.

 

When EntryUpdated is called from the Scheduler's OnEdit callback, the Scheduler updates properly, and the ScheduleEntry is shown correctly. However, in this iterator, the Scheduler does *not* properly populate newly added entries. At most, I've seen two (of twenty) entries properly displayed until I refresh the page.

How can I accomplish this?

1: I've tried calling StateHasChanged() after iterating over DummyDateForDemo.

2: I've tried making ScheduleEntries an ObservableCollection. This doesn't *seem* to be supported anyway, since documentation mentions "Observable Data" for e.g. Grids, but not Schedulers.

3. I've also tried the trick found at https://feedback.telerik.com/blazor/1409112-the-grid-does-not-update-on-data-source-change but that doesn't work because I can't set Scheduler.Data outside of the component.

 

Please note that all other code is executing correctly - the ScheduleEntry objects *are* being added to the datasource, and they're being properly saved to the database.

 

Thanks,

Andrew

 


Marin Bratanov
Telerik team
 answered on 16 Jul 2020
1 answer
377 views

I've a weird issue with grid and virtual scrolling. It seems that if you scroll with the scrollbar all goes fine, but if you use flywheel to scroll to the top, some of the first items are not loaded and the placeholders are shown instead, the scrollbar has cursor in top position.

I can see from the debug that the last onread is made with skip value equal to the number of missing items.

Svetoslav Dimitrov
Telerik team
 answered on 16 Jul 2020
3 answers
484 views
Hello 
i was looking for a way to keep menu open if its clicked not like staying open as long as its hovered i need it to stay open as long as its focused 
Marin Bratanov
Telerik team
 answered on 14 Jul 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?