Telerik Forums
UI for Blazor Forum
2 answers
1.0K+ views
I have code that updates the data source for my grid.  However I would like the grid to go into edit mode for the new row of data that got added.  Is there a way to do this programmatically with out the user having to click the row edit button?
Kevin
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 01 Aug 2023
1 answer
125 views

Hi, how can I display an age column based on birthdate. I have this code that displays no data in the age column

        <GridColumn Field="LasName Title="Lase name" />

       @Age = DateTime.Now.Year - Person.BirthDateYear

       <GridColumn Field="Age" Title="Age" />

 

Age is defined in the @Code section:
public int Age;

 

Thanks

Hristian Stefanov
Telerik team
 answered on 01 Aug 2023
1 answer
315 views

I am encountering a strange issue and wanted to check with the community on what might be going on. When using a NumericTextBox in a blazor client-side (WebAssembly) app, and switching between en-US and es-US locales, we are seeing the textbox use commas as the decimal separator for es-US, but are expecting it to use period (consistent with .NET's behavior when formatting for the es-US culture and with other sources).

The demo here (Blazor NumericTextBox Demos - Globalization | Telerik UI for Blazor) formats numbers the same way when selecting Spanish, and based on the currency symbol it seems clear the formatting is using the es-ES locale (.NET behavior is also consistent with this).

Is there a known issue where the NumericTextBox for Telerik Blazor uses commas as the decimal separator for the es-US locale, or is this possibly a new issue for which we should just create a bug report? Or, perhaps most likely, does this point to us doing something wrong, like maybe setting the culture to just es or something?

If it matters - when the user switches the language in the UI, we are reloading the site and setting CultureInfo.DefaultThreadCurrentCulture and CultureInfo.DefaultThreadCurrentUICulture to a new CultureInfo instance created with name "en-US" or "es-US".

Tsvetomir
Telerik team
 answered on 01 Aug 2023
1 answer
570 views

In the documentation on the SVG Icon component here, one icon is defined in the following code:


    public class Moon : SvgIconBase
    {
        public Moon()
        {
            Name = "moon";
            Content = "<path d=\"M8.85028 16.5C11.3178 16.5 13.5715 15.3773 15.0646 13.5378C15.2854 13.2656 15.0446 12.8681 14.7032 12.9331C10.8219 13.6723 7.25756 10.6963 7.25756 6.77825C7.25756 4.52131 8.46575 2.44591 10.4294 1.32844C10.7321 1.15619 10.6559 0.697281 10.312 0.63375C9.82984 0.544842 9.34057 0.500073 8.85028 0.5C4.43437 0.5 0.850281 4.07847 0.850281 8.5C0.850281 12.9159 4.42875 16.5 8.85028 16.5Z\" fill=\"rgb(31, 31, 31)\" />";
            ViewBox = "0 0 16 17";
        }
    }

    public static class MySvgIcons
    {
        public static ISvgIcon Moon => new Moon();
        //public static ISvgIcon AnotherIcon => new AnotherIcon();
    }


 

In this snippet, an example is provided to add another icon to the MySvgIcons class, but where should that icon be defined? It seems impractical to replicate the entire first class structure for each and every icon. Is there a more efficient way of loading SVGs into my custom class of icons?

Radko
Telerik team
 answered on 28 Jul 2023
0 answers
327 views

How to upload a document to sharepoint library (using CSharp and not javascript) in a Telerik/Blazor UI..  For various reasons we can no longer use the older Telerik / Javascript interface to Sharepoint to do this

After research think the only way to do this is to interface to MicrosoftGraph using CSharp, Telerik/Blazor widgets but I cannot find a good working example.

Does anyone have a link to a good working example.

Thanks in advance for your help!

Scott

scott
Top achievements
Rank 1
 asked on 27 Jul 2023
0 answers
192 views

Hi,

 

I'm trying to create a combobox which can select multiple values or a multiselect with tagging functionality like the one in the Angular suite of controls (https://www.telerik.com/kendo-angular-ui/components/dropdowns/multiselect/custom-values/). We are migrating our codebase at the moment and there is no adequate substitute to replicate the same behavior. I did come across the proposed solution (https://github.com/telerik/blazor-ui/tree/master/multiselect/add-new-item/MultiSelectAndAddButton) but its implementation feels very inorganic. Is there some way this can be incorporated into the control and have a cleaner implementation from a consuming-developer's point of view?

Alan
Top achievements
Rank 1
 asked on 27 Jul 2023
2 answers
295 views
I tried several suggestions, but I don't succeed in this task.
I don't need a multi-lingual approach, just simple dutch labels and datetime formatting.
Andre
Top achievements
Rank 1
Iron
 answered on 27 Jul 2023
1 answer
517 views

I would like to use a third party set of SVG images for buttons. I was hoping I could do something like:

<GridCommandButton Command="View" Icon="@/assets/magnifying_glass.svg" >View</GridCommandButton>

 

 

Georgi
Telerik team
 answered on 26 Jul 2023
1 answer
301 views

For a specific column, whenever one of its cells are clicked, the value in that clicked cell needs to update to a newly calculated value. Ideally, I'd like to be able to fire off an event containing information about the cell just clicked and use that information to update the cell's displayed value from the code block.

I've tried the column event OnRowClick, but that doesn't allow me to specify which cell was clicked. I've also tried adding an onclick event inside the GridColumn's Template, but this only delivers MouseEventArgs. 

Is there anyway to do this without resorting to Javascript?

Nadezhda Tacheva
Telerik team
 answered on 26 Jul 2023
0 answers
354 views
Hello,

The PDF Viewer provides a Print method.

Is it possible to print with custom headers and footers?

Kind regards,


Valeriy
Top achievements
Rank 2
Iron
Iron
 asked on 26 Jul 2023
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?