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

'Sys$Enum$parse' is undefined

11 Answers 229 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jason Thacker
Top achievements
Rank 1
Jason Thacker asked on 31 Mar 2010, 02:30 PM
I am using a RadGrid with filtering, sorting etc. turned on with the latest version of the AJAX Control toolkit.

The script manager is an AJAX ToolkitScriptManager.

The grid seems to function perfectly apart from filtering. When I attempt to filter the following error is returned

 

Message: 'Sys$Enum$parse' is undefined
Line: 2951
Char: 55
Code: 0
URI:
http://machine/project/ScriptResource.axd?d=uGOaxGkvEePM-XITAS7HdYgdtEC_2h8s3nT0YB4_k4X9r-qiHP2gpiGD--kG1fjE9x_rFUcN0gTBUY4TId2jMQ2&t=4ed2e5c4 

 
This is a real issue as the site is heavily dependent upon the filtering functionality.

I have check the web.config references, I have also checked that HTTP compression is not enabled etc.

Any clues? This is starting to drive me crazy!!

Thanks,

Jason

11 Answers, 1 is accepted

Sort by
0
Yavor
Telerik team
answered on 06 Apr 2010, 09:32 AM
Hi Jason,

Based on the supplied information, it is hard to determine what is causing this exception.
To properly track the issue, it will be best if you open a formal support ticket, and  send us a small working project, demonstrating your setup, and showing the unwanted behavior. We will debug it locally, and get back to you with our findings.

Regards,
Yavor
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
Ryan
Top achievements
Rank 1
answered on 29 Apr 2010, 06:11 PM
I can confirm this behavior for filtering, but not for sorting.  I've recently upgraded to VS2010 and .NET 4.  I believe that the time of that upgrade is when this symptom began.  In an attempt to fix the issue, I then upgraded Rad ASP.NET Ajax controls to the Apr 15 2010 release from the previous (sometime in March?) release; the behavior did not change.
0
Yavor
Telerik team
answered on 30 Apr 2010, 10:53 AM
Hello Matthew,

I can confirm that the issue which you mentioned is present, in the 4.0 version of the framework.
However, it has been addressed by our developers. The fix will be part of the next internal build, which will be available from your client.net account later next week.
Let us know if further issues arise.

Greetings,
Yavor
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
Perseus
Top achievements
Rank 1
answered on 18 Jun 2010, 06:41 PM
Hi.

I have problem same as Jason.

I use "Visual Studio 2010" and "RadControls For ASP.Net AJAX 2010 Q1".
I explain my problem:
*** Excuse me, I can not texting in English very well.

  • I added new page to my project.
  • I added ScriptManager (VS built-In, Not Rad) to my page.
  • I added UpdatePanel to my page.
  • I added RadGrid to UpdatePanel's ContentTemplate.
  • I configured RadGrid DataSource by its wizard and use LinqDataSource.
  • I enabled RadGrid extra features like Grouping & Filtering.
  • I ran application and every things was perfect; (Sorting, Grouping, Filtering, ...)

 

  • Then I added an assembly refrence to my project. (AjaxControlToolkit.dll built on .Net 4.0)
  • I added a form view above RadGrid and configured it for inserting purpose.
  • I used ValidatorCallOutExtender control in FormView's InsertItemTemplate.
  • I ran application again and attempted to insert a new row.
  • Every things seems to be perfect... oops when I attempt to filter one column, a JavaScript error raised.
  • I faced to an error like "Jason Thacker".

 

  • I commented ValidatorCallOutExtender's tag and tried again, but error was raised again.
  • I removed refrence of AjaxControlToolkit.dll and tred again, but error was raised again.
  • I found that AjaxControlToolkit.dll is still in "Bin" folder of application.
  • I removed it and tried again...There is no error... Wow.

I try search subject or some thing like that to solve my problem in Telerik's support sites but face to this topic here.
I hope this information was useful to finding the error's cause.

Thanks a lot.
0
Maria Ilieva
Telerik team
answered on 24 Jun 2010, 08:05 AM
Hi Perseus,

Without having a runnable application for testing it is rather difficult to suggest what could cause the presented behavior. However we are glad that you have mentioned to find the root cause of the problem.
Thank you for sharing it with us.

All the best,
Maria Ilieva
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
Jason
Top achievements
Rank 1
answered on 18 Oct 2010, 09:31 PM
'Sys$Enum$parse' is undefined...Did anyone find a solution yet?

I’m using a GridHyperlinkColumn 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?

 

