Results 1 to 3 of 3

Thread: getRowClass

  1. #1
    Sencha Premium Member
    Join Date
    Apr 2015
    Posts
    40
    Answers
    2

    Post getRowClass

    Hi everybody, I cant find the getRowClass configuration for a grid in Architect, I see the rowViewModel and now I have this code but doesn't works.

    Code:
                                     xtype: 'grid',
                                     rowViewModel: {
                                        getRowClass: function( param1, param2 ... )
                                        {
                                            // my code
                                        }
                                    }
    How can I set a custom class to a grid row?

  2. #2
    Sencha Premium Member
    Join Date
    Apr 2015
    Posts
    40
    Answers
    2

    Default

    Anyone??

  3. #3
    Sencha User petr.felzmann's Avatar
    Join Date
    Apr 2015
    Posts
    187
    Answers
    12

    Default

    According to doc the rowViewModel is string or config object specifying the type of the ViewModel.

    So you can create class in SA (Project Inspector, + sign, Class, Views) and set that class name to rowViewModel as string.

    rowViewModel.jpg

Similar Threads

  1. Grid getRowClass
    By dmdarki in forum Ext: Discussion
    Replies: 3
    Last Post: 3 Apr 2014, 4:22 PM
  2. getRowClass checkBoxSlection
    By sseetharaman in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 14 Apr 2009, 9:46 AM

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
  •