Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    ListGrid context menu

    How to change the default settings of the header context-menu of a listGrid?
    I would like to hide the "fields" submenu and similar changes.

    Using smartgwt 6.0p power

    #2
    canPickFields: false will hide the Columns submenu - similar ListGrid properties, like canGroupBy and canFreezeFields, affect other items in the header menu.

    Comment


      #3
      thank you for the quick response

      Comment


        #4
        In my listGrids I have the "group by..:" always disabled. Any idea why? I have a very simple listGrid and I cannot select "group by" in the context menu. This option is always disabled.

        Code:
        public void onModuleLoad() {  
         
                VLayout vlayout = new VLayout();
                
                ListGrid lg = new ListGrid();
                
                ListGridField nameField = new ListGridField("f_name", "Last name");
                ListGridField vornameField = new ListGridField("f_vorname", "First name");
                lg.setFields(nameField, vornameField);
                lg.setDataSource("schuelerSimple");
                vlayout.addMember(lg);
                vlayout.setHeight100();
                vlayout.setWidth100();
                lg.fetchData();
                
         
                vlayout.draw();  
            }
        Code:
        <DataSource ID="schuelerSimple" serverType="sql" tableName="t_schueler">
        
            <fields>
                <field name="f_schueler_id" type="sequence" primaryKey="true" />
          
                <field name="f_name" type="text" required="true" />
                <field name="f_vorname" type="text" />
        
            </fields>
        
        </DataSource>
        Using Smartgwt 6.0-p20160519 power

        Comment


          #5
          See listGrid.groupByMaxRecords.

          Comment

          Working...
          X