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

[Solved] setting IsReadonly won't stop custom cell from being edit

3 Answers 79 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.
neo e
Top achievements
Rank 1
neo e asked on 04 Feb 2011, 08:11 PM
I have a custom gridviewdatacolumn with a custom celltemplate. in the custom celltemplate there is a checkbox. the gridview column is set to be readonly, but the checkbox in the cell is still checkable, is that the expected behavior?

3 Answers, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 07 Feb 2011, 05:26 PM
Hi Neo,

You may take a look at the following forum thread
http://www.telerik.com/community/forums/silverlight/gridview/column-isreadonly-not-working.aspx

Greetings,
Vanya Pavlova
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
0
Tyree
Top achievements
Rank 2
answered on 07 Feb 2011, 05:43 PM
I cannot click the link so perhaps it covers this but the IsReadOnly does not know you have an editable control in the CellTemplate. Infact if you do decide to do that you are going to be circumventing several helpful edit related features of the grid as the grid is not going into edit mode, but you are editing the data. Perhaps for presentation purposes you want it to appear you can edit a cell all the time but generally speaking you cannot physically edit more then one cell at a time and for each edit you will have to navigate to the control through some means which can/should? trigger the edit of said control.

Just my thoughts...good luck!
0
Maya
Telerik team
answered on 07 Feb 2011, 05:50 PM
Hello Tyree,

This is the link to the forum thread mentioned previously. Generally, in case you want to disable the clicking of the CheckBox, you may use its IsEnabled property instead and set it to "False".
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
neo e
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Tyree
Top achievements
Rank 2
Maya
Telerik team
Share this question
or