Telerik Forums
UI for Blazor Forum
1 answer
1.1K+ views

When I try to set 'RefTextBox.Value = value' I get a warning:

How is the Value of a TextBox supposed to be set programmatically without binding it to a variable?

Timothy J
Top achievements
Rank 2
Bronze
Iron
Iron
 updated answer on 09 Jul 2022
0 answers
184 views
Calling SetState on a TreeList does not trigger the OnStateChanged event. I thought the whole point of the OnStateChanged event was to have a central location to capture state change actions on a TreeList? How are we supposed to capture and execute code when SetState is called to change the state of the TreeList?
Ted
Top achievements
Rank 1
Iron
Iron
 asked on 08 Jul 2022
1 answer
825 views

Hello I am trying to generate Dynamic columns for Telerik Grid it is generating multiple times columns set I want to avoid this please check bellow screen short. 

 

Here is the my code.

<TelerikGrid Data="@SearchConfigs" Resizable="true" Reorderable="true" Groupable="false">
        <GridColumns>
                @foreach (SearchConfig row in SearchConfigs)
                {
                    @foreach (var property in (IDictionary<string, string>)row.SearchFields)
                    {
                        <GridColumn Title="@property.Key">
                            <Template>
                                @property.Value
                            </Template>
                        </GridColumn>
                    }
                }
        </GridColumns>
    </TelerikGrid>

public List<SearchConfig> SearchConfigs { get; set; } = new List<SearchConfig>();

IDictionary<string, string> keyValuePairs = new Dictionary<string, string>
        {
            { "Col1", "Value1" },
            { "Col2", "Value2" },
            { "Col3", "Value3" },
            { "Col4", "Value4" },
            { "Col5", "Value5" },
            { "Col6", "Value6" },
            { "Col7", "Value7" },
            { "Col8", "Value8" },
        };

        SearchConfigs.Add(new SearchConfig { SearchFields = keyValuePairs });
        SearchConfigs.Add(new SearchConfig { SearchFields = keyValuePairs });
        SearchConfigs.Add(new SearchConfig { SearchFields = keyValuePairs });

Could you please help me figure out what is going wrong here?

 

Thank you

Jitendra
Top achievements
Rank 1
Iron
 answered on 08 Jul 2022
4 answers
5.0K+ views

Hi

I want to bind a grid to a source source. But the data source varies each time. 

1. Can you automatically generate the columns when binding?

2. Can you programatically create a grid ?

thx in advance

 

 

 

Jitendra
Top achievements
Rank 1
Iron
 answered on 08 Jul 2022
1 answer
197 views

Hello,

I have some questions regarding the different TelerikCharts.

1. Is there a way to enable drag on a series, to change the value?
I have attached some example code, on how I could like it to work.

2. Is there a way to disable series click when right clicking?
I still would like to use series click, but only on leftclick.

3. Is there a way to open a context menu on a series, when right clicking?

Regards,
Nikolas

Dimo
Telerik team
 answered on 08 Jul 2022
1 answer
336 views

Hi all,

We have a Blazor Server app that uses Telerik for Blazor 3.4.0

We noticed that when we have TelerikWindow component where the Modal=true is defined, users can still use the tab button to navigate outside of the pop up. They can even access the actions and dropdowns on the site behind the TelerikWindow. We tested this on Edge, Chrome, and Firefox.

From this documentation it seems that we'd only need to set Modal="true" for a TelerikWindow component to behave similar to a TelerikDialog component: https://docs.telerik.com/blazor-ui/components/window/modal

 

You can even observe this behavior in the Telerik REPL:

Here is a TelerikDialog component: https://blazorrepl.telerik.com/QcOVYAGb10rFakuj32

Here is a TelerikWindow component with Modal="true": https://blazorrepl.telerik.com/wGOhYUQv27XDlK8506

Thanks

 

Dimo
Telerik team
 updated answer on 08 Jul 2022
1 answer
509 views

OBJECTIVE:

As I know the <GroupHeaderTemplate> is not directly associated with the data therefore I cannot establish a context for DTOs. I wish you access the data collection and display data dynamically using the <GroupHeaderTemplate>. In this case I want to showcase days of the week along side the date based on the data in my DTOs rather than the default that is given from DateTime.

QUESTION:

How would I go about displaying dynamic data in a <GroupHeaderTemplate> the same way it is done in other Telerik Templates?

Below is the relevant code the produces my question.

Brian
Top achievements
Rank 1
Iron
 answered on 07 Jul 2022
1 answer
429 views

When trying to initialize Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider I'm getting :

Error: System.IO.FileNotFoundException: Could not load file or assembly 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

File name: 'PresentationCore, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.GenericHtmlFonts..ctor()
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlImportSettings..ctor()
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider..ctor()

Blazor Server

What am I missing?

Lance | Senior Manager - Technical Support
Telerik team
 answered on 07 Jul 2022
2 answers
497 views

Is there a way to initialize a TelerkGrid with html Table containing multiple headers like this: HTML/CSS Share (codepen.io)

 

 

Svetoslav Dimitrov
Telerik team
 answered on 07 Jul 2022
1 answer
222 views

I'm trying to export my chart to PDF using the telerikClientExporter.js and I'm getting this error:

rror: Microsoft.JSInterop.JSException: Cannot read properties of undefined (reading 'bbox')
TypeError: Cannot read properties of undefined (reading 'bbox')
    at i (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:627)
    at http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:773
    at o (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:555)
    at a (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:698)
    at r (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:346)
    at Object.Group (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:1303)
    at s (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:6:28365)
    at http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:830
    at o (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:555)
    at a (http://localhost/ReportsBlazor/lib/progress/kendo-drawing/dist/cdn/js/kendo-drawing.js:7:698)
Svetoslav Dimitrov
Telerik team
 answered on 07 Jul 2022
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?