I use RadNumericTextBox in RadGrid for editing elements.
If I load page in simple web app everything is ok, but if I load my page in Sharepoint 2010 I get and javascript error when click on edit item in grid:
Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://icg-ua-sp10-001:8080/ScriptResource.axd?d=JLSEwDhnT6kSeTxfR3S7TXvKVR6eKue_6_eZhIyn2o26kbagvtqJP4jSTgjtJD-N9OuPAsMWD1lvQZvho6RtKbymLi3PF6qrOF01u1B9Dvi9bAnNVlbkECrZIRV_n4bf22xRR1TGkD_YkGpfV0e5pmpkNxIAbh_mQHsFCSqmWe35et5Z0&t=fffffffff9d85fa6
And RadNumericTextBox is working not properly:
1) Binding is not working
2) I can enter any data in control (including letters)
markup for control is something like this:
If I load page in simple web app everything is ok, but if I load my page in Sharepoint 2010 I get and javascript error when click on edit item in grid:
Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://icg-ua-sp10-001:8080/ScriptResource.axd?d=JLSEwDhnT6kSeTxfR3S7TXvKVR6eKue_6_eZhIyn2o26kbagvtqJP4jSTgjtJD-N9OuPAsMWD1lvQZvho6RtKbymLi3PF6qrOF01u1B9Dvi9bAnNVlbkECrZIRV_n4bf22xRR1TGkD_YkGpfV0e5pmpkNxIAbh_mQHsFCSqmWe35et5Z0&t=fffffffff9d85fa6
And RadNumericTextBox is working not properly:
1) Binding is not working
2) I can enter any data in control (including letters)
markup for control is something like this:
<
telerik:GridTemplateColumn
EditFormColumnIndex
=
"0"
HeaderText
=
""
>
<
EditItemTemplate
>
<
table
border
=
"0"
cellpadding
=
"0"
cellspacing
=
"0"
style
=
"color: black"
>
<
tr
>
<
td
width
=
"70"
style
=
"padding-left: 15px"
>January:<
br
/>
<
telerik:RadNumericTextBox
runat
=
"server"
DbValue='<%# Bind("January") %>' Width="55px" ID="txtJanuary" />
</
td
>
</
tr
>
</
table
>
</
EditItemTemplate
>
</
telerik:GridTemplateColumn
>
6 Answers, 1 is accepted
0

NickName
Top achievements
Rank 1
answered on 16 Sep 2011, 08:59 AM
Can anybody react on this post ? Thank you...
0
Accepted
Hello Alexander,
You have stumbled upon a bug in SP 2010 - the CMS fails to load the scripts and css resources for ajax-enabled controls on a ajax request. I'd suggest the following solution (it's not a pretty one but should work). Put a RadNumericBox on your page and make its Display property to false so that it is rendered on initial load and SharePoint already knows the scripts needed for that control. Another option is to stop the ajax for the grid and still another one is to load the scripts for the numeric box manually through ScriptReference objects in the ScriptManager. For the last approach, the following help article should prove helpful:
http://www.telerik.com/help/aspnet-ajax/introduction-disabling-embedded-resources.html
Microsoft have committed to fixing the problem for SP1 of the CMS.
Hope it helps.
All the best, Tsvetoslav
the Telerik team
You have stumbled upon a bug in SP 2010 - the CMS fails to load the scripts and css resources for ajax-enabled controls on a ajax request. I'd suggest the following solution (it's not a pretty one but should work). Put a RadNumericBox on your page and make its Display property to false so that it is rendered on initial load and SharePoint already knows the scripts needed for that control. Another option is to stop the ajax for the grid and still another one is to load the scripts for the numeric box manually through ScriptReference objects in the ScriptManager. For the last approach, the following help article should prove helpful:
http://www.telerik.com/help/aspnet-ajax/introduction-disabling-embedded-resources.html
Microsoft have committed to fixing the problem for SP1 of the CMS.
Hope it helps.
All the best, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0

Akhil
Top achievements
Rank 1
answered on 31 Jan 2012, 01:26 PM
I am facing same issue with RAD Grid in SP 2010.When the page is loaded for the first time RAD Grid not shown and after a partial (UpdatePanel) postback is
initiated the RAD Grid control inside table is shown with data but
the Java Script error occurs (shown below)
Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://Server:1234/ScriptResource.axd?d=FEmGdL_zqjCerpI-0jAKwWndRQkkKFCtSZ2SnyE46Qd7JxCDXnuTED5ZxqgOfdK7q8LOFMqK0CTtwbhhsJJfRj0zClLogNdsRwl7AAIoqBeM7_ZazKIWJ1mvV7_4Al0ivEzaUkOHwHBoWLpFgOszAkLD-VRtdpHaFsp6J00EAWcHzkAn0&t=fffffffff9d85fa6
I have checked with both the above approach but it not works.
Can you please look at this issue.
Regrads
Akhil Sachdeva
Message: Sys.ArgumentUndefinedException: Value cannot be undefined.
Parameter name: type
Line: 2705
Char: 12
Code: 0
URI: http://Server:1234/ScriptResource.axd?d=FEmGdL_zqjCerpI-0jAKwWndRQkkKFCtSZ2SnyE46Qd7JxCDXnuTED5ZxqgOfdK7q8LOFMqK0CTtwbhhsJJfRj0zClLogNdsRwl7AAIoqBeM7_ZazKIWJ1mvV7_4Al0ivEzaUkOHwHBoWLpFgOszAkLD-VRtdpHaFsp6J00EAWcHzkAn0&t=fffffffff9d85fa6
I have checked with both the above approach but it not works.
Can you please look at this issue.
Regrads
Akhil Sachdeva
0
Hello Alexander,
I am glad to let you know that MS did fix the issue and the fix first appeared in the October 2011 Cumulative Update of SharePoint 2010 - SP1 of SP2010 won't do, you need the CU. Just upgrade your SP 2010 installation and the problem should be gone.
Hope it helps.
Regards, Tsvetoslav
the Telerik team
I am glad to let you know that MS did fix the issue and the fix first appeared in the October 2011 Cumulative Update of SharePoint 2010 - SP1 of SP2010 won't do, you need the CU. Just upgrade your SP 2010 installation and the problem should be gone.
Hope it helps.
Regards, Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0

thomson
Top achievements
Rank 1
answered on 08 Nov 2012, 08:28 AM
We still have the same issue even after applying the Cummulative Update to October 2011. Please advice
0
Hi tomas,
Unfortunately, this is an issue not related to telerik but to Microsoft's CMS. Please, turn to their support for more information as their October cumulative Update solved the issue on our side and it is very difficult to tell what might be going on at your end with SP 2010.
Greetings,
Tsvetoslav
the Telerik team
Unfortunately, this is an issue not related to telerik but to Microsoft's CMS. Please, turn to their support for more information as their October cumulative Update solved the issue on our side and it is very difficult to tell what might be going on at your end with SP 2010.
Greetings,
Tsvetoslav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.