Data not loading in RadGridView inside a RadTabControl

3 posts, 0 answers
  1. Divya
    Divya avatar
    5 posts
    Member since:
    Sep 2012

    Posted 18 Nov 2011 Link to this post

    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. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 22 Nov 2011 Link to this post

    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 >>

  3. DevCraft banner
  4. Divya
    Divya avatar
    5 posts
    Member since:
    Sep 2012

    Posted 22 Nov 2011 Link to this post

    thanks, it is working
Back to Top