Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Input > RadNumericTextBox ArgumentUndefinedException: Value cannot be undefined

Answered RadNumericTextBox ArgumentUndefinedException: Value cannot be undefined

Feed from this thread
  • NickName avatar

    Posted on Sep 15, 2011 (permalink)

    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:
    <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>

    Reply

  • NickName avatar

    Posted on Sep 16, 2011 (permalink)

    Can anybody react on this post ? Thank you...

    Reply

  • Answer Tsvetoslav Tsvetoslav admin's avatar

    Posted on Sep 21, 2011 (permalink)

    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
    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

    Reply

  • Akhil avatar

    Posted on Jan 31, 2012 (permalink)

    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

    Reply

  • Tsvetoslav Tsvetoslav admin's avatar

    Posted on Feb 1, 2012 (permalink)

    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
    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

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Input > RadNumericTextBox ArgumentUndefinedException: Value cannot be undefined
Related resources for "RadNumericTextBox ArgumentUndefinedException: Value cannot be undefined"

ASP.NET Input Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]