access griditems on tab from behind

2 posts, 0 answers
  1. Ulrich Fiege
    Ulrich  Fiege avatar
    62 posts
    Member since:
    Sep 2005

    Posted 01 Jun 2010 Link to this post

    hello i have the problem that i can't change the selected item in radgrid. the ragdrid is
    on a second tab in a radwindow. when i going once to this tab is works afterwards correctly and
    i can access the items in radgrid and set or get to selected from code behind. when the grid on tab was not
    shown before i always get items.count = 0. my problem is that i need to set a selected item before showing
    the window. how can i do this. thank you ... greetings ulrich
  2. Valentin.Stoychev
    Valentin.Stoychev avatar
    2198 posts

    Posted 04 Jun 2010 Link to this post

    Hello Ulrich Fiege,

    before the grid is displayed its items are not populated - this is the reason for items.count=0. You can't set the selected item before teh grid is populated. You need to handle the selected event for the tab item and to set the selected item at this moment.

    Best wishes,
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft R3 2016 release webinar banner
Back to Top