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

[Solved] How to handle Row_Loaded event in ViewModel

2 Answers 96 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sulagna
Top achievements
Rank 1
sulagna asked on 07 Oct 2010, 12:21 PM
Hi,
I have written RowLoaded event in xaml.cs file which is wrong approach.I got review comments that there should not be any code in xaml.cs file and events should be moved to ViewModel.cs file.
My .xaml  file has

RowLoaded

 

 

="RadUseCaseGridView_RowLoaded" event and I am handling this in xaml.cs.How can I move Row_Loaded event to ViewModel.cs.

Regards,
Sulagna



2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 07 Oct 2010, 12:27 PM
Hi,

 I don't believe that this the right way. Why you use RowLoaded in your scenario?

All the best,
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
0
sulagna
Top achievements
Rank 1
answered on 07 Oct 2010, 12:58 PM
Hi
I am using Row_loaded event because that is my requirement.I have used a hirarchical grid and in that I need to fire certain events.
Everything is working fine but I need to know how to handle it in viewModel.cs file instead of xaml.cs file.

Regards,
Sulagna
Tags
GridView
Asked by
sulagna
Top achievements
Rank 1
Answers by
Vlad
Telerik team
sulagna
Top achievements
Rank 1
Share this question
or