1. #1
    Sencha User
    Join Date
    Nov 2009
    Posts
    51
    Vote Rating
    0
    smiletolead is on a distinguished road

      0  

    Default Initial validation of cell editors

    Initial validation of cell editors


    Hi all,
    I have text field as a cell editor in a grid cell. I want to show the cell as invalid if the value of the textfield is not valid. I have set the text field value using setValue() method. When I call textField.validate() method, it does not work properly as it is validating the raw value which wil be null or "" initially. I can't set the raw value of the text field before it is rendered. Is there a way to validate the text field before it is rendered.

    Thanks,
    Ganesh

  2. #2
    Sencha User
    Join Date
    Nov 2008
    Location
    Vienna - Austria
    Posts
    870
    Vote Rating
    1
    micgala is on a distinguished road

      0  

    Default


    Hi.

    You could try calling the validate method on your FormPanel after it is rendered.

  3. #3
    Sencha User
    Join Date
    Nov 2009
    Posts
    51
    Vote Rating
    0
    smiletolead is on a distinguished road

      0  

    Default


    The fields get validated when they are rendered. Assume that there is a default value for a cell. How do I validate it before it is rendered. In this case, the cell editor for that cell is not yet rendered.

Thread Participants: 1