This is a migrated thread and some comments may be shown as answers.

RadFilter.LoadSettings() Object Reference issue

1 Answer 79 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Abhijit
Top achievements
Rank 1
Abhijit asked on 29 Nov 2012, 10:54 AM
Hi,

I am getting an object reference error for the below mentioned highlighted line of code

radFilter.RootGroup.Expressions.Clear();
radFilter.LoadSettings(Session["state"].ToString());
radFilter.RecreateControl();

On debugging i found out that neither the radFilter is null and nor the value of Session["state"] is null. Still i get the object reference error, this happens only in certain scenarios which we are unable to understand. Since both the objects are not null i am assuming that when the control tries to implement load settings for radfilter, the LoadSettings method throws up an error.

Kindly let me know if there is a workaround for such an issue

Thanks and Regards,
Abhijit Narvekar

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 04 Dec 2012, 09:49 AM
Hi Abhijit,

Based on your description it is hard to determine the cause of the problem. In order to further investigate the issue you could assemble a sample project which replicates the issue, upload it to a service and send us a link in order to debug the problem and find the cause of it.

Additionally, you could give us more information on the steps to reproduce the error and the full stack trace of the exception.

All the best,
Antonio Stoilkov
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Grid
Asked by
Abhijit
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or