Telerik Forums
UI for Blazor Forum
4 answers
551 views

I have a grid loaded with the OnRead event handler to allow server paging.

Now, in the component OnAfterRender event i read some grid settings with an async request to server and then i update the grid state with Grid.SetState.


This approch work well but cause the grid to load twice: the first one by default OnRead call on component load, and the other one when the call to get settings complete and update the grid state.

There is a way to delay the grid load, to be done only when i have read the grid settings, so only one load occurs?

Thanks

Yanislav
Telerik team
 answered on 13 Jul 2023
1 answer
749 views

I am having difficulty implementing a custom Telerik Numerical Textbox component in a Blazor application, specifically with setting up two-way data binding.

In my Razor page, I'm trying to use the custom component like so:

<CustomNumericalTextBox Id="ID" Format="P" Min="0" Max="1" Step="0.01m" @Bind-Value="@Model.Value1" />

In the code-behind of this page, I have a model class:

public class Model 
{
    public decimal Value1 { get; set; } = "Something"
}

The custom component is defined in a separate Razor page:

@inherits CustomNumericalTextBoxBase

<FormItem>
    <Template>
        <TelerikNumericalTextBox Id="@Id" Format="@Format" Min="@Min" Max="@Max" @bind-Value="@BindValue">
        </TelerikNumericalTextBox>
    </Template>
</FormItem>
And its code-behind is:
public class CustomNumericalTextBox
{
    [Parameter]
    public decimal BindValue { get; set; }

    [Parameter]
    public EventCallback<decimal> BindValueChanged { get; set; }

    [Parameter]
    public string Format { get; set; } = string.Empty;

    [Parameter]
    public string Min { get; set; } = "0";

    [Parameter]
    public string Max { get; set; } = "1";

    [Parameter]
    public string Id { get; set; }
}
Any guidance on how I can achieve two-way data binding with this custom component would be greatly appreciated.

The errors I receive are:

'CustomNumericalTextBox.BuildRederTree(RederTreeBuilder)': No suitable method found to override
'CustomNumericalTextBox.BuildRederTree(RederTreeBuilder)': No suitable method found to override
The attribute names could not be inferred from bind attribute 'bind-BindValue'. Bind attributes should be of the form 'bind' or 'bind-value' along with their corresponding optional parameters like 'bind-value:event', 'bind:format' etc.
Dimo
Telerik team
 answered on 13 Jul 2023
1 answer
499 views

Which component can I use to simulate WinForms GroupBox, to group some fields in a square with a small title on the upper left? (See example in image1 from WinForms).

The nearest thing I've found is FormGroup, but doesn't visually group fields in a square, shows only upper line with title (see example on image2, groups "Personal information" and "Employee information"). This way, if after the group I have other fields not in a group (so no title needed for them) the user doesn't know when the group finishes.

Thank you.

Dimo
Telerik team
 answered on 12 Jul 2023
1 answer
265 views
Is it possible to make the Map component responsive based on screen size? 

For example if I just want a "static" map of the continental United States (no panning or additional zooming), is it possible to automatically refresh the map as I resize the browser window?  It would be nice to automatically re-center to the same visual location I was previously and have it resize accordingly.  

Hristian Stefanov
Telerik team
 answered on 11 Jul 2023
0 answers
143 views

Hello,

After updating to 4.3.0 for Blazor, the close button on the notifications seem to be appearing at the bottom left.

Thanks,

Tony

Tony
Top achievements
Rank 1
 asked on 11 Jul 2023
0 answers
137 views

The stepper control looks very useful, however the examples are quite limited.  I would like to know how I can use a button to change the steps instead of clicking on the stepper control itself.  Also, are there any better examples of using validation on each step, such as, when clicking the button to change steps, trigger validation for that step?

Thank you,

Jim

Jim
Top achievements
Rank 1
Iron
 asked on 11 Jul 2023
1 answer
284 views
Hello. 
I am using the FileSelect component to upload a single file. For this, I configured the property Multiple = false, and everything works as expected. The problem is that regardless of the Multiple state, more than one file can be uploaded through Drag and Drop. I believe this is an inconsistency in the component's logic since both file selection options should be limited. How can this be achieved in a simple way?

Another question: Is it possible to deactivate the drop zone?

Greetings. 
Twain.
Yanislav
Telerik team
 answered on 11 Jul 2023
1 answer
117 views
Perhaps a silly question but wanted to do a sanity check anyway. I know there are several ways to build custom filter descriptors and custom filter menus with the FilterMenuTemplate. I just want to use the existing default FilterDescriptors but more instances of them without re-creating the entire FilterMenu. For example, instead of having the default two FilterDescriptors with the Logic operator separating them, have three or four, all separated with a Logical Operator.
Dimo
Telerik team
 answered on 10 Jul 2023
1 answer
714 views

I  create a PDF-Document on the fly and want print it immediately afterwards.

Actually I am using TelerikPdfViewer to show the PDF on screen but the user has to click on the Print-Button and the another time in the follwing print dialog from the browser.

I would like to print immediately to the default printer without preview. 

And to spice it up: I would like to print it 3 times!

Is there by any chance to achieve that ?

 

Dimo
Telerik team
 answered on 07 Jul 2023
1 answer
142 views

HI:

Im considering to integrate jquery kendo components in Blazor server side app. Do you have a guide to do this?

 

I found this:

https://github.com/telerik/blazor-ui/tree/master/common/kendo-in-blazor

 

If you have something better, please advise me.

Dimo
Telerik team
 answered on 07 Jul 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?