Hi,
I have a webgrid on the page. The grid populated by selecting an item from a webcombo. There are more than 1000 rows. Up to here, everything is fine but I hit with the following issues:
It is very annoying and I can not find anything in the property. Am I missing something here?
Thanks,
Kamal
HelloCould you send me some more detailed inforamtion about the logic behind the combo items. How does it bind to the grid (the model you use - connected or disconnected). Do you access the rows on the client side or on the server side? You could just attach the ASPX page and the code behind, that would be very helpful.Thanks.
I have attached the page and code behind. Please advice if you find anything wrong with the setting.
kamal
Hello,
I removed the LoadOnDemand=”Xml” property and it works normally.the LoadOnDemand property has default value of 50 rows to fetch , and when you scroll down it loads other rows. I can advise you to override this behavior (increase the pageSize for load on demand) , or just disable it in order to have all the rows available. (setting the page size to 0 or 1 should be ok for that).
Hope this helps.
I did removed OnLoadDemand but it has a effect on performance. It takes a while to load data. A friend of mine recommended to use Paging on the Grid.
How can I increase the pagesize? Do I set rowsrange to 0?
Hi Rumen,
I used NetAdvantage v9.2 asp.net controls in my project, Now i have upgraded those to v11.1
But I'm getting run time error which is similar to above posted error.
"Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object "
Please give me your suggestion what i need to do.
GopiChand V
You are absolutly correct. My webgrid is inside a Update Panel.
When a user select an item from a webcombo, the webgrid populated with data. Both these items are inside the Update panel. If I move the webgrid out of the update panel, the data wont bind to the grid. :-(
Yes, I might have some clues - this is a built-in error message from MS AJAX, so I guess you have ScriptManager and possibly UpdatePanel on the page. Is there any chance that the grid is inside UpdatePanel ContentTemplate? I am not sure that mixing UltraWebGrid's own AJAX fetching mode inside MS AJAX UpdatePanel is supported, and this might explain the error.
I tried your suggestions and works fine for the first 100 records. I scrol down and the control fetch the next 100 recrods but when I click on a row, i get this error message:
"Sys.WebForms.PageRequestManagerServerErrorException: Object reference not set to an instance of an object."
Any idea?
You can use the virtual loading mode (loading pages wth scrollbar move down) and set the page size to something bigger, say,
Pager->PageSize = 200
However, I am afraid that if you try to fetch thousands of rows at once, it will always be slow since 1000 rows and all their data and Html needs to be fetched from server to client. I would advice anything in the 50-100-200 (max) range is fine.