Examples of selectRecord()


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

                    String value = (String) event.getDisplayValue();
                    if (value==null) return;
                   
                    RecordList recordList = grid.getDataAsRecordList();
                    int index = recordList.findIndex(item.getFieldName(), value);
                    grid.selectRecord(index);
                }
            });
           
            setInitHandler(new FormItemInitHandler () {
                @Override
View Full Code Here

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

                            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

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


        // The filter is just to limit the number of records in the ListGrid - we don't want to print them all
        printGrid.filterData(new Criteria("CountryName", "land"), new DSCallback() {
            public void execute(DSResponse response, Object rawData, DSRequest request) {
                printGrid.selectRecord(0);
                printViewer.setData(new Record[]{printGrid.getSelectedRecord()});
            }
        });

        return printContainer;
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.