I have a grid that it seems that it displays about 13 rows if I do not set the height. This is fine when I have a 15 or so records. Is there a way that I can shrink the height of the display area when I only have 1 or 2 records and a little bit larger when there are 4 or 5 etc. I have additional information that gets displayed after the grid renders and if there is only one or two records it looks blank. I’m counting the records from the data source so do I need to do it manually? If so do you have a snippet of code that I could include because I’m not sure where the best place to adjust the grids area would be located.
var dataAdapter = new $.jqx.dataAdapter(source, {
loadComplete: function () {
var length = dataAdapter.records.length;
jQuery(“#Text2”).val(length);
}
}
);
Also, I’m not sure that this is the best way to count the rowcount.
Thanks