This question is locked. New answers and comments are not allowed.
When I click on an Edit button, the whole page is reloaded (with some
unpleasant side effects on paths : it can't find anymore my images in
/contents/icons because it looks for them in
Administration/Index/contents/icons (administration is my "parent"
controller (I'm using renderaction to display Terme/Index in a
contenttemplate, and from this view I'm using Renderpartial to display
the grid).
Edit textboxes and Update/cancel button appears , but the buttons do not work.
I must have made a stupid mistake, but I can't see where.
This is my view (so, it's a partial one, rendered by RenderPartial)
I'm thinking I'm messing things with my RenderAction and RenderPartial, or some javascript is not found when needed.
The Html.Telerik().ScriptRegistrar() is done on the master page.
Is it a problem to have both jquery 1.3.2 and 1.4.1 on the same page ?
Edit textboxes and Update/cancel button appears , but the buttons do not work.
I must have made a stupid mistake, but I can't see where.
This is my view (so, it's a partial one, rendered by RenderPartial)
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Waldesk_MVC.Models.TermeModels+TermesModel>" %> |
<div id="divGrid" style="width:600px"> |
<%= Html.Telerik().Grid(Model.TermeList) |
.Name("Termes") |
.DataBinding(dataBinding => dataBinding |
.Ajax() |
.Select("Select", "Terme") |
.Insert("Ajouter", "Terme") |
.Update("Sauver", "Terme") |
.Delete("Effacer", "Terme") |
) |
.DataKeys(keys => keys.Add(t=>t.ID)) |
.Toolbar(commands => commands.Insert()) |
.Columns(columns => |
{ |
columns.Bound(t=>t.TexteCourt).Width(100); |
columns.Bound(t=>t.TexteLong).Width(320); |
columns.Command(commands => |
{ |
commands.Edit(); |
commands.Delete(); |
}).Width(180); |
}) |
.Pageable() |
.Sortable() |
%> |
<% Html.Telerik().ScriptRegistrar().OnDocumentReady("$('.insert-button').click(function(e) { e.preventDefault(); $('#Termes').data('tGrid').createRow(); }); "); %> |
</div> |
I'm thinking I'm messing things with my RenderAction and RenderPartial, or some javascript is not found when needed.
The Html.Telerik().ScriptRegistrar() is done on the master page.
Is it a problem to have both jquery 1.3.2 and 1.4.1 on the same page ?