Telerik Forums
UI for Blazor Forum
0 answers
174 views

Hello,

I am using telerik ui for blazor version 3.7.0  where i am implementing telerik grid onread method .This  method have TItem as ABC<T> where ABC and T both are classes.While representing  this kind of generic classes in TItem  the data is not being populated to the grid .Is this an issue in telerik or am i not following the correct structure for generic representation in TITem?

The snippet of sample code is attached here:https://blazorrepl.telerik.com/GRvaYjEe11IMof9t20

 

 

Thanks

 

 

ashok
Top achievements
Rank 1
 asked on 09 Oct 2023
1 answer
271 views

{ Note! I am a desktop dev, very little Web.. so bare with my dumb ?s }

My issue is with the line: file.CopyToAsync

I dont see that CopyToAsync.  Guessing becuase my file = file in args.Files

How can I get that CopyToAsync, so I can upload a file?

 

Thanks in advance.

 

 

I have on my razor page

 <div class="k-form-field">
     <label class="k-label k-form-label">Files:</label>
     <div class="k-form-field-wrap">
         <TelerikUpload  Id="DuffUpLoader"
                         SaveUrl="@SaveUrl"
                         RemoveUrl="@RemoveUrl"
                         OnUpload="@OnUpload"                                    
                         AutoUpload="false">
         </TelerikUpload>
     </div>
 </div>

<style>
    .k-upload-files {
        max-height: 200px;
        overflow-y: auto;
    }
</style>

 

in my behind the code:

public string SaveUrl => ToAbsoluteUrl("Resources/upload/save");
public string RemoveUrl => ToAbsoluteUrl("Resources/upload/remove");

private async Task OnUpload(UploadEventArgs args)
{



    foreach (var file in args.Files)
    {
 
        using (var fileStream = new FileStream(SaveUrl, FileMode.Create))
        {
            await file.CopyToAsync(fileStream);
        };

        //await using FileStream fs = new(SaveUrl, FileMode.Create);
        //await file.OpenReadStream().CopyToAsync(fs);
    };

   
   
}

Deasun
Top achievements
Rank 3
Bronze
Bronze
Bronze
 answered on 06 Oct 2023
1 answer
1.3K+ views

Hi,

When migrating a WebAssembly Blazor App, this error happens:

Could not find 'TelerikBlazor.initMediaQuery' ('TelerikBlazor' was undefined).

Thanks,

JeffSM
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 06 Oct 2023
1 answer
148 views

We are using a masked textbox to allow users to enter a US phone number, formatted as 000-000-0000, so all digits are required. The user is collecting a phone number from someone on a telephone call. Most of the time, the caller provides their phone number area code first, then they give the 7 digit number, so that works great. But sometimes, the caller doesn't think about giving their area code. In that case, the number looks like:

555-555-5, which is not right. Then we have to ask the caller for their area code. If the user clicks before the first 5, and starts typing, they overwrite the existing numbers. We would like it to insert the area code and push everything else to the right. If there are already 10 digits and we just want to change a number, then overwrite. 

Does that make sense? Is that something that can be done?

Svetoslav Dimitrov
Telerik team
 answered on 06 Oct 2023
0 answers
124 views
As of R3 2023 release, the font icons are detached from the themes css files. If you are still using font icons, make sure to include a reference to the font icons in your applications. You can read more information about the change in the following blog post: https://www.telerik.com/blogs/future-icons-telerik-kendo-ui-themes. It contains essential information about the change for all products and migration articles to svg icons.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 06 Oct 2023
1 answer
154 views

I want to do something like this:

Hristian Stefanov
Telerik team
 answered on 05 Oct 2023
0 answers
82 views

                        </div>

    <div class="row">
                            <div class="col-md-6">
                                <div class="row">
                                    <div class="col-md-3 col-lg-3 col-xs-12">
                                        <label for="Year-select" class="k-label k-form-label">QuestionNumber </label>
                                    </div>
                                    <div class="col-md-8 col-lg-8 col-xs-12">
                                    
                                        <TelerikMultiColumnComboBox Value="@Parameter.Id"
                                                                    Id="Year-select"
                                                                    ScrollMode="@DropDownScrollMode.Virtual"
                                                                    Data="@Data"
                                                                    ValueField="@(nameof(Model.Id))"
                                                                    TextField="@(nameof(Model.Description))"
                                                                    Width="75%"
                                                                    PageSize="30"
                                                                    ItemHeight="35"
                                                                    Filterable="true"
                                                                    FilterOperator="@Telerik.Blazor.StringFilterOperator.Contains"
                                                                    ListHeight="260px"
                                                                    Placeholder="New"
                                                                     >
                                            <MultiColumnComboBoxColumns>
                                                <MultiColumnComboBoxColumn Title="Description" Field="@nameof(Model.TextMajorDescription)" />
                                            </MultiColumnComboBoxColumns>
                                        </TelerikMultiColumnComboBox>
                                        <TelerikLoader Class="loader-indicator" ThemeColor="light" ></TelerikLoader>
                                    </div>
                                </div>
                            </div>

bashar
Top achievements
Rank 1
 asked on 04 Oct 2023
1 answer
152 views

The combobox works find when viewing on desktop browser. But when viewing on mobile devices, it launches the keyboard if the user attempts to select an item from the list.

I have set the below flags

Filterable = false

ClearButton = false

Do I just need to not use the combobox component on mobile?

Thanks

Billy

Svetoslav Dimitrov
Telerik team
 answered on 04 Oct 2023
1 answer
234 views

Seems like these 2 questions should have simple answers, but I cannot figure them out from trial-and-error or looking at the documentation or this forum so far...

First item - how to format the title bar of a TelerikGrid popup window. In the attached screenshot and sample page, I know how to format the title bar in a TelerikWindow, but there is no ThemeColor property on either the GridPopupEditSettings or GridPopupEditFormSettings of the TelerikGrid that I can find. How can I format it?

Second item - and this pertains to both the TelerikWindow component and the TelerikGrid popup window - how can I center or right-align buttons in the popup windows?

Any insights appreciated. :)

Rob

Dimo
Telerik team
 updated answer on 03 Oct 2023
1 answer
121 views

Hi

It seems that s deals with k-picker but how to do good css ?

Hristian Stefanov
Telerik team
 answered on 29 Sep 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?