Telerik Forums
UI for Blazor Forum
0 answers
153 views
Often I'll get an exception thrown where even running in debug mode with breakpoints it's not clear where exactly the error is. I know these are usually, if not always, errors in the generated html and js Interop files. Does anyone know of a way to dive deeper into those exceptions, or am I just kinda stuck troubleshooting line by line? Thanks!
Will
Top achievements
Rank 2
Iron
 asked on 03 Aug 2022
0 answers
353 views

I'm trying to use the TelerikUpload control in a Blazor server project. I created a Blazor server project from the Telerik template.

I'm trying to use only minimum web API for the upload endpoints. I haven't added controllers or routing to the configuration.

The issue is that I'm getting a 400 error when I use the MapPost().  I've  tried many different variations for the post action parameters.

 app.MapPost("upload/save",  async (IFormFile files) =>
 {       
        if (files != null)
        {                  
            var physicalPath = Path.Combine("D:\\Source\\repos\\BlazorVPMS\\BlazorVPMS", "Upload/", files.FileName);
            logger.Debug(physicalPath);

            using (var fileStream = new FileStream(physicalPath, FileMode.Create))
            {
                await files.CopyToAsync(fileStream);
            }
        }
    });

The only post method that works is this, after I added a form tag to the html.  

 app.MapPost("upload/save", async (IConfiguration config, HttpRequest request) =>
    {
        var files = request.Form.Files.First();
        if (files != null)
        {             
            //string path = config["StoredFilesPath"];
            var physicalPath = Path.Combine("D:\\Source\\repos\\BlazorVPMS\\BlazorVPMS", "Upload/", files.FileName);
            logger.Debug(physicalPath);

            using (var fileStream = new FileStream(physicalPath, FileMode.Create))
            {
                await files.CopyToAsync(fileStream);
            }
        }
    });
What do need to do to make this work with just using the IFormFile? Do I need to just add an API controller and routing to my configure and not use the minimum API?
 
Jay
Top achievements
Rank 1
Iron
Iron
 asked on 03 Aug 2022
1 answer
1.3K+ views

We don't want users to be able to select some rows, so we want to disable the checkbox on GridCheckboxColumn. I do realize this is a bit more complicated since it deals with row selection. We are using it to add selected items to a shopping cart. Some items are not for sale, so they cannot be added in bulk this way. So in this use case, we don't want them selecting the row. Any suggestions?

We are open to other ways to handle this, but we wanted to avoid having the user click on something and then have it say "No you cannot do that."

Dimo
Telerik team
 answered on 03 Aug 2022
1 answer
140 views

Hi:

Is the approached discussed in the kb article Autofit all Grid columns on initial load still valid given that the Blazor controls are on version 3.4.0 and .NET 5+ supports JavaScript Isolation?

Thanks

-marc

Dimo
Telerik team
 answered on 03 Aug 2022
1 answer
525 views

I am new to Telerik (and CSS in generally) and unfortunately I am struggeling even with simple things.

I just want to set the Font-Size of a FloatingLabel like this:

    .floatinglabel {
        width: 100%;
        color: red;
        font-size: 8px;
    }
The color is red, but the Font-Size is not changing. What am I missing ? 
Hristian Stefanov
Telerik team
 answered on 03 Aug 2022
0 answers
319 views

Is it possible to set the content of Window/Dialog to be a variable containing HTML code? 

 

Ilan
Top achievements
Rank 1
Bronze
Iron
Veteran
 asked on 02 Aug 2022
8 answers
3.7K+ views

Hi,

I need a MultiSelect DropDownList with checkboxes. I was not able to find this control on the demo page.

Thanks,

Artem

Stefano
Top achievements
Rank 1
Iron
 answered on 02 Aug 2022
1 answer
343 views

Hello,

How can i disable default Enter Key behaviour in Inline Grid Edit?

I need to place an TextArea component inside a inline edit row to let user put longer text description in one of the columns. When i try to go to a new line inside TextArea component, clicking enter key is triggering save for the whole inline edit row, making use of TextArea impossible.

Could you help me find a solution for this problem?

Kind regards,

Kinga

 

 

 

Dimo
Telerik team
 answered on 02 Aug 2022
1 answer
613 views

Is there a way to remove the left, right, and bottom grid lines from the footer?  I want the grid to show for the header and data cells, just not the foot row.

 

Thanks

Dimo
Telerik team
 answered on 02 Aug 2022
1 answer
213 views
We are trying to port a Web Forms project to Blazor and we have TelerikRadEditor (for ASP.NET) in one of our pages. The TelerikRadEditor offered three Editor Modes (Design, HTML and Preview). However in the Blazor TelerikEditor we were unable to find anything about the Preview mode. Can someone confirm whether there is a Preview mode in Blazor TelerikEditor? If yes, then how to enable it/add it.
Dimo
Telerik team
 answered on 01 Aug 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?