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

[Solved] partial views

1 Answer 94 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.
cp
Top achievements
Rank 1
cp asked on 25 Mar 2011, 08:58 PM
Hi,
I'm using this control inside a partial view that gets updated when a button gets clicked and have run into an issue when rendering the whole partial view via ajax. It will work fine when the page loads for the first time until I click the button and the view gets updated. I don't have the same problem when returning json as opposed to the whole view.

Here is the code:
.... ajax call
document.getElementById('configuration').innerHTML = $('#configuration', response).html();
....
<%=Html.Telerik().IntegerTextBox().Name("TimeInterval")
                .MinValue(0)
                .MaxValue(1000).Value(Model.EmailInterval)%>
....
$("#TimeInterval").data("tTextBox").value();


Any help is appreciated.

Thanks

1 Answer, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 25 Mar 2011, 09:15 PM
Hello Claudiu,

 Setting innerHTML will not work because no JavaScript will get executed. Use the html() jQuery method instead (assuming response is the HTML as string):

$("#configuration").html(response);

Regards,
Atanas Korchev
the Telerik team
Tags
NumericTextBox
Asked by
cp
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or