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

Data not loading in RadGridView inside a RadTabControl

2 Answers 45 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Divya
Top achievements
Rank 1
Divya asked on 18 Nov 2011, 07:30 AM
Hi,

I am using RadTabControl with 2 tab items. In second tab, I have a RadGridView which is binded to a List of objects in view model. When the user selects the second tab, I am fetching data from database and populating the list. But it is not displaying in the RadGridView. If I go back to first tab and come back, it is working.
Is there any way to resolve this.

Regards,
Divya

2 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 22 Nov 2011, 04:20 PM
Hello Divya,

 I guess the problem is that you retrieve your data in the SelectionChanged event handler of the RadTabControl which fires before the RadGridView is loaded. Can you try to use the Loaded event handler of the RadGridView in order to call the WCF service ? Could you please elaborate more on your scenario if it is more complex ? Any sample code would be highly appreciated. Thank you in advance.

All the best,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Divya
Top achievements
Rank 1
answered on 22 Nov 2011, 04:41 PM
thanks, it is working
Tags
TabControl
Asked by
Divya
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Divya
Top achievements
Rank 1
Share this question
or