Hi,
We are using SmartGWT Pro 3.0 version.
I am creating one ListGrid and setting the datasource, in DB we have around 8000 rows and while fetching data using datasource I am properly setting the total no of rows available in DB in my DSResponse object but while running this it is showing only first 75 rows. Any idea what I am missing, below is the code example
<DataSource titleField="bank_alerts.bank_alert_id" tableName="bank_alerts" dataURL="http://localhost:8080/mconsole/chart/dataRequestHandler" ID="bank_alerts">
<fields>
<field type="integer" title="Incident" name="bank_alerts.bank_alert_id" length="1"/>
<field type="text" title="Rule Number" name="bank_alerts.bank_alert_profile_id" length="1"/>
<field type="text" title="Card Number" name="bank_alerts.is_login_card_id" length="1"/>
<field type="datetime" title="Incident Time" name="bank_alerts.create_time" length="1"/>
<field type="text" title="Delivery Channel" name="bank_alerts.action" length="1"/>
</fields>
</DataSource>
Client Code:-
ListGrid bankAlertsGrid = new ListGrid();
bankAlertsGrid.setEmptyMessage("No Alerts Available");
DataSource dataSource = DataSource.get(Constants.VIEW_BANK_ALERTS);
bankAlertsGrid.setDataSource(dataSource);
bankAlertsGrid.setCanAutoFitFields(false);
bankAlertsGrid.setShowAllRecords(true);
bankAlertsGrid.setAutoFetchData(true);
bankAlertsGrid.setDrawAheadRatio(2);
Server Code:-
dsResponse.setData(matchingItems);
dsResponse.setStartRow(startRowIndex);
dsResponse.setEndRow(endRowIndex);
dsResponse.setTotalRows(totalRows);
We are using SmartGWT Pro 3.0 version.
I am creating one ListGrid and setting the datasource, in DB we have around 8000 rows and while fetching data using datasource I am properly setting the total no of rows available in DB in my DSResponse object but while running this it is showing only first 75 rows. Any idea what I am missing, below is the code example
<DataSource titleField="bank_alerts.bank_alert_id" tableName="bank_alerts" dataURL="http://localhost:8080/mconsole/chart/dataRequestHandler" ID="bank_alerts">
<fields>
<field type="integer" title="Incident" name="bank_alerts.bank_alert_id" length="1"/>
<field type="text" title="Rule Number" name="bank_alerts.bank_alert_profile_id" length="1"/>
<field type="text" title="Card Number" name="bank_alerts.is_login_card_id" length="1"/>
<field type="datetime" title="Incident Time" name="bank_alerts.create_time" length="1"/>
<field type="text" title="Delivery Channel" name="bank_alerts.action" length="1"/>
</fields>
</DataSource>
Client Code:-
ListGrid bankAlertsGrid = new ListGrid();
bankAlertsGrid.setEmptyMessage("No Alerts Available");
DataSource dataSource = DataSource.get(Constants.VIEW_BANK_ALERTS);
bankAlertsGrid.setDataSource(dataSource);
bankAlertsGrid.setCanAutoFitFields(false);
bankAlertsGrid.setShowAllRecords(true);
bankAlertsGrid.setAutoFetchData(true);
bankAlertsGrid.setDrawAheadRatio(2);
Server Code:-
dsResponse.setData(matchingItems);
dsResponse.setStartRow(startRowIndex);
dsResponse.setEndRow(endRowIndex);
dsResponse.setTotalRows(totalRows);
Comment