Telerik Forums
UI for Blazor Forum
1 answer
120 views

I'm using a chart with BaseUnit="ChartCategoryAxisBaseUnit.Fit"

Aggregate="ChartSeriesAggregate.Sum",   Type="ChartCategoryAxisType.Date"

When clicking on a series it returns a single date (day)  and not the date range that were used for the aggregation.

 

I need the range in order to show the full result list in a grid.

 

How can it be done?

Ilan
Top achievements
Rank 1
Bronze
Iron
Veteran
 answered on 12 Jun 2023
1 answer
324 views

Is this possible?   

I have seen the documentation on highlighting rows, but I haven't seen anything around getting a row to highlight outside of row selection and checkbox selection.

Radko
Telerik team
 answered on 12 Jun 2023
0 answers
147 views
Hello!
Since you changed the classes for displaying table icons, tell us how to change these terrible + and - to other icons?
Previously, the code was working:
.k-hierarchy-cell .k-icon.k-i-plus::before {
     content: "\e005";
     cursor: pointer;
     font-size: 1.3em
}

.k-hierarchy-cell .k-icon.k-i-minus::before {
     content: "\e006";
     cursor: pointer;
     font-size: 1.3em
     color: rgb(var(--primary-a));
     background-color: rgb(var(--primary-d));
     border-radius: 4px
}
Ivan
Top achievements
Rank 3
Iron
Iron
Iron
 asked on 11 Jun 2023
0 answers
96 views
(I am having the same issue as this WPF forum question, but cannot seem to translate the fix for Blazor.)
For the log chart, I am always wanting a bar to display as long as the value itself is not zero.

Would anyone be able to help me?
ReverseBLT
Top achievements
Rank 1
Iron
 updated question on 09 Jun 2023
1 answer
116 views

Just a quick formatting question!

Whenever I create a grid, I always get a small column on the right side.  

How do I remove that?  

Justin
Telerik team
 answered on 09 Jun 2023
1 answer
1.7K+ views

Hi,
in an older web app with kendo ui for asp.net core I have a grid which shows timestamps. The Server send the json data in the post request in the server timezone , i.e. "2023-06-07T07:53:40.6227+02:00" . The javascripte code of the grid component then show the time in the timezone of the client to the user.

A newer web app I made with Blazor Server. The grid always show a datetime column in the grid in the server timezone.

I think there are the tasks needed:
1. determine the timezone of the client with javascript code.
2. applying the timezone of the request to the displayed datetimes in the grid.
3. applying the client timezone in the filter request.

Any ideas how this can be solved?

Best regards,

Peter

Yanislav
Telerik team
 answered on 09 Jun 2023
1 answer
464 views

I'm trying out Telerik in an existing Blazor WebAssembly project. In order to try it out, I'm adding Telerik components next to the existing HTML elements so I can see how they compare.  I have a question about how to set the column width in TelerikGrid. I'd like to set the width based on whichever is larger: the content or the header title.

I tried setting Width="auto" but that didn't work. I tried setting Width to a fixed width, but I'd like to avoid hardcoding the width like that.

Please see the attached image. It shows two tables:

1. The existing table using a regular HTML table with Bootstrap classes "table table-striped". Notice how the columns have different widths.

2. The TelerikGrid with the same headers and data.  Notice how the columns are all the same width.

Nadezhda Tacheva
Telerik team
 answered on 08 Jun 2023
1 answer
450 views

I've use the Telerik WPF grid for years and have recently started to move away from WPF dev. to Blazor dev. In WPF to instigate an edit the user can click a row, then double click a cell and start to edit it which works perfectly because selection of the row(s) can not start an edit.

In Blazor the Incell grid edits are started as soon as the user clicks the grid removing the option to select one or many rows. My applications require both of these interactions but this method of grid edits doesn't seem to be compatible with selection of rows etc.

Is there any way of changing the behaviour of how these Incell grid edits are started? (ideally in the same way the WPF version in cell edits work) or are there likely to be ways of changing this behaviour in future with newer updates?

 

Many thanks,

 

Rob

Radko
Telerik team
 answered on 08 Jun 2023
2 answers
573 views
Hello, 

The Hierarchical Grid  allows us to expand its rows by clicking on a + icon. (k-plus / k-minus)
How can i change the icon? ( k-i-expand / k-i-collapse)

Regards.
Valeriy
Top achievements
Rank 2
Iron
Iron
 updated answer on 07 Jun 2023
1 answer
581 views

Hello,

I have a Telerik grid with data from a List<UserRoleModel> userRoles. This model and table (only) contains the fields UserId, and the RoleId.

I want to show the description of the Role (Field 'Description' of Table 'Roles where Roles.Id = RoleId') and the combined name of the user (Fields 'Firstname + Lastname' from table 'Users where Users.Id = UserId) in two extra custom grid columns next to the UserId and RoleId  columns which are in the grid already (see code).

I probably have to use a column template and have been playing with that, but the documentation I could find is not clear and does not provide a clear sample. I could create two extra fields in the UserRoleModel but I can imagine that a more easy way is possible.

Hope that somebody can give me a simple sample / snippet.

regards, Marc Verkade


private List<UserRoleModel>? userRoles = new List<UserRoleModel>();

               <TelerikGrid @ref="TheGrid"
                         Class="grid"
                         Data=@userRoles
                         Navigable="true">
                <GridColumns>
                    <GridColumn Field="@nameof(UserRoleModel.UserId)" Title="User Id" />
                    <GridColumn Field="@nameof(UserRoleModel.RoleId)" Title="Role Id" />
                    <GridColumn Field="<The field Firstname + lastname from table Users>" Title="User name" />
                    <GridColumn Field="<The field Description' from table Roles" Title="Role name">
                </GridColumns>
            </TelerikGrid>

Nadezhda Tacheva
Telerik team
 answered on 06 Jun 2023
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?