Hi,
I think I might just be a little confused but I cannot get the above combination to work.
I have a RadListBox. I have an Array of objects that I bind using the "DataSource" attribute. I set this programmatically. I also set the "DataTextField", the "DataValueField" and the call the "DataBind" method.
I have created a Filter field on the RadFilter in the designer and set the "FieldName" value to be the same as the "DataTextField" from the RadListBox. I then programmatically, after I have called the "DataBind" on the RadListBox, set the "DataSourceControlID" to the ID of the RadListBox.
This is done on a user control using .net 3.5. As soon as I test the page that contains the control, I get an "Object not set to an instance of an object" error, with the following stack trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Object.GetType() +0
Telerik.Web.UI.RadFilterDataSourceHelper.<.cctor>b__26(String eventName, MethodInfo eventHandler, RadFilter filterInstance, IDataSource dataSourceInstance) +76
Telerik.Web.UI.RadFilter.AttachToDataSource() +210
Telerik.Web.UI.RadFilter.OnLoad(EventArgs e) +723
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
Any idea on this please, or exactly how I need to get the two to work together. I've looked at the documentation but is extremely helpful enough.
Regards,
Henry
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
I think I might just be a little confused but I cannot get the above combination to work.
I have a RadListBox. I have an Array of objects that I bind using the "DataSource" attribute. I set this programmatically. I also set the "DataTextField", the "DataValueField" and the call the "DataBind" method.
I have created a Filter field on the RadFilter in the designer and set the "FieldName" value to be the same as the "DataTextField" from the RadListBox. I then programmatically, after I have called the "DataBind" on the RadListBox, set the "DataSourceControlID" to the ID of the RadListBox.
This is done on a user control using .net 3.5. As soon as I test the page that contains the control, I get an "Object not set to an instance of an object" error, with the following stack trace:
[NullReferenceException: Object reference not set to an instance of an object.]
System.Object.GetType() +0
Telerik.Web.UI.RadFilterDataSourceHelper.<.cctor>b__26(String eventName, MethodInfo eventHandler, RadFilter filterInstance, IDataSource dataSourceInstance) +76
Telerik.Web.UI.RadFilter.AttachToDataSource() +210
Telerik.Web.UI.RadFilter.OnLoad(EventArgs e) +723
System.Web.UI.Control.LoadRecursive() +66
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
System.Web.UI.Control.LoadRecursive() +191
Any idea on this please, or exactly how I need to get the two to work together. I've looked at the documentation but is extremely helpful enough.
Regards,
Henry
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428