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

Readonly TextBox in CellEditTemplate filled with value Keypress

1 Answer 134 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Henri
Top achievements
Rank 1
Henri asked on 21 Sep 2016, 01:13 PM

Dear Devexpress,

We are using your Gridview for WPF version 2015.1.225.40.

We have a problem :

for all columns we have a CellTemplate and a CellEditTemplate. The CellTemplate  displays a value(sum) and is always read only.

The CellEditTemplate contains 2 textboxes were 2 separate values can be entered.
When those 2 Textboxes in the CellEditTemplate are read-only, there is still a way to enter a value., Why ?

How is it possible ? By selecting a column by mouse. Just one click on it.( It may not go in CellEditTemplate ). Then press a key (fe 2). Result => the readonly textbox contains now a 2 !

This may not happen.

Is there a solution to fix this problem ?

I have put the exemple code in a attached file. When the CanEdit1 property is set to false the problem occurs.

regards,
Gert

 

 

 

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 26 Sep 2016, 10:41 AM
Hello Gert,

I tested a similar scenario locally and it seems that when the IsReadOnly of the TextBoxes is set to True, they cannot be edited. Can you please verify that the Binding of the IsReadOnly property is correct? Are there any Binding errors in the output window when the application is ran in debug mode? Please note also, that the column cannot be aware what element is defined within the predefined template, thus it cannot control its behavior. So, may I ask you to try the same implementation with a standard MS Grid? Is there any difference in the way the control behaves?

Regards,
Stefan X1
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Henri
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or