I have one more clarification while setting the chart . SetContentCore() method gets called repeatedly when i try to resize the Radgridview . Any way/event to cancel this call ?

1 Answer 112 Views
ChartView GridView
Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
Om Pushkara deep asked on 14 Jun 2021, 05:56 PM

I have created a RadGridView and added custom column to display ChartView in it. I am using SetContentCore method to filter data for each row. 

The above feature works fine, but I face one problem. Whenever we try to resize the parent window manually, the SetContentCore method getting called repeatedly which in turn creates multiple chart element within one column.

Please help to find which event triggers this method call, so that I can disable the same.

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 15 Jun 2021, 05:01 AM
Hello, 

The SetContentCore method of the custom cell is expected to be called very often in a similar way like the CellFormatting event is being fired. Its purpose is to ensure that the proper data is displayed in the grid cells. Since RadGridView reuses its visual cell elements due to the data virtualization, the SetContentCore method is expected to be called whenever user interaction is being executed, e.g. mouse hover, scrolling, etc. 

If you populate any data points in the hosted chart in this method, please make sure that you first clear the existing data points before adding the relevant ones for the currently associated row.

In case you are still experiencing any further difficulties, I would kindly ask you to submit a support ticket from your Telerik account and provide more details about the exact scenario you have and how to replicate the undesired behavior locally. A sample project would be quite useful. Thus, we would be able to investigate the precise case and provide further assistance.

I hope this information helps. If you need any further assistance please don't hesitate to contact me.

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
commented on 15 Jun 2021, 05:30 AM

I am creating a custom chart column. Clearing it each time when we do load does the trick. Thanks once again.
Tags
ChartView GridView
Asked by
Om Pushkara deep
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or