I'm using UltraWebGrid on my web page. I've implemented my grid using LoadOnDemand set to XML. Paging is working fine for me but whlie sorting I get the following error when I call DataBind from InitializeDataSource.
[NullReferenceException: Object reference not set to an instance of an object.] Infragistics.WebUI.UltraWebGrid.RowsCollection.Sort(Boolean caseSensitive) +820 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.SortGroupRows(RowsCollection rows) +150 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.PerformGroupRows() +213 Infragistics.WebUI.UltraWebGrid.DBBinding.BindList(IEnumerable datasource) +1984 Infragistics.WebUI.UltraWebGrid.DBBinding.DataBind(Object dataSource, String dataMember) +1265 Infragistics.WebUI.UltraWebGrid.UltraWebGrid.DataBind() +855
Any help even a link to some knowledgebase article will be much helpfull. Quick response will be much appreciated.
Guys,
Did anything happen with this bug? I'm having the same with AutoGenerateColumns but am unable to add them manually!
Thanks
I think I ran into this same bug recently - bug number 11228. I was binding to a datareader on each postback, and didn't have any columns defined in the ASPX. There was a fix made to prevent the NRE from firing, but here were the development recommendations:
Hope this helps,
-Tony
Hi Tony,
we have the same problem and can not use your work arounds. Is there a hotfix available for 2008.3? Where can I find bug number 11228?
Christoph
Hello,
There is a dedicated area in the public forums now that announced hotfixes:
http://forums.infragistics.com/forums/247.aspx
Latest hotfix was relased on Jan, 23rd, list of changes is available in the hotfix package. You can also always contact Developer Support direclty via the following link
http://www.infragistics.com/Support/#Overview
and request more information on a specific bug.
On Button click I am creating the columns at runtime. Then setting the datasource and binding the data . First time it works fine. But when I click on button second time it gives below error :
at Infragistics.WebUI.UltraWebGrid.UltraGridColumn.get_SortingAlgorithmResolved() at Infragistics.WebUI.UltraWebGrid.RowsCollection.Sort(Boolean caseSensitive) at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.SortGroupRows(RowsCollection rows) at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.PerformGroupRows() at Infragistics.WebUI.UltraWebGrid.DBBinding.BindList(IEnumerable datasource) at Infragistics.WebUI.UltraWebGrid.DBBinding.DataBind(Object dataSource, String dataMember) at Infragistics.WebUI.UltraWebGrid.UltraWebGrid.DataBind()
Please suggest solution for this.