Telerik Forums
UI for Blazor Forum
1 answer
178 views

Good Day,

I have been implementing drag&drop functionality between two Telerik Blazor grids using different data models. Using the documentation article as a reference below, I am able to get 2 models (derived from the same interface) to drag between 2 grids.

How to Drag and Drop Different Models between Multiple Grids - Telerik UI for Blazor

However, grid functions such as sorting and filtering start throwing errors, when unique fields are introduced per model. To re-produce, start with the demo code in the artcile and try and sort "Unique Field 1".  This throws an exception: "Unhandled exception rendering component: Invalid property or field - 'UniqueField1' for type: IParentSampleData". See screenshot attached.

This makes sense, but it's very limiting. My question is, if this can "worked around" in any way.

I have tried to intercept the "StateChanged" event. But as I still need to call gridObj.SetStateAsync(args.GridState), I cannot circumvent the issue. As per the error, I assume that these Grid methods use the interface definition and not the actual model instance to determine available properties for filtering & sorting, etc.

Is there somethig I am missing? Would anyone have any experience with this scenario and could point me in the direction of a "work around" if one exists?

Many thanks,
Peter

Nadezhda Tacheva
Telerik team
 answered on 15 Jun 2023
0 answers
466 views
Is it possible to perform infinite scrolling in the grid, where the data is pulled from an external API as the user scrolls? If so, is there a sample I could use?
Andy
Top achievements
Rank 1
 asked on 14 Jun 2023
1 answer
1.3K+ views
How do I add a Clear button to a DropDownList?  The docs say that it can be done, but don't give any examples that I can find.
Nadezhda Tacheva
Telerik team
 answered on 14 Jun 2023
0 answers
153 views

**Question Removed Due to Finding Answer***
Cannot delete question which is a shame.

ReverseBLT
Top achievements
Rank 1
Iron
 updated question on 13 Jun 2023
1 answer
150 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
347 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
168 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
145 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
147 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.8K+ 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
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?