Package com.smartgwt.client.widgets.grid

Examples of com.smartgwt.client.widgets.grid.ListGrid.removeData()


        removeButton.setWidth(150);
        removeButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                CountryRecord record = new CountryRecord();
                record.setCountryCode("UK");
                countryGrid.removeData(record);
                removeButton.disable();
            }
        });
        hLayout.addMember(removeButton);
View Full Code Here


        removeButton.setWidth(150);
        removeButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
                CountryRecord record = new CountryRecord();
                record.setCountryCode("UK");
                countryGrid.removeData(record);
                removeButton.disable();
            }
        });
        canvas.addChild(removeButton);
View Full Code Here

        countryGrid.setAutoFetchData(true);
       
        IButton removeFirst = new IButton("Remove First");
        removeFirst.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        countryGrid.removeData(countryGrid.getRecord(0));       
      }         
        });
        removeFirst.setLeft(0);
        removeFirst.setTop(240);
        removeFirst.setWidth(145);
View Full Code Here

        IButton removeSelected = new IButton("Remove First Selected");
        removeSelected.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        ListGridRecord selectedRecord = countryGrid.getSelectedRecord();
        if(selectedRecord != null) {
          countryGrid.removeData(selectedRecord);
        } else {
          SC.say("Select a record before performing this action");
        }
      }
         
View Full Code Here

        IButton removeAll = new IButton("Remove All Selected");
        removeAll.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
        ListGridRecord[] selectedRecords = countryGrid.getSelection();
        for(ListGridRecord rec: selectedRecords) {
          countryGrid.removeData(rec);
        }
      }         
        });
        removeAll.setLeft(320);
        removeAll.setTop(240);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.