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

NumericText Box in Popup Twindow

3 Answers 48 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.
Norway77
Top achievements
Rank 1
Norway77 asked on 03 Feb 2011, 11:11 PM
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

3 Answers, 1 is accepted

Sort by
0
Scott
Top achievements
Rank 2
answered on 17 Apr 2012, 02:15 PM
I need an answer to this as well....
0
Georgi Krustev
Telerik team
answered on 18 Apr 2012, 11:50 AM
Hi,

 
I will suggest you check this help topic. If the problem still persist I will ask you for a simple test project which replicates the issue. Thus I will be able to observe the issue locally and advice you further.

Regards,
Georgi Krustev
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
ALVARO JAVIER
Top achievements
Rank 1
answered on 03 Sep 2012, 11:42 AM
Hi,

I have the same problem, when i move the numeric text box to a Telerik pop up window i lose the functionallity and get the same error tTextBox is not a function.

The help topic doesn't work or i only see black window with any information.

I would like to see this help topic or have an answer to this.

Kind regards.
Alvaro.
Tags
NumericTextBox
Asked by
Norway77
Top achievements
Rank 1
Answers by
Scott
Top achievements
Rank 2
Georgi Krustev
Telerik team
ALVARO JAVIER
Top achievements
Rank 1
Share this question
or