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

Filter with dropdownlist for grid that is in ajaxpanel, filter causes script error

2 Answers 10 Views
Grid
This is a migrated thread and some comments may be shown as answers.
BitShift
Top achievements
Rank 1
Veteran
BitShift asked on 20 Sep 2014, 05:04 PM
Im working off this example,
http://demos.telerik.com/aspnet-ajax/grid/examples/functionality/filtering/basic-filtering/defaultcs.aspx

The only difference is that my grid is inside an ajaxpanel.  Everything is getting loaded correctly, the dropdowns are populated, but when I make a selection in the dropdown, there is a script error generated and the filter is not performed.  Do I need to disable ajax on the request somehow as in the example for the grid export?

http://localhost:59456/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:fa6755fd-da1a-49d3-9eb4-1e473e780ecd:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2014.2.724.45,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:6915a8c2-c063-435a-ab31-d2d2285652a6:16e4e7cd:f7645509:24ee1bba:2003d0b8:f46195d3:88144a7a:1e771326:e524c98b:ed16cbdc:6b3f73b3:58366029:ccd65cf8:aa288e2d:258f1c72:e330518b:c128760b:c8618e41:e4f8f289:1a73651d:333f8d94

0x800a139e - Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: Selection out of range


Parameter name: value





2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 24 Sep 2014, 08:16 AM
Hello,

You can disable Ajax by setting EnableAjax property of RadAjaxPanel to false in order to see the exact error which is thrown.

Regards,
Pavlina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
BitShift
Top achievements
Rank 1
Veteran
answered on 24 Sep 2014, 12:05 PM
Thank you Pavlina,

I managed to work it out by filling in the dropdowns in the grids item_databound handler.  Im also using a ObjectDatasource which have selectparameters and im then setting the values of those parameters and rebinding the grid on the dropdown change.
Tags
Grid
Asked by
BitShift
Top achievements
Rank 1
Veteran
Answers by
Pavlina
Telerik team
BitShift
Top achievements
Rank 1
Veteran
Share this question
or