Hello,
I have a RadGrid with an Edit/Insert popup form based on a template. The RadGrid is AJAX enabled programmatically in the Page_Load() method.
In the template there is a RadListBox.
When I click on the Edit or Add buttons nothing happens but a Javascript exception is thrown:
Uncaught Sys.ArgumentUndefinedException: Sys.ArgumentUndefinedException: Value cannot be undefined. Parameter name: type
-
Error$create
ScriptResource.axd:222
Error$argumentUndefined
ScriptResource.axd:346
Function$_validateParameterType
ScriptResource.axd:130
Function$_validateParameter
ScriptResource.axd:99
Function$_validateParams
ScriptResource.axd:67
Sys$Component$create
ScriptResource.axd:2698
(anonymous function)
TechnicalData.aspx:7
Sys$_Application$add_init
ScriptResource.axd:3991
(anonymous function)
TechnicalData.aspx:1
...
I spent some time debugging the client code to find out what was causing such exception and it seemed that Javascript had no knowledge of the RadListBox (type undefined).
I found a temporary workaround by placing a dummy empty RadListBox in another place of the page.
This is not peculiar to RadListBox controls as it happens also with all other RadControls.
My conclusion is that if the edit form template contains RadControls which are nowhere else defined on the page, the associated client scripts and definitions are not properly loaded when using AJAX. Without enabling AJAX behavior everything works fine.
What am I doing wrong? Is there a solution?
Thanks in advance,
Mauro
Telerik version: 2013.1.220.35
Language: C#
Platform: Sharepoint Server 2010