2 posts, 1 answers
  1. Gusev
    Gusev avatar
    77 posts
    Member since:
    Dec 2012

    Posted 29 Mar 2013 Link to this post

    I use IntegerTextBox
    I use this 
    @helper RenderConfigPlan()
    <tr class="k-header">
                             <td>@Html.LabelFor(x => x.minProfit)</td>
                             <td>@Html.EditorFor(x => x.minProfit, "Integer")</td>
    and I see next:
    "minProfit" , which located at the top of the page with  IntegerTextBox from Kendo
    and another "minProfit", where it should be, but  with IntegerTextBox from Asp

    Why is this happening?(because of @RenderConfigPlan())
  2. Answer
    Petur Subev
    Petur Subev avatar
    1882 posts

    Posted 02 Apr 2013 Link to this post

    Hello Gusev,

    I assume that the problem is the editor inputs are generated with the same ID. And since the initialization script looks something like this:


    jQuery will return the first element in the DOM and initialize NumericTextBox from it.

    So in order to avoid this you should use different names for the input elements.

    Kind Regards,
    Petur Subev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top