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

Filtering raises JavaScript error "Input string was not in a correct format"

2 Answers 139 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ron Michael Zettlemoyer
Top achievements
Rank 1
Ron Michael Zettlemoyer asked on 31 Jul 2010, 11:15 PM
I have an odd issue...  I have a RadGrid that where filtering works on some of the columns, but not all.  On the columns that don't work I get the JavaScript error:

Error: Sys.WebForms.PageRequestManagerServerErrorException: Input string was not in a correct format.
Source File: http://portal/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2010.2.713.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen-US%3a1814ab69-dbf3-46be-b5e4-1b4e7d85f183%3a16e4e7cd%3af7645509%3a24ee1bba%3a1e771326%3a4cacbc31%3aed16cbdc%3a58366029%3aaa288e2d%3ae330518b%3ac8618e41%3ae4f8f289
Line: 15

There is nothing really different about the columns it works on vs. the columns it doesn't work on.  They're all text data fields.

I am using Ajax, and binding the dataset in the NeedDataSource event.  The data source is a DataTable I build from data I pull in from an MSSQL Server.   It doesn't appear that needdatasource ever gets hit when the error is raised.

Thanks!

2 Answers, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 04 Aug 2010, 03:18 PM
Hello Ron,

I assume that your RadGrid is ajaxified. You can set EnableAjax to false on your RadAjaxManager/RadAjaxPanel and will see the real stack trace of the server error. I suspect that there are invalid characters in the text that are used for filtering. Could you try isolate the behavior and provide us with more details - version of RadControls for ASP.NET AJAX, framework versions, the value of EnableLinqExpressions and whether it make any difference when change it etc.

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
Ron Michael Zettlemoyer
Top achievements
Rank 1
answered on 04 Aug 2010, 04:26 PM
Aha, thanks Nikolay.  Turning off the Ajax did let me see where the error was.  And it was in my code, not the grid.  A silly bug in my NeedDataSource implementation.
Thanks!
Ron

Tags
Grid
Asked by
Ron Michael Zettlemoyer
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Ron Michael Zettlemoyer
Top achievements
Rank 1
Share this question
or