This question is locked. New answers and comments are not allowed.
I have page that i set up to use numeric text boxes. It works fine. I decided to move the numeric text box to a telerik window that loads a partial view. inside a div on the current page.
var window = $("#Window").data("tWindow");
window.center();
$("#popUpContent").load("BrowsePopUP", { userName: username });
window.open();
}
</script>
<% Html.Telerik().Window()
.Name("Window")
.Title("Pop UP")
.Visible(false)
.Modal(true)
.Content(() =>
{%>
<div id="popUpContent">
</div>
<%})
here is the partial view BrowsePopUp
<label for="CardQty-input" class="labelDesign"><b>Dozen:</b></label>
<%= Html.Telerik().NumericTextBox()
.Name("CardQty")
.MinValue(0)
.MaxValue(100)
.Value(1)
.DecimalDigits(1)
.InputHtmlAttributes(new { style = "font-size:18px;text-align:center;height:20px;width:45px;" })
.IncrementStep(.5)
.Spinners(true)
%>
The pop up works except i do not get the numeicTextBox functionality out of it. The spinners do not work and i get a jquery error.
jQuery("#CardQty").tTextBox is not a function
I noticed that when i had the code on the first page and not the pop up, there was code generated by telerik onLoad that set up the numeric text box. But now since it is in the pop up, it does not get generated. I'm assuming i have to bind to something.
Any ideas.
best
danny
var window = $("#Window").data("tWindow");
window.center();
$("#popUpContent").load("BrowsePopUP", { userName: username });
window.open();
}
</script>
<% Html.Telerik().Window()
.Name("Window")
.Title("Pop UP")
.Visible(false)
.Modal(true)
.Content(() =>
{%>
<div id="popUpContent">
</div>
<%})
here is the partial view BrowsePopUp
<label for="CardQty-input" class="labelDesign"><b>Dozen:</b></label>
<%= Html.Telerik().NumericTextBox()
.Name("CardQty")
.MinValue(0)
.MaxValue(100)
.Value(1)
.DecimalDigits(1)
.InputHtmlAttributes(new { style = "font-size:18px;text-align:center;height:20px;width:45px;" })
.IncrementStep(.5)
.Spinners(true)
%>
The pop up works except i do not get the numeicTextBox functionality out of it. The spinners do not work and i get a jquery error.
jQuery("#CardQty").tTextBox is not a function
I noticed that when i had the code on the first page and not the pop up, there was code generated by telerik onLoad that set up the numeric text box. But now since it is in the pop up, it does not get generated. I'm assuming i have to bind to something.
Any ideas.
best
danny