This is a migrated thread and some comments may be shown as answers.

[Solved] Custom GridViewDataColum with cell logic

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
MI Pro
Top achievements
Rank 1
MI Pro asked on 17 Jun 2009, 12:16 PM
Hi,

I have created a custom GridViewDataColumn that executes some logic depending on the DataItem passed into the CreateCellElement.

Now in order to return the correct FrameworkElement for the CreateCellElement I talk to a WCF inside the custom GridViewDataColumn. This works just fine and the cell values in the grid pops up asynchronously which is what I want. 

However, whenever I scroll the grid it fires the CreateCellElement again and redoes all the logic. This is not what I want, I just want to query the WCF once when I bind the grid. 

Am I missing something here? Any Ideas?

Thanks, Simon

1 Answer, 1 is accepted

Sort by
0
Accepted
Vlad
Telerik team
answered on 22 Jun 2009, 05:22 AM
Hi Simon,

The grid scrolling is virtual - rows outside of view area are destroyed and created again when needed. You can cache your data and retrieve them from this cache on grid scrolling.


Kind regards,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
MI Pro
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or