radfilter fieldname error

11 posts, 0 answers
  1. Brian
    Brian avatar
    35 posts
    Member since:
    Dec 2007

    Posted 11 Mar 2010 Link to this post

    I am trying to get RadFilter to work.

    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:

    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 ---

  2. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 15 Mar 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. John Tobin
    John Tobin avatar
    16 posts
    Member since:
    Mar 2008

    Posted 11 Jun 2010 Link to this post

    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.

     
       <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> 
                  
                <%# "<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> 
                  
                <%# "<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> 

  5. John Tobin
    John Tobin avatar
    16 posts
    Member since:
    Mar 2008

    Posted 11 Jun 2010 Link to this post

    I have just solved my problem - my 2 GridTemplateColumns were missing the DataField attribute.
  6. Virgil Schleich
    Virgil Schleich avatar
    4 posts
    Member since:
    Apr 2010

    Posted 06 Aug 2010 Link to this post

    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

    Dim TextEditor As RadFilterTextFieldEditor
     
    TextEditor = New RadFilterTextFieldEditor()
    TextEditor.DisplayName = "SupervisorName"
    TextEditor.FieldName = "SupervisorName"
     
    Me.radFilter1.FieldEditors.Add(TextEditor)
  7. Nikolay Rusev
    Admin
    Nikolay Rusev avatar
    2285 posts

    Posted 11 Aug 2010 Link to this post

    Hi Virgil,

    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
  8. TheLostLeaf
    TheLostLeaf avatar
    34 posts
    Member since:
    Feb 2007

    Posted 19 Aug 2010 Link to this post

    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.

     

  9. Jason
    Jason avatar
    9 posts
    Member since:
    Oct 2010

    Posted 18 Oct 2010 Link to this post

    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 

  10. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 19 Oct 2010 Link to this post

    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
    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
  11. Christopher
    Christopher avatar
    6 posts
    Member since:
    Aug 2010

    Posted 20 Oct 2010 Link to this post

    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

  12. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 21 Oct 2010 Link to this post

    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
    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017