0
Sebastian
Telerik team
answered on 19 Oct 2010, 12:26 PM
See my reply in this forum thread in which you posted the same question, Christopher.

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
Christopher
Top achievements
Rank 1
answered on 20 Oct 2010, 06:51 PM
I also noticed that in debug if you click "ignore error" the filter eventually works
0
nguyen
Top achievements
Rank 1
answered on 01 Jun 2011, 04:04 AM
Hi Telerik team,
I've proplem same as Jason Thacker about filter in RadGrid. I using lastest version RadControls and working .net 3.5.
I run demo project then it still working. But I add my project then doesnt not work and generate script error:
Sys$Enum$parse is not defined
.....
Telerik.Web.UI.GridFilterFunction.registerEnum("Telerik.Web.UI.GridFilterFunction",false);
Telerik.Web.UI.GridFilterFunction.parse=function(b,a){return(typeof b=="number")?b:Sys$Enum$parse.call(this,b,!!a);
...

I've add ScripManager in Master Page
In file xxx.aspx I've add RadAjaxManager

This is in file xxx.aspx:
void Page_PreRender(object sender, EventArgs e)
        {
            foreach (Field info in fieldList)
            {
                if (info.FieldInfo.Type.ToLower().Equals("lookupgrid"))
                {
                    RadComboBox combo = (info.control as RadComboBox);
                    RadAjaxManager1.AjaxSettings.AddAjaxSetting(combo.Items[0].FindControl(info.FieldInfo.Name + "rda"),
                                                                combo.Items[0].FindControl(info.FieldInfo.Name + "rda"));
                }
            }
        }
  public void InstantiateIn(Control container)
        {
RadGrid radGrid = new RadGrid();
            radGrid.ID = name + "rda";
            radGrid.AllowFilteringByColumn = true;
            radGrid.AllowSorting = true;
            radGrid.GroupingSettings.CaseSensitive = false;
            radGrid.ClientSettings.EnableRowHoverStyle = true;
            radGrid.NeedDataSource += new GridNeedDataSourceEventHandler(radGrid_NeedDataSource);
            radGrid.PreRender += new EventHandler(radGrid_PreRender);
            //---
            radGrid.MasterTableView.AutoGenerateColumns = false;
            radGrid.MasterTableView.Columns.Clear();
           foreach (Column col in columns)
            {
                //columnNameNoLang = col.Name.Replace("@LANG", basePage.Lang);
                GridBoundColumn templateColumn = new GridBoundColumn();
                templateColumn.DataField = col.Name;
                switch (basePage.Lang)
                {
                 
                    case "en":
                        templateColumn.HeaderText = col.Caption_en;
                        break;
                   case "it":
                        templateColumn.HeaderText = col.Caption_it;
                        break;
                    default:
                        templateColumn.HeaderText = col.Caption_en;
                        break;
                }
                templateColumn.Visible = col.Visible;
                templateColumn.AllowFiltering = true;
                templateColumn.ShowFilterIcon = false;
                templateColumn.AutoPostBackOnFilter = true;
                
                templateColumn.CurrentFilterFunction = GridKnownFunction.Contains;
                radGrid.MasterTableView.Columns.Add(templateColumn);
                radGrid.ClientSettings.ClientEvents.OnRowSelected = "RowSelected_" + name;
                radGrid.ClientSettings.Selecting.AllowRowSelect = true;
            }
            container.Controls.Add(radGrid);
}
void radGrid_PreRender(object sender, EventArgs e)
        {
            RadGrid grid = sender as RadGrid;
            grid.MasterTableView.AutoGenerateColumns = false;
        }
        void radGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
        {
            RadGrid grid = source as RadGrid;
            DataTable dt = CaseDal.GetDatafromQueryString(datasource);
            grid.DataSource = dt;
        }

 I hope that you recomment and fixed about error for me.

Thanks.
0
Sebastian
Telerik team
answered on 01 Jun 2011, 08:57 AM
Hi nguyen,

Verify that you are using the latest release 2011.1.519 of RadControls for ASP.NET AJAX in your project along with the .NET 35 version of the AJAX Toolkit (see this thread for reference). This should ensure the compatibility between our AJAX controls and the toolkit and you should not get any errors on filtering action.

Regards,
Sebastian
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

0
nguyen
Top achievements
Rank 1
answered on 02 Jun 2011, 05:49 AM
Hi telerik team,

Thanks for your coments. I'm using AjaxControlToolkit for other controls. If I want to run width rad grid then I must be remove AjaxControlToolkit . Have you any other ideal?

Thanks.
Tags
General Discussions
Asked by
Jason Thacker
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Ryan
Top achievements
Rank 1
Perseus
Top achievements
Rank 1
Maria Ilieva
Telerik team
Jason
Top achievements
Rank 1
Sebastian
Telerik team
Christopher
Top achievements
Rank 1
nguyen
Top achievements
Rank 1
Share this question
or