Hello,
I have some trouble with an ultrawebgrid on one of my pages. Sometimes, or quite often, the grid is blank and no values are shown except the column headers. Like this:
The problem seems to be random. Sometimes I don't have any troubles at all, and sometimes I have to reload the page like 50 times before the values show up. The problem also varies among different users. I have checked the source code (right-click and view source), and it seems to be the same no matter if you see the values or not. The values are there somehow, but they don't show. The grid stretches out in height as if there were values there, my self-developed paging function detects there are values, but the grid is blank. What could be the cause of this?
I've few questions to get a clear picture of what's going on in the grid:
1) How and where (in which event) the dataSource of the Grid is defined?
2) How the Grid is bound to the data?
3) Which version of NetAdvantage are you using?
4) How is your paging function defined?
I would suggest, first remove the paging and see if this issue occurs or not. Please let me know your response.
Thanks
1) The datasource is defined in page load.
2) I load data from Dynamics AX into a system.data.dataset. This dataset is defined as the datasource and bound to the grid in page load.
3) v8.2
4) Well, my paging is as I said self-developed. The reason for that is that I don't want to load more data from dynamics AX than I need to show one page. So if I pick pagesize=50 in dropdownlist I only load 50 rows over to my dataset, which then is bound to the grid. And the grid's height expands to make place for 50 rows, but nothing is shown. Reload a few times and if you're lucky the values pop up in the grid.
Actually, I had this problem before I developed my paging function. So I don't think that's the problem. The problem has however increased since we hade a server crash and moved stuff to a different server. Could this be a hardware issue?
Hi,
I don't think it's just the hardware issue. However, there might be a possibility. I was wondering if the dataset has the data or not. Is it populated correctly? I would suggest you to define the DataSource of the Grid in InitializeDataSource event instead of PageLoad event. This way you don’t have to make a call to the DataBind method explicitly.
The type of paging you are trying to achieve, can be done using the built in AJAX technology and the built in Paging options for UltraWebGrid. I’m not sure about the business requirements, but you might consider this option.
I was thinking if you drag and drop a new UltraWebGrid on the same page and assign the dataset as the dataSource and then run it without setting any other properties and see if it's still blank or not? Let me know the test results.