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

[Solved] Rowloaded event after itemsouce is set?

1 Answer 91 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.
bborie0107
Top achievements
Rank 1
bborie0107 asked on 19 Oct 2009, 09:52 AM

Hi I am tesing on RadGridview control. And I don't get when rowloaded event fires.  my SL appication calls WCF web service asynchronouly. In constructor I call WCF web service and attach method which runs when the result arrived. And I make Gridview
itemsource from the result . I don't know what kinds of data will be bound to itemsource at design time. I'd like to apply custom filter 
row on Gridview as telelik's demo site provides. But RowLoaded event is fired before WCF results id delivered from WCF Web Service So there were  no  GridViewHeaderCell instances  in GridView. How can i solve this situation. 
I tried to rebind itemsouce . But i don't think it works as i expected.  


Park 

ps : I am not native english speaker So Please Let me know if you don't understand exactly what i meant  

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 20 Oct 2009, 07:30 AM
Hi Park,

You can try DataLoaded event instead to find GridViewHeaderRow using our powerful extension methods. Here is an example:

var headerRow = grid.ChildrenOfType<GridViewHeaderRow>().FirstOrDefault();
...

Sincerely yours,
Vlad
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
bborie0107
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or