Package com.smartgwt.client.data

Examples of com.smartgwt.client.data.RecordList.find()


                            ListGrid grid = (ListGrid)event.getSource();
                            RecordList data = grid.getDataAsRecordList();
                            CanvasItem item = grid.getCanvasItem();
                            String value = (String)item.getValue();
                            String fieldName = item.getFieldName();
                            if (value != null) grid.selectRecord(data.find(fieldName, value));                           
                        }
                    });
                   
                    grid.addSelectionUpdatedHandler(new SelectionUpdatedHandler() {
                        @Override
View Full Code Here


   */
  public void onMessageLoaded( GWTMessage message ) {

    RecordList list = this.grid.getRecordList();
    if ( list != null && list.getLength() > 0 ) {
      MessageGridRecord record = (MessageGridRecord) list.find( MessageListFields.ID.name(), String
          .valueOf( message.getId() ) );
      if ( record != null ) {
        GWTMessageRecord source = message.getMessageRecord();
        int index = this.grid.getRecordIndex( record );
        if ( index > -1 ) {
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.