Telerik Forums
UI for Blazor Forum
0 answers
128 views

Hi

 

See this image , in our application we use the Telerik calender control en inpubox

How easy or difficult is to get this styling on all controls?


Eric

 

Paul
Top achievements
Rank 1
Iron
Iron
Iron
 asked on 23 Sep 2022
1 answer
846 views

Hey!

Is there a way for me to change the colors of the Wizard Stepper?

I figured out that I can write css in my component that will override the css on the buttons, but I cannot figure out how to change the colors on the stepper. I'm terrible at css and am actually begining to work with Tailwind.

Used this to override the button:

.k-button-solid-primary {
        background-color: rgb(8 145 178);
        color: white;
        border-color: rgb(8 145 178);
    }

    .k-button-solid-primary:hover {
        background-color: rgb(165 243 252);
        color: white;
        border-color: rgb(165 243 252);
    }
Hristian Stefanov
Telerik team
 answered on 23 Sep 2022
1 answer
232 views

Category labels dont appear on the bottom of the grid?

As far as I understood it, it should pick up the names for the label from @strLCCategory

<ChartCategoryAxis Categories="@strLCCategory">

Which has: "2022-07", "2022-08" in it.

What I am getting:

No labels below that 0 line!

Code below

<GridLayoutItem Column="2" Row="5">
            <TelerikChart Height="400px"
                          Width="700px">
                <ChartTitle Text="Line Counts"></ChartTitle>
                <ChartTooltip Visible="true"></ChartTooltip>
                <ChartLegend Position="ChartLegendPosition.Right"></ChartLegend>

                <ChartSeriesItems>
                    <ChartSeries Type="ChartSeriesType.Line"
                                 Name="@strLCSeries1Field"
                                 Data="@LineCounts"
                                 Width="2"
                                 DashType="@DashType.Solid"
                                 Field="@strLCSeries1Field">
                    </ChartSeries>
                    <ChartSeries Type="ChartSeriesType.Line"
                                 Name="@strLCSeries2Field"
                                 Data="@LineCounts"
                                 Width="2"
                                 DashType="@DashType.Solid"
                                 Field="@strLCSeries2Field">
                    </ChartSeries>
                    <ChartSeries Type="ChartSeriesType.Line"
                                 Name="@strLCSeries3Field"
                                 Data="@LineCounts"
                                 Width="2"                            
                                 DashType="@DashType.Solid"
                                 Field="@strLCSeries3Field">
                    </ChartSeries>
                </ChartSeriesItems>

                <ChartCategoryAxes>
                    <ChartCategoryAxis Categories="@strLCCategory">
                        @*<ChartCategoryAxisLabels>
                            <ChartCategoryAxisLabelsRotation Angle="-45" />
                        </ChartCategoryAxisLabels>*@
                    </ChartCategoryAxis>
                </ChartCategoryAxes>

               @* <ChartValueAxes>
                    <ChartValueAxis AxisCrossingValue="@AxisCrossingValue">
                        <ChartValueAxisLabels></ChartValueAxisLabels>
                    </ChartValueAxis>
                </ChartValueAxes>*@

            </TelerikChart>

        </GridLayoutItem>

private string[]? strLCCategory;
 List<chartLineCountsResult> LineCountsResults = new List<chartLineCountsResult>();
 LineCountsResults = clsDataAccessService.doChartInit("LineCounts", GlobalStuff.msDBEnvir);
 List<string> Categories = new List<string>();
 for (int i = 0; i < LineCountsResults.Count; i++)
            {
                Categories.Add(LineCountsResults[i].Periods.ToString());
            };        
 string[] strLCCategory = Categories.ToArray();

Can't see why the Category labels dont appear on the bottom of the grid?
Should be seeing:
2022-07  2022-08

Stamo Gochev
Telerik team
 answered on 23 Sep 2022
1 answer
137 views

I have a SP returning an unknown # of columns.

1st column is the time periods, 2022-07, 2022-08, etc

2nd and to many columns is for each line on the linechart I want to map.

eg: StarWars, Marvel, LOTRs, etc... could be more dont know what the values could be or how many.

The values of those columns is a int #. Example dataset.

Periods   StarWars   Marvel  LOTRs

2022-07       120         50         110

2022-08       125         55         105

So how do I attach that to a line chart control? I have read thru the demo codes but none seem to give me the answer.

In my old days, :), I would return a dataset as structured above and then bind that control to the dataset.

Then set the bottom axis to the Periods column values and the Up axis to the values in the other columns.

With the legend using the column names.

Not sure how to describe that in the data class as I dont know the column names that could be coming in.

And not sure what the controls tags should be looking like.

Any help would be appreciated.

Thanks in advance.

Deasun.

Stamo Gochev
Telerik team
 answered on 23 Sep 2022
1 answer
163 views

Hello,

I am using TelerikGrid with the FilterMode and OnRead property, but when I try to filter by a column that the data type in SQL is Text, it does not bring me results.

Timothy J
Top achievements
Rank 2
Bronze
Iron
Iron
 answered on 22 Sep 2022
1 answer
255 views

Hi,

I want to localize "filter", "search","select all" and clear inside grid filtering.

I have found this example, but this is intended more to create your own personalized filter.

https://demos.telerik.com/blazor-ui/grid/overview

Is it possible to just modify those elements?

Stamo Gochev
Telerik team
 answered on 22 Sep 2022
1 answer
372 views

Hi,

I have this code...

protected void OnRead(GridReadEventArgs args)
{
    DataTable oDataTable = TiMain.DataSource.ToTable();
    DataSourceResult oDataSourceResult = oDataTable.ToDataSourceResult(args.Request);

    args.Data = (oDataSourceResult.Data as IEnumerable<Dictionary<string, object>>)
        .Select(oRow => oRow.ToDictionary(
            oCell => oCell.Key,
            oCell => (oCell.Value == DBNull.Value ? null : oCell.Value)
        ))
        .ToList();

    args.Total = oDataTable.Rows.Count;
}

According to my understanding of the documentation ToDataSourceResult should return only with rows that fit the page. But it always return all - sever hundred - of rows regardless of the current page...

Have I missed something?

Tsvetomir
Telerik team
 answered on 22 Sep 2022
1 answer
161 views
When I try to open a ContextMenu or a DropDownList within a Dialog the x and y coordinates of the dropdown have offsets. It seems to me that they still refer to the main "window". Is there any way to avoid that problem ? 
Joana
Telerik team
 answered on 22 Sep 2022
1 answer
506 views

When I upgraded to 3.6.0 my TelerikGrid pager stopped rendering correctly.

The first image below is after the page has been rendered and the data source contains 10 rows.  Paging is enabled using a server-side data source/database repository.  The second image below is simply what it looks like when I click on the dropdown.

 

If I hit refresh I see the normal-looking pager with 7 buttons horizontal as expected.  Like the one that works with version 3.5.0, included below.
But it only appears for a second and then it changes back to the one above.

The grid OnReadHandler looks like this:

protected async Task OnReadHandler(GridReadEventArgs args)
{
InquiryResponse<Drug> response = await _drugAdapter.FindByDataSourceRequestAsync(args.Request, true);
if (response.ResponseData.Any())
{
args.Data = response.ResponseData;
}
args.Total = response.AvailableTotalItems;
}

All downstream methods are async and await is used on all method calls just like I have seen in the demos for using remote data service.

The grid is defined as follows:

<TelerikGrid @ref="@DrugListGridRef"
TItem="@Drug"
OnRead="@OnReadHandler"
Sortable="true"
SortMode="@SortMode.Multiple"
EnableLoaderContainer="false"
FilterMode="@GridFilterMode.FilterMenu"
Pageable="true"
PageSize="@PageSize"
Resizable="true">


<GridSettings>
<GridPagerSettings InputType="PagerInputType.Buttons"
PageSizes="@PageSizes"
ButtonCount="7"
Adaptive="true">
</GridPagerSettings>
</GridSettings>

If I downgrade to 3.5.0 everything works as expected.

Thanks,
Ed

 

Joana
Telerik team
 answered on 22 Sep 2022
1 answer
119 views
How can I fix this accessibility issue? 

Hristian Stefanov
Telerik team
 answered on 21 Sep 2022
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?