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

[Solved] NumericTextBox and AsyncRequest

0 Answers 76 Views
NumericTextBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Chris
Top achievements
Rank 1
Chris asked on 02 Oct 2010, 12:55 AM
If I create a Window that has a ContentUrl, so the content is fetched by an AsyncRequest, and within the content I have a NumericTextBox (also applies to other controls), it fails with a jquery exception.  Using the latest 2010.2.825 source code.

It breaks on the "head.insertBefore(script, head.firstChild);", line 540, of the globalEval function in jquery.

Window is defined as:

<% Html.Telerik().Window()
               .Name("editCampaignWindow")
               .Title(Html.LocalizedString("Edit"))
               .Draggable(false)
               .Resizable(resizing => resizing.Enabled(false))
               .Modal(true)
               .Buttons(b => b.Close())
               .Width(525)
               .Height(250)
               .Visible(false)
               .LoadContentFrom("Edit", "Campaign", new { ID = Model.ID, modal = "editCampaignWindow" })
               .Render();
       %>

The NumericTextBox is simply defined as:

<%
using (Ajax.BeginForm("EditSave", "Campaign", new AjaxOptions { UpdateTargetId = "campaignEdit" }))
{%>
  
<%: Html.Telerik().NumericTextBox().Name("Date").MinValue(0).MaxValue(40) %>
  
<%}%>

Using standard ASP.NET MVC controls, i.e. Html.TextBox, I do not have any issues.

Oh running IE8 (32-bit) on Windows 7 64-bit with VS2010 and .NET 4.0.
Tags
NumericTextBox
Asked by
Chris
Top achievements
Rank 1
Share this question
or