Results 1 to 3 of 3

Thread: Get record original value in getRowClass

  1. #1

    Default Get record original value in getRowClass


    I have function like below which converts incoming field value i..e Y/N to true/false.
    function convertCheckboxVal(v) {
         return v === true || v === 'Y';
    function serializeCheckboxVal(v) {
        return v ? 'Y' : 'N';
    Ext.define('Abc.view.component.model.ReviewFlagColumn', {
        extend: '',
        alias: 'data.field.reviewFlagColumn',
        name: 'REVIEW_FLAG_COLUMN',
        convert: convertCheckboxVal,
        serialize: serializeCheckboxVal
    But i have a requirement where in based on this Y/N value only i need to do some highlighting in getRowClass. Here i always get true/false. Can i get the original value before convert?.

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Sydney, Australia


    No, there's nothing that stores the original value.

    Can you explain why it matters? In getRowClass you still have a boolean that's easier to test, as opposed to "Y" or "N".
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3


    Yeah i have true/false value with me, but user configures seeing the backed values as Y and configures saying highlight the row when value is Y.

Similar Threads

  1. Replies: 1
    Last Post: 16 Apr 2015, 9:52 PM
  2. EditorGrid record with red triangle after restored the original value in cell
    By cristiano.gregnanin in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 14 Oct 2014, 3:01 AM
  3. Hide grid rows depending on record value (getRowClass occupied)
    By Dr. Flink in forum Ext 2.x: Help & Discussion
    Replies: 10
    Last Post: 6 Jul 2012, 1:12 AM
  4. Replies: 1
    Last Post: 25 Feb 2011, 1:43 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts