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

access griditems on tab from behind

1 Answer 24 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Ulrich Fiege
Top achievements
Rank 1
Ulrich Fiege asked on 01 Jun 2010, 02:09 PM
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

1 Answer, 1 is accepted

Sort by
0
Valentin.Stoychev
Telerik team
answered on 04 Jun 2010, 07:08 AM
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,
Valentin.Stoychev
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.
Tags
TabControl
Asked by
Ulrich Fiege
Top achievements
Rank 1
Answers by
Valentin.Stoychev
Telerik team
Share this question
or