listgrid

how to display columns as rows in ListGrid in Smart gwt?

有些话、适合烂在心里 提交于 2020-01-06 03:53:24
问题 I am a new bee to Smart gwt. Basically I have my data structure as: A |_____ B1 |__C1 |__C2 |__C3 |_ B2 So i have created my ListGridRecord as follows: public class VEPAreaRecord extends ListGridRecord{ public VEPAreaRecord(){ } /** * @param vepAreaName * @param checkStations */ public VEPAreaRecord(String vepAreaName, String[] checkStations) { setVepAreaName(vepAreaName); setCheckStations(checkStations); } /** * @return the vepAreaName */ public final String getVepAreaName() { return

set the values in Listgrid (smartGWT)

Deadly 提交于 2019-12-31 05:20:28
问题 I am trying to use smart Gwt, Listgrid. I am using both com.google.gwt.user.client.ui and smart gwt. I have value in a ListGridRecords[] records. I am unable to set the values in table. this piece of code is in composite. public TableDocument(Action action) { initWidget(getTablePanel()); } private HorizontalPanel getTablePanel() { if (tablePanel == null) { tablePanel = new HorizontalPanel(); tablePanel.setSize("144px", "75px"); addtable(); } public void addtable() { // TODO Auto-generated

date filtering not working in smart gwt

二次信任 提交于 2019-12-13 04:39:52
问题 i am developing a smartGWt application that needs to filter list grid content by date and by other staff, every thing is working correctly except the date filtration, this is how i am defining the date fields : registeredDate = new DataSourceDateField("registrationDate", voc.registeredDate()); registeredDate.setRequired(true); verificationDate = new DataSourceDateField("lastVerificationDate", voc.verificationDate()); verificationDate.setRequired(true); the same as every other field this is

smartgwt listgrid RestDataSource not populating

半城伤御伤魂 提交于 2019-12-06 15:42:47
问题 Im new using this front end framework application... I recently started to work with smartgwt and i'm bulding a new application with a Spring MVC integration. I'm using a ListGrid with a RestDataSource (Consume the Rest service with mvc:annotation-driven for plain JSON) I can see that the servaice gets consuming properly perhaps my grid is never shown with the data in it. Can someone help me here ? Here's my ListGrid class public class ListGrid extends com.smartgwt.client.widgets.grid

smartgwt listgrid RestDataSource not populating

百般思念 提交于 2019-12-04 21:10:02
Im new using this front end framework application... I recently started to work with smartgwt and i'm bulding a new application with a Spring MVC integration. I'm using a ListGrid with a RestDataSource (Consume the Rest service with mvc:annotation-driven for plain JSON) I can see that the servaice gets consuming properly perhaps my grid is never shown with the data in it. Can someone help me here ? Here's my ListGrid class public class ListGrid extends com.smartgwt.client.widgets.grid.ListGrid { private final SpringJSONDataSource springJSONDataSource; public ListGrid(List<DataSourceField>

Smartgwt selectitem key value issue

可紊 提交于 2019-12-03 22:53:24
问题 I have a SelectItem which I fill through a Map that has this combo is within a listgridfield, so good up there, but when I select any item in the combobox instead of get the description or value of the map puts the key in the listgridfield. How I can do to make me set the value instead of key? now I tried to do with AddChangeHandler but has not worked. I got the next code: final ListGridField measureField = new ListGridField(CdmsConstants.MEASURE_ABB, CdmsConstants.CMB_MEASURE_TITULO, 100);

set the values in Listgrid (smartGWT)

雨燕双飞 提交于 2019-12-02 09:33:06
I am trying to use smart Gwt, Listgrid. I am using both com.google.gwt.user.client.ui and smart gwt. I have value in a ListGridRecords[] records. I am unable to set the values in table. this piece of code is in composite. public TableDocument(Action action) { initWidget(getTablePanel()); } private HorizontalPanel getTablePanel() { if (tablePanel == null) { tablePanel = new HorizontalPanel(); tablePanel.setSize("144px", "75px"); addtable(); } public void addtable() { // TODO Auto-generated method stub if(isDocumentPresent()==false){ tablePanel.add(getNoDocumentLabel()); }else{ tablePanel.remove

SmartGWT: is it possible to color a a certain row in a list grid?

六眼飞鱼酱① 提交于 2019-12-01 21:15:57
all is it possible to color a certain Row in smartGWT listGrid ? i want to color just 1 row , not all the listGrid In SmartGWT, methods that end with Style (e.g.- get Style, getBaseStyle, getCellStyle, etc.) need to return a CSS class defined elsewhere (.css file, inline css in application load jsp, etc.). Same applies for set Style methods. Unless lot of CSS customizations are done warranting the need for such, using getCellCSSText would probably be the best option. getCellCSSText returns CSS text per cell, and will be called during every redraw. final ListGrid resultsGrid = new ListGrid() {

Smartgwt selectitem key value issue

僤鯓⒐⒋嵵緔 提交于 2019-12-01 02:03:51
I have a SelectItem which I fill through a Map that has this combo is within a listgridfield, so good up there, but when I select any item in the combobox instead of get the description or value of the map puts the key in the listgridfield. How I can do to make me set the value instead of key? now I tried to do with AddChangeHandler but has not worked. I got the next code: final ListGridField measureField = new ListGridField(CdmsConstants.MEASURE_ABB, CdmsConstants.CMB_MEASURE_TITULO, 100); final SelectItem measureComboBox = new SelectItem(); measureComboBox.setDefaultToFirstOption(false);

Support of pagination in smartGWT for ListGrid?

微笑、不失礼 提交于 2019-11-30 15:53:12
问题 I have noticed after some research that smartGWT don't support pagination in the ListGrid but only dynamic scroll. But if I really need pagination, how can I achieve this? Let's say I want something like this with the " next " and " previous " buttons: http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable PS: This example is in GWT, what I want is something similar but in smartGWT 回答1: I'm sorry that there is no Paging component in SmartGWT. But some nice guy has written a