jQWidgets Forums
jQuery UI Widgets › Forums › Grid › AutoRowHeight and Emoty results
Tagged: jquery grid control, jqxgrid
This topic contains 12 replies, has 3 voices, and was last updated by kuberasamrat 12 years, 4 months ago.
-
Author
-
Hello,
We are trialling the JQGrid, and have encountered a problem. Our grids were working perfectly until we switched on the “autorowheight” property, now where there is no data, rather than display the message (as was previously), it now just has the loading message spinning indefinitely. IS there another setting i should be setting to handle this occurence?
Hi tthomasknight,
The Grid control’s “autorowheight” property as described in the help documentation and demonstrated in the “Auto- RowHeight” sample, requires setting the “autoheight” property to true, too. If you have set the “autoheight” to true and you encounter some kind of issue, please post a sample which demonstrates your scenario.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comPeter,
I have tried this with the demo on your website and it displays the same error. Try removing all the orders from your xml file and running the sample. It loads the outling of the grid, but the loading panel just keeps spinning. It appears to be having a problem when it can’t find a row to set the height of..
Tom
Hi Tom,
If we remove all orders from the XML file, there would be nothing to be displayed in the Grid.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThat is the problem we are having, If there is no data to display, previously a message saying “No data to display” was shown. Now we are just getting a loading message that just keeps spinning. If i comment out the “autorowheight: true,” it works perfectly. My code is below:
$(document).ready(function () {
var source =
{
url: ‘/MIS3/Job/GetKJListHandler’ + ‘?uniqueID=’ + ‘a5758134-d67e-4026-9ee7-82007b342f60’,
datatype: “json”,datafields: [
{ name: “Name” },
{ name: “ID”, type: “int” },
{ name: “PlannedStartDate”, type: “date” },
{ name: “PlannedFTPDate”, type: “date” },
{ name: “Status” }
]
};
var viewJobURL = ‘/MIS3/Job/View’;
var dataAdapter = new $.jqx.dataAdapter(source);var linkrenderer = function (row, column, value) {
var html = “KJ” + value + ““;
return html;
}$(“#jobGrid”).jqxGrid(
{
source: dataAdapter,
theme: ‘encore’,
width: ‘100%’,
pageable: true,
pagesize: 25,
pagesizeoptions: [’10’, ’25’, ’50’, ‘100’, ‘150’, ‘500’],
autorowheight: true,
autosavestate: true,
autoloadstate: true,
filterable: true,
autoshowfiltericon: true,
autoheight: true,
sortable: true,
selectionmode: ‘none’,
columns: [
{ text: ‘ID’, dataField: ‘ID’, width: 100, cellsrenderer: linkrenderer },
{ text: ‘Name’, dataField: ‘Name’},
{ text: ‘Planned Start Date’, dataField: ‘PlannedStartDate’, width: 150, cellsformat: ‘dd/MM/yyyy’ },
{ text: ‘Planned Print Date’, dataField: ‘PlannedFTPDate’, width: 150, cellsformat: ‘dd/MM/yyyy’ },
{ text: ‘Status’, dataField: ‘Status’, width: 100 }]
});});
Hi Tom,
Thanks for the valuable feedback. We will investigate your scenario and in case we reproduce the reported behavior, we will create a work item about it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThank you peter,
Do you know what the timeline for this is likely to be?
Tom
Hi Tom,
I am unable to provide you a time-frame. Until now, we have at least one release per month and the next one is scheduled for 1-February. Hope that we will be able to investigate the behavior and resolve it.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comThank you Peter,
We have identified another bug with the example i sent you. It appears there is a problem with autoheight and autorowheight. In some scenarios when there is a row that is higher than the others, the grid goes not always resize, this means the bottom row is only partially visible.
Tom
Hi Tom,
I am afraid that we are not able to reproduce the last reported issue.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
I have encountered a different issue regarding autorowheight. Forgive me for spamming this topic.I have used autorowheight and autoheight. When I use mouse wheel on top of grid cells, the height of the cells are increasing continously.
Version 2.7.FYI: I am using images in the columns through cellsrenderer
Hi kuberasamrat,
I am unable to reproduce the behavior. Please, post a sample which demonstrates it, if possible.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
I have used word-wrap. Now I have removed it and it is working perfect.
Thanks,
Kuberasamrat -
AuthorPosts
You must be logged in to reply to this topic.