Under Review
Last Updated: 30 Mar 2023 10:28 by ADMIN
Gaurav
Created on: 23 Mar 2023 12:13
Category: UI for ASP.NET AJAX
Type: Bug Report
0
Getting Object reference not set to an instance of an object error on RadGrid ItemDataBound

While changing the value from RadCombox, meaning firing the SelectedIndexChanged, I am getting the below error.

Exception information: 
    Exception type: NullReferenceException 
    Exception message: Object reference not set to an instance of an object.
   at MDM.WebApplication.MyPendingActions.rgrid_ItemDataBound(Object sender, GridItemEventArgs e)
   at Telerik.Web.UI.RadGrid.OnItemDataBound(GridItemEventArgs e)
   at Telerik.Web.UI.GridCommandItem.SetupItem(Boolean dataBind, Object dataItem, GridColumn[] columns, ControlCollection rows)
   at Telerik.Web.UI.GridTableView.CreateTopCommandItem(Boolean useDataSource, GridColumn[] copiedColumnSet, GridTHead thead)
   at Telerik.Web.UI.GridTableView.CreateControlHierarchy(Boolean useDataSource)
   at Telerik.Web.UI.GridTableView.CreateChildControls(IEnumerable dataSource, Boolean useDataSource)
   at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
   at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
   at Telerik.Web.UI.GridTableView.PerformSelect()
   at Telerik.Web.UI.GridTableView.DataBind()
   at Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason)
   at Telerik.Web.UI.RadGrid.OnLoad(EventArgs e)
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Control.LoadRecursive()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint).

When trying on localhost SelectedIndexChanged of RadCombobox is getting fired and rgrid_NeedDataSource of RadGrid is not fired but when deployed on IIS, the scenario is opposite, SelectedIndexChanged is not fired but rgrid_NeedDataSource is getting fired.

Please help.

Also another thing, I wanted to understand how to use licenses.licx file in our project for telerik dll version 2013.1.314.45?

1 comment
ADMIN
Doncho
Posted on: 30 Mar 2023 10:28

Hi Gaurav,

It seems that this report is a duplicate of the forum thread you have opened on the same topic:

I would suggest we proceed with the communication in the forum only.

In case we verify that there is misbehavior by Telerik Controls, I will post the relevant information here as well so the issue can be researched by our developers and its progress gets transparent to the community.

Thank you for your understanding!

Kind regards,
Doncho
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.