Telerik Forums
UI for Blazor Forum
1 answer
76 views

Hi,

 I have chart that is created dynamically. How to refresh all of the dynamically created charts.

 


   @foreach (var item in popData)
   {
    <TelerikChart Width="100%" Height="600px" @ref="PopChart">
    <ChartSeriesItems>
        <ChartSeries Type="ChartSeriesType.Bar" Data="@item.chartData" Color="@item.borderColor"
                         Field="@nameof(Classes.PopulationChartClass.count)" CategoryField="@nameof(Classes.PopulationChartClass.ageGroup)">
            @*    <ChartSeriesLabels Template="#=value# " Visible="@LabelVisable"></ChartSeriesLabels> *@
            <ChartSeriesTooltip Visible="true">
                <Template>
             
                   
                </Template>
            </ChartSeriesTooltip>
        </ChartSeries>
    </ChartSeriesItems>
    <ChartValueAxes>
        <ChartValueAxis Color="black">
            <ChartValueAxisTitle Text="Population" />
            <ChartValueAxisLabels Format="{0:N0}"></ChartValueAxisLabels>
        </ChartValueAxis>
    </ChartValueAxes>
    <ChartCategoryAxes>
        <ChartCategoryAxis>
            <ChartCategoryAxisLabels>
                <ChartCategoryAxisLabelsRotation Angle="315" />
            </ChartCategoryAxisLabels>
        </ChartCategoryAxis>
    </ChartCategoryAxes>

</TelerikChart>

}

 

Hristian Stefanov
Telerik team
 answered on 21 Oct 2024
1 answer
66 views

In Winforms we use the SqlGeospatialDataReader to load polygons and multipolygons that are stored in SQL geography fields into the RadMap control. Is there something similar for the Blazor Map control? If no, would you recommend loading these shapes into the Blazor version of the map control? 

Tsvetomir
Telerik team
 answered on 18 Oct 2024
1 answer
62 views

Hello, with TelerikScheduler, I want to be able to highlight certain hours and apply a custom logic. 

For example in the attached file picture, can it function like Outlook when it is in Schedule View? I want to be able to highlight like in the picture, 3:30pm to 4:30pm, and then do something in the background. Does TelerikScheduler allow something like this?

Tsvetomir
Telerik team
 answered on 17 Oct 2024
1 answer
90 views

Whenever I add a TelerkiCheckBox to a page/component the testers complain that they can't see the border of the checkbox so I'm constantly adding the below css to my razor files:

<style>
    .k-checkbox {
        /* Make the border a little darker than the default */
        border-color: rgba(0, 0, 0, 0.4);
    }
</style>

If I add this to my app.css it doesn't get applied.

Is there any way to apply this at a global level?

 

Dimo
Telerik team
 updated answer on 16 Oct 2024
2 answers
41 views
I would like to use the TelerikMenu on a mobile device, but there is no hover function to automatically open the menu. I therefore use ShowOn=“@MenuShowEvent.Click”. This also works, but now CloseOnClick=“true” no longer works. If I use the property, the menu no longer opens at all. But I need the function to close the menu automatically after selecting a menu item. How can I achieve this or is it a bug?

Hendrik
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 15 Oct 2024
1 answer
68 views
I would like to display the result of a dynamic SQL query, which therefore cannot be typed, in a grid. I tried it with AutoGenerateColumns=“true”, but it didn't work. I load my data into an IEnumerable<dynamic>. Is there a solution for this ?
Dimo
Telerik team
 answered on 15 Oct 2024
1 answer
66 views

Hi, my goal is validate a form and focus telerik widget with validation errors.  

 

Now i can find the element search for class "k-invalid" but how to get the widget reference so i can call the FocusAsync() method?

 

Thanks

2 answers
221 views
I have a cases where I need the users to be able to change the date and time, but mostly will just be editing the time?  Is there a way to default open to the Time Page rather than opening the date page every time?
Andrew
Top achievements
Rank 2
Iron
 answered on 11 Oct 2024
1 answer
64 views

I am trying to convert implement the TelerikTabStrip and was largly successful however I have a component that contains conditional logic that adds between 0 and 2 additional tabs to the parent components tabStrip. Unfortuately these tabs are not rendering correctly. I was able to replicate a minimum reproducable example in the blazor REPL environment using the following code. Are you able to advise how I can add tabs to a parents tabstrip, my two rendering issues are:

  1. When PersistTabContent is true (works as expected when false) the tabs don't render any content (I need the tabs to persist so turning it off isn't a good fix); and
  2. Regardless of if the tabs are persistant or not the subComponent tabs are still shown as "Active" and show the tabs as selected causing the appearence of multiple selected tabs 

Main.razor

<TelerikTabStrip PersistTabContent="true">
    <TabStripTab Title="tab1">
        <p>tab1 content</p>
    </TabStripTab>
    <TabStripTab Title="tab2">
        <p>tab2 content</p>
    </TabStripTab>
    <TabStripTab Title="tab3">
        <p>tab3 content</p>
    </TabStripTab>
    <SubComponent />
</TelerikTabStrip>

SubComponent.razor

<TabStripTab Title="tab4">
    <p>tab4 content</p>
</TabStripTab>
<TabStripTab Title="tab5">
    <p>tab5 content</p>
</TabStripTab>

Screenshots:

initial render:

Clicking on tab 1, 2 or 3 works as expected:

clicking on 4 or 5 shows no content:

Then clicking back to 1, 2 or 3 shows 4 and/or 5 as still selected:

 

 


Yanislav
Telerik team
 answered on 11 Oct 2024
1 answer
73 views
The docs/demos use the classic list of Employee class as data source, but what if the data source is an ExpandoObject instead? I've tried a few things, but the expanded group only fetches one row, and sometimes no rows at all. I'd love to hear if anyone has got this working?
Tsvetomir
Telerik team
 answered on 11 Oct 2024
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?