Hi,
I have TabControlcalled mainTabs with a TabItem called CurrentTasks. In the CurrentTasks TabItem I show a GridView(say RadGridView1) with a list of tasks which works fine. This GridViewis populated in code behind with an ObservableCollection.
As per the logic, eachtask in the RadGridView1 has some dependent tasks called PredecessorsTasks(tasks that were completed before the selected task was assigned) andSuccessor Tasks(tasks assigned to other users which are depending on thecurrent task to be completed by the current user).
Now, I want to makethe rows of this RadGridView1 expandable so that I can show thedetails of selected Task in two tabs as Predecessor Tab and Successor Tab. Eachof these tabs would have a GridView(say InnerRadGridView1 andInnerRadGridView2) showing a list of tasks respectively.
I am trying to assignthe ItemsSource Property for InnerRadGridView1 programatically to anObservableCollection in the code behind. The problem is that it does not showany intellisence for me to access the InnerRadGridView1 (for eg. Iwant to assign it as InnerRadGridView1 .ItemsSource = Tasks;where Tasks is my ObservableCollection).
Pleaseprovide me a solution to this issue. Im really stuck.
I am also attaching ascreenshot of what exactly the navigation flow of my application is.
5 Answers, 1 is accepted
Why not use InnerRadGridView1 Loaded event (attached in xaml) to assign ItemsSource for this grid? Sender argument of the event is the grid itself.
Best wishes,
Vlad
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.
All you need is to declare this event (Loaded) in XAML for desired grid and in the code behind cast sender argument to RadGridView and assign ItemsSource.
Greetings,
Vlad
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.