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

[Solved] Ajax call can not get the jquery functionalities of telerik component

0 Answers 27 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
khaldoun
Top achievements
Rank 1
khaldoun asked on 21 Dec 2011, 05:41 PM
Here is the issue:
I have a cshtm file that contains
@model apcurium.AOP.Web.Models.Wines.UpdateWineModel
@{
    //Layout = null; 
}
 @using (Html.BeginForm("UpdateWineCaStore", "Wine"))
        {
  @(Html.Telerik().CurrencyTextBoxFor(model => model.Wine.PriceDetail).Spinners(false))
}



I get this form with an ajax call 
function getForm(actionUrl, targetDiv) {
       $.ajax(
       {
           url: actionUrl,
           success: function (result) {
               $(targetDiv).html(result).show();
           }
       });
   }

The functionality of the   CurrencyTextBoxFor  does not work .
If I change the layout=null to my layout it works .
the page that call this ajax has the layout with all the declarations of telerik 

Am I missing something?


Tags
General Discussions
Asked by
khaldoun
Top achievements
Rank 1
Share this question
or