Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > NumericTextBox > NumericText Box in Popup Twindow

Not answered NumericText Box in Popup Twindow

Feed from this thread
  • danny avatar

    Posted on Feb 3, 2011 (permalink)

    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

    Reply

  • Scott avatar

    Posted on Apr 17, 2012 (permalink)

    I need an answer to this as well....

    Reply

  • Georgi Krustev Georgi Krustev admin's avatar

    Posted on Apr 18, 2012 (permalink)

    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.

    Reply

  • ALVARO JAVIER avatar

    Posted on Sep 3, 2012 (permalink)

    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.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / Telerik MVC Extensions (superseded) > NumericTextBox > NumericText Box in Popup Twindow
Related resources for "NumericText Box in Popup Twindow"

ASP.NET MVC NumericTextBox Features  |  Documentation  |  Demos  |  Telerik TV ]