Telerik Forums
UI for Blazor Forum
4 answers
226 views

Hi

I have defined an OnUpload handler like this on the TelerikUpload:

<TelerikUpload AutoUpload="false" ...  OnUpload="@OnUploadHandler" ></TelerikUpload>

 

It turns out that the handler is only called when I click on the 'Upload' button. If the upload fails, the retry icon is shown. However when clicking on the Retry icon, the OnUpload handler is not called.

In my case that is a problem, because I add headers and request in this event:

async Task OnUploadHandler(UploadEventArgs e)
{
    e.RequestData.Add("SomeFormField", "Hello world!"); // for example, user name
    e.RequestHeaders.Add("Authorization", "Bearer " + Token); // for example, authentication token
}

 

It does not matter if the request is to same host or cross-domain.

Best regards


 

 

 

Marin Bratanov
Telerik team
 answered on 25 Nov 2020
1 answer
945 views

just a basic list as a data source:

public List<Feature> Features { get; set; } = new List<Feature>();

as simple as I can make the Grid:

<TelerikGrid Data="@Features" Sortable="true">
    <GridColumns>
        <GridColumn Field="Qty" />
    </GridColumns>
</TelerikGrid>

And an event to add features:

void AddFeature()
{
    Features.Add(new Feature() { Qty = 1 });
}

 

I can add the features just fine, but nothing shows in the grid until I sort, then it is all there - what am I missing?

8.5.2
Nadezhda Tacheva
Telerik team
 answered on 24 Nov 2020
1 answer
774 views

Hello,

Sorry if this has already been asked, but I couldnt find a topic on that subject.

I would like to know if it's possible to validate for a duplicate value for a field when submitting an add/edit of a record in a grid (popup edit) and return an error in the form to inform the user that the value is already used.

I am able to do it in the appropriate handle after the submit but i can't seem to prevent the form to close and to display an error message to the user.

Thanks!

Nadezhda Tacheva
Telerik team
 answered on 24 Nov 2020
1 answer
586 views
Can you apply an OR condition on 2 column filters, or programmatically set the filter value for the GridSearchBox ?
Nadezhda Tacheva
Telerik team
 answered on 24 Nov 2020
7 answers
251 views
I am using a Combobox (probably the same for all editors) and it is auto assigned the k-state-valid class upon creation. I would like to have this class only be assigned once the Forms Validate method is called. Is there a way to do this?
Marin Bratanov
Telerik team
 answered on 24 Nov 2020
1 answer
138 views

Hi guys,

Is there a possibility in incell edit mode, on edit, when a text/numeric input shows up, from the EditTemplate, it's text to be selected by default?

What I want to achieve is the following: in a numeric input we have the default value of zero. I want that value to be selected as when the user does a copy+paste in the input that value will be overwritten. If it's not selected the cursor appears after that value so when the user does a copy+paste then the new value will be concatenated with the value that was present in the input before the copy+paste, which is an issue that I don't want to achieve.

 

I hope you understood what I want to achieve.

Best regards,

Cipri

Marin Bratanov
Telerik team
 answered on 24 Nov 2020
1 answer
243 views

Is is possible to add a trend line / linear regression to the Blazor charts like Excel?

See it is available in the kendo charts (https://docs.telerik.com/kendo-ui/knowledge-base/chart-add-trend-line).

Also found the old 2015 knowledge base article (https://www.telerik.com/blogs/how-to-plot-a-simple-linear-regression-in-telerik-asp.net-web-form-chart)

Marin Bratanov
Telerik team
 answered on 24 Nov 2020
1 answer
711 views

To give some background, I'm looking at this from the perspective of using the grid in a similar fashion as Excel.

My users will click on a cell in the row and then from there navigate via the keyboard or mouse.

If you go to the Grid - Incell Editing demo page and click into the first editable column (Weight) and then hit tab, the focus leaves the grid entirely (not desireable).  Also, if you are in the Weight field and mouse click into the field immediately to the right (Color) the current active cell flashes but then stays in focus.  It's a bit of a mess.  My intent is to have a grid that expert users can navigate quickly using the keyboard with little mouse input.  

Is Inline editing a better option?  Can I leverage a row-click event to bring the row in edit mode?  Can navigating away from the row trigger an automatic update? Or what about hitting tab in the last editable cell?  Can we have it automatically add a new row and enter edit mode on the new row?

The users would revolt against having to click and Edit button and a Save button on each row.

 

Marin Bratanov
Telerik team
 answered on 24 Nov 2020
3 answers
462 views

Hello, I'm having trouble getting nested grid and or column sizes to work.
If we use this as our example: https://docs.telerik.com/blazor-ui/components/grid/hierarchy

The nested grid, DetailTemplate, when expanded fills the row space as defined by the parent grid.

Even if I add Width parameters to the  DetailTemplate Grid and GridColumn controls the DetailTemplate Grid and columns still fill the row space.

Looks funny to me to have the OrderId and DealSize columns in the DetailTemplate to be so large.
Is it possible to size the DetailTemplate Grid and column more appropriatly?

Thanks

Marin Bratanov
Telerik team
 answered on 23 Nov 2020
18 answers
1.6K+ views
Hi there! My project is a fullstack Blazor application - server, client and shared projects. On my server project I have some custom logic for paging that I want to use in my Telerik Grid. My question is how am I supposed to use my server side paging instead of the built-in one in the TelerikGrid. The issue is that I want to send a request to the Server project(WebAPI) and pass some parameters to it(ex. page=2, limit=10). I get the parameters from the url(ex. "http://localhost:5000/api/Forecasts?Page=2&Limit=10") so I can send different request for every single page(I have large data source). Is there a way I can integrate my server-side paging logic with your TelerikGrid for Blazor?
Thank you in advance!
Marin Bratanov
Telerik team
 answered on 23 Nov 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?