Readonly TextBox in CellEditTemplate filled with value Keypress

2 posts, 0 answers
  1. Henri
    Henri avatar
    74 posts
    Member since:
    Aug 2008

    Posted 21 Sep Link to this post

    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.





  2. Stefan X1
    Stefan X1 avatar
    486 posts

    Posted 26 Sep Link to this post

    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?

    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.
  3. DevCraft banner
Back to Top