I am trying to get RadFilter to work.
I am building a DNN module with OpenAccess.
I am building a DNN module with OpenAccess.
I have a basic RadGrid already on the page. I added RadFilter and set the FilterContainer to point to my grid. I also defined 2 simple fields to filter.
I keep getting this error though at runtime:
I keep getting this error though at runtime:
InnerException: Parameter cannot be null or empty. Parameter name: fieldName
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Parameter cannot be null or empty. Parameter name: fieldName ---> System.ArgumentException: Parameter cannot be null or empty. Parameter name: fieldNameat Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName(String fieldName)at Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container)at Telerik.Web.UI.RadFilterExpressionItem.CreateFunctionalInterface()at Telerik.Web.UI.RadFilter.CreateFilterItems()at Telerik.Web.UI.RadFilter.CreateControlHierarchy()at Telerik.Web.UI.RadFilter.CreateChildControls()at System.Web.UI.Control.EnsureChildControls()at Telerik.Web.UI.RadFilter.RecreateControl()at Telerik.Web.UI.RadFilter.AddChildExpression(RadFilterGroupExpressionItem groupItem, Boolean isGroup)at Telerik.Web.UI.RadFilterCommandEventArgs.ExecuteCommand(Object source)at Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at Telerik.Web.UI.RadFilterExpressionItem.OnBubbleEvent(Object source, EventArgs args)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)--- End of inner exception stack trace ---
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName
StackTrace:
Message: DotNetNuke.Services.Exceptions.PageLoadException: Parameter cannot be null or empty. Parameter name: fieldName ---> System.ArgumentException: Parameter cannot be null or empty. Parameter name: fieldNameat Telerik.Web.UI.RadFilterDataFieldEditorCollection.RetrieveEditorForFieldName(String fieldName)at Telerik.Web.UI.RadFilterSingleExpressionItem.SetupFunctionInterface(Control container)at Telerik.Web.UI.RadFilterExpressionItem.CreateFunctionalInterface()at Telerik.Web.UI.RadFilter.CreateFilterItems()at Telerik.Web.UI.RadFilter.CreateControlHierarchy()at Telerik.Web.UI.RadFilter.CreateChildControls()at System.Web.UI.Control.EnsureChildControls()at Telerik.Web.UI.RadFilter.RecreateControl()at Telerik.Web.UI.RadFilter.AddChildExpression(RadFilterGroupExpressionItem groupItem, Boolean isGroup)at Telerik.Web.UI.RadFilterCommandEventArgs.ExecuteCommand(Object source)at Telerik.Web.UI.RadFilter.OnBubbleEvent(Object source, EventArgs args)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at Telerik.Web.UI.RadFilterExpressionItem.OnBubbleEvent(Object source, EventArgs args)at System.Web.UI.Control.RaiseBubbleEvent(Object source, EventArgs args)at System.Web.UI.WebControls.LinkButton.OnCommand(CommandEventArgs e)at System.Web.UI.WebControls.LinkButton.RaisePostBackEvent(String eventArgument)at System.Web.UI.WebControls.LinkButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)--- End of inner exception stack trace ---
10 Answers, 1 is accepted
0
Hello Brian,
Unfortunately our developers are aware of this behavior and we are looking for resolving it as soon as possible. I assume you are using OpenAccessDataSource and have AutoGeneratedColumn set to true of your RadGrid. I will suggest you to have your column declared as temporary solution.
Kind regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Unfortunately our developers are aware of this behavior and we are looking for resolving it as soon as possible. I assume you are using OpenAccessDataSource and have AutoGeneratedColumn set to true of your RadGrid. I will suggest you to have your column declared as temporary solution.
Kind regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
![](/forums/images/avatarimages/default.gif)
John Tobin
Top achievements
Rank 1
answered on 11 Jun 2010, 11:30 AM
I am having this same error. My Grid columns are NOT autogenerated.
Is there a solution to this problem ?
I've included the filter and grid definitions from my aspx file.
Is there a solution to this problem ?
I've included the filter and grid definitions from my aspx file.
<div id="divFilter"> |
<telerik:RadFilter ID="RadFilter1" runat="server" FilterContainerID="RadGrid1" Skin="WebBlue"> |
</telerik:RadFilter> |
</div> |
<telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Skin="WebBlue" |
AllowPaging="True" AllowSorting="True" DataSourceID="SqlDataSource1" |
onitemdatabound="RadGrid_ItemDataBound" |
onitemcommand="RadGrid1_ItemCommand" AllowFilteringByColumn="True" |
AutoGenerateColumns="False"> |
<HeaderContextMenu EnableAutoScroll="True"></HeaderContextMenu> |
<MasterTableView datasourceid="SqlDataSource1" |
IsFilterItemExpanded="False" CommandItemDisplay="Top"> |
<CommandItemSettings ShowExportToExcelButton="True" |
ShowAddNewRecordButton="False" /> |
<Columns> |
<telerik:GridTemplateColumn HeaderText="Part Code" UniqueName="PRODUCT" SortExpression="PRODUCT"> |
<ItemTemplate> |
<%# "<a href='ValueStream1ByPartCode.aspx?Product=" + |
DataBinder.Eval(Container.DataItem, "PRODUCT") + "' title='Show All Samples for this Part Code'>" + |
DataBinder.Eval(Container.DataItem, "PRODUCT") + "</a>"%> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridTemplateColumn HeaderText="Job Name" UniqueName="JOB_NAME" SortExpression="JOB_NAME"> |
<ItemTemplate> |
<%# "<a href='ValueStream1ByJobName.aspx?JobName=" + |
DataBinder.Eval(Container.DataItem, "JOB_NAME") + "' title='Show All Samples for this Job'>" + |
DataBinder.Eval(Container.DataItem, "JOB_NAME") + "</a>"%> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
<telerik:GridBoundColumn DataField="DESCRIPTION" HeaderText="Description" |
SortExpression="DESCRIPTION" UniqueName="DESCRIPTION"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="ID_NUMERIC" HeaderText="ID Numeric" |
SortExpression="ID_NUMERIC" UniqueName="ID_NUMERIC"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_POTENCY" HeaderText="Mean Potency (mg/g)" |
SortExpression="MEAN_POTENCY" UniqueName="MEAN_POTENCY"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_POTENCY_S1" HeaderText="Potency (mg/g) - S1" |
SortExpression="MEAN_POTENCY_S1" UniqueName="MEAN_POTENCY_S1"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_POTENCY_S2" HeaderText="Potency (mg/g) - S2" |
SortExpression="MEAN_POTENCY_S2" UniqueName="MEAN_POTENCY_S2"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_01_HR" HeaderText="Mean % Released @ 1 Hour" |
SortExpression="MEAN_01_HR" UniqueName="MEAN_01_HR"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_02_HR" HeaderText="Mean % Released @ 2 Hour" |
SortExpression="MEAN_02_HR" UniqueName="MEAN_02_HR"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_04_HR" HeaderText="Mean % Released @ 4 Hour" |
SortExpression="MEAN_04_HR" UniqueName="MEAN_04_HR"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_06_HR" HeaderText="Mean % Released @ 6 Hour" |
SortExpression="MEAN_06_HR" UniqueName="MEAN_06_HR"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_08_HR" HeaderText="Mean % Released @ 8 Hour" |
SortExpression="MEAN_08_HR" UniqueName="MEAN_08_HR"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_11_HR" HeaderText="Mean % Released @ 11 Hour" |
SortExpression="MEAN_11_HR" UniqueName="MEAN_11_HR"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_13_HR" HeaderText="Mean % Released @ 13 Hour" |
SortExpression="MEAN_13_HR" UniqueName="MEAN_13_HR"> |
</telerik:GridBoundColumn> |
<telerik:GridBoundColumn DataField="MEAN_24_HR" HeaderText="Mean % Released @ 24 Hour" |
SortExpression="MEAN_24_HR" UniqueName="MEAN_24_HR"> |
</telerik:GridBoundColumn> |
</Columns> |
</MasterTableView> |
</telerik:RadGrid> |
0
![](/forums/images/avatarimages/default.gif)
John Tobin
Top achievements
Rank 1
answered on 11 Jun 2010, 11:37 AM
I have just solved my problem - my 2 GridTemplateColumns were missing the DataField attribute.
0
![](/forums/images/avatarimages/default.gif)
Virgil Schleich
Top achievements
Rank 1
answered on 06 Aug 2010, 03:38 PM
Hello,
I am receiving the same error when generating the filters in code when the RadFilter is not attached to another control. Using Q1 2010 SP1. Any help would be appreciated.
Thanks,
Virgil
I am receiving the same error when generating the filters in code when the RadFilter is not attached to another control. Using Q1 2010 SP1. Any help would be appreciated.
Thanks,
Virgil
Dim
TextEditor
As
RadFilterTextFieldEditor
TextEditor =
New
RadFilterTextFieldEditor()
TextEditor.DisplayName =
"SupervisorName"
TextEditor.FieldName =
"SupervisorName"
Me
.radFilter1.FieldEditors.Add(TextEditor)
0
Hi Virgil,
Can give more details on which event you are adding the editors and how is RadFilter created?
Regards,
Nikolay
the Telerik team
Can give more details on which event you are adding the editors and how is RadFilter created?
Regards,
Nikolay
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
![](/forums/images/avatarimages/570f1a1f-9d0b-4d72-a262-b5cc53c972c5redpeppercloseup.jpg)
TheLostLeaf
Top achievements
Rank 2
answered on 19 Aug 2010, 09:32 PM
I had this same problem it was because the DataField was not set in a GridHyperLinkColumn which doesn't have that field. When I removed GridHyperLinkColumn the column it works.
0
![](/forums/images/avatarimages/default.gif)
Jason
Top achievements
Rank 1
answered on 18 Oct 2010, 07:29 PM
Hi
Sorry if I'm posting this in the wrong area...
I’m using a GridHyperlinkColumn in a RadGrid because I wanted to have a hyper link column that I could also filter. The link part works great but any attempt to filter the column give the following error:
Microsoft JScript runtime error: ‘Sys$Enum$parse’ is undefined.
any idea what could be wrong?
Thanks
0
Hello Christopher,
I enabled filtering for the GridHyperlinkColumn on my local version of this online example and it worked without issues on my end. Can you please verify that on your machine? Any further details concerning different configuration setting you might have for your hyperlink column can help us track down the cause of the abnormality to fix it accordingly.
Also confirm that you are using the latest Q2 2010 SP2 release (v2010 .2.929) of RadControls for ASP.NET AJAX.
Best regards,
Sebastian
the Telerik team
I enabled filtering for the GridHyperlinkColumn on my local version of this online example and it worked without issues on my end. Can you please verify that on your machine? Any further details concerning different configuration setting you might have for your hyperlink column can help us track down the cause of the abnormality to fix it accordingly.
Also confirm that you are using the latest Q2 2010 SP2 release (v2010 .2.929) of RadControls for ASP.NET AJAX.
Best regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
![](/forums/images/avatarimages/default.gif)
Christopher
Top achievements
Rank 1
answered on 20 Oct 2010, 10:01 PM
Hi Sebastian
I upgarded Q2 2010 SP2 release (v2010 .2.929) of RadControls for ASP.NET AJAX. the trial version and don't seem to be getting the scripts error...but all my controls don't render properly, they look like old html stuff? Got any ideas?
Chris
0
Hello Christopher,
Can it be that you experience issues with the embedded web resources delivery on the client machine? Examine the troubleshooting tips in this topic and use FireBug or Fiddler for IE to monitor the traffic between the client and the server to see whether some of the loading of resources (script and styles) fails at some point.
Regards,
Sebastian
the Telerik team
Can it be that you experience issues with the embedded web resources delivery on the client machine? Examine the troubleshooting tips in this topic and use FireBug or Fiddler for IE to monitor the traffic between the client and the server to see whether some of the loading of resources (script and styles) fails at some point.
Regards,
Sebastian
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items