Using smartGwt 2.0 and GWT 2.0.
I have a ListGrid configured with list.setShowFilterEditor(true). After it has drawn, I resize it by calling list.resizeTo(width, height). However, this causes the file editor row to separate from the top of the ListGrid. The screenshot attachment show how it looks.
Following is the code that constructs the ListGrid:
And here is the HTML page where the ListGrid is displayed in the 'membersDiv' div:
I have a ListGrid configured with list.setShowFilterEditor(true). After it has drawn, I resize it by calling list.resizeTo(width, height). However, this causes the file editor row to separate from the top of the ListGrid. The screenshot attachment show how it looks.
Following is the code that constructs the ListGrid:
Code:
this.membersList = new ListGrid(); // Appearance this.membersList.setSelectionType(SelectionStyle.MULTIPLE); this.membersList.setAlternateRecordStyles(true); this.membersList.setWrapCells(true); this.membersList.setCellHeight(32); // Configure filtering and pagination this.membersList.setShowFilterEditor(true); this.membersList.setAutoFetchTextMatchStyle(TextMatchStyle.STARTS_WITH); this.membersList.setDataPageSize(50); this.membersList.setShowAllRecords(false); this.membersList.setDrawAheadRatio(1.5f); this.membersDs = new MembersDS(); this.membersList.setDataSource(membersDs); this.membersList.setCanReorderRecords(false); this.membersList.setSortField(MembersDS.USER); this.membersList.setSortDirection(SortDirection.ASCENDING); // this.usersList.setContextMenu(createContextMenu()); this.membersList.fetchData(); RootPanel.get("membersDiv").add(this.membersList);
Code:
<body class="workspaceBodyColor" id="workspaceBody" onLoad="layoutPanels()" onResize="layoutPanels()"> <table id="header" class="workspaceHeader" border="0" cellpadding="0" cellspacing="0"> <tr> <td class="workspaceHeaderColor" width="100%"><%= channelTitle %><span class="groupHintColor"><span class="groupHint"><%= groupTitle %></span></span></td> </tr> <% if (preamble != null) { %> <tr> <td class="content" style="padding-left: 0px; padding-top: 8px;"><%= preamble %></td> </tr> <% } %> </table> <div id="membersDiv" /> <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe> </body>
Comment