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

About the radcheckBox

2 Answers 123 Views
GridView
This is a migrated thread and some comments may be shown as answers.
anouar b
Top achievements
Rank 1
anouar b asked on 24 Aug 2009, 06:47 AM
Hello,

I want to disable to modify the checkBox in the gridView. I make AllowEditRow à false but the user can always modify the checkBox.

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
anouar b
Top achievements
Rank 1
answered on 24 Aug 2009, 07:22 AM
Hello

I have an another question :
Why i haven't a context menu with the CheckBox?

Thanks in advance
0
Boryana
Telerik team
answered on 24 Aug 2009, 12:44 PM
Hi Anouar,

Thank you for contacting us. I am not sure I understand the first issue completely. Typically, if you do not want to let the user modify a column, you should set the ReadOnly property of that column to True. Here is sample code how to do that:

this.radGridView1.Columns["MyColumnUniqueName"].ReadOnly = true

Please, note that an issue with setting the ReadOnly property of the RadGridView columns was introduced in Q2, however, the issue was resolved immediately in Q2 SP1. So, please, upgrade your project to Q2 SP1 and let me know the result.

About the second question, you are right that there is no default context menu for the RadChechBoxCells. If you want to have a context menu, you need to assign a custom one. You will find more information how to achieve that here. I have also attached a sample project that demonstrates how to attach the custom RadContextMenu to RadChechBoxColumn. I hope this is helpful. If you have further questions, please, contact me back.

Best wishes,
Boryana
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
anouar b
Top achievements
Rank 1
Answers by
anouar b
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or