Jump to content

mhmda

uniGUI Subscriber
  • Posts

    1141
  • Joined

  • Last visited

  • Days Won

    157

Posts posted by mhmda

  1. On 9/3/2019 at 5:27 PM, kkelchev said:

    small button in the left side of grid raw.

    What about the '+'/'-' signs to expand/collapse row widget?

    This is how Extjs works (normal behavior), I don't see any problem with one click to expand/collapse rows.

    If you need to change the '+'/'-' icons OR you want to use DoubleClick to expand/collapse then you have to do it using client-side code (js).

  2. function beforeInit(sender, config)
    { 
     config.groupingFeature = Ext.create('Ext.grid.feature.Grouping',{
       groupHeaderTpl:new Ext.XTemplate('{[this.getGroupTitle(values.rows[0])]}',
        {
          getGroupTitle: function(values) {
                 if(values.data[1]=='') 
                  return 'My custom title: '+values.data[8];/*<--[8]field index*/
                 else 
                  return 'Other title: '+values.data[2];/*<--[2]field index*/
            }
         })   
      });  
      config.features= [config.groupingFeature];
     }

     Grid->Unievents

    I already explained that in one of my videos :-)

    • Upvote 1
×
×
  • Create New...