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

Binding command to GridViewCheckBoxColumn

3 Answers 119 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Twistur
Top achievements
Rank 1
Twistur asked on 17 Jan 2012, 12:10 AM
How can I achieve this? I don't want to define a cell template so I rather stick with GridViewCheckBoxColumn but I don't see the Command property.

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 17 Jan 2012, 08:08 AM
Hello Gio,

Generally, GridViewCheckBoxColumn does not provide Command property. What you can try is either to define CellTemplate or create your own custom column that exposes such a property.
Could you clarify why you do not want to use CellTemplate ? Will it be possible to explain with a bit more details what is the exact scenario that you want to achieve and what is the command you want to be fired ?  


Regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Twistur
Top achievements
Rank 1
answered on 18 Jan 2012, 12:00 AM
We're good with this one. I use a cell template. We just need a command because the view model already has it and we don't want to re-write the codes.

Thanks,
0
Maya
Telerik team
answered on 18 Jan 2012, 07:35 AM
Hello Gio,

You can use the same command from your ViewModel when working with CellTemplate as well (you will need to define the Source property of the Command binding to your ViewModel).
Let me know in case you have any troubles with the implementation.

Greetings,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
GridView
Asked by
Twistur
Top achievements
Rank 1
Answers by
Maya
Telerik team
Twistur
Top achievements
Rank 1
Share this question
or