This question is locked. New answers and comments are not allowed.
Hello,
my grid the delete confirmation will not show. in your samples everything works fine but i can't see the difference.
Regards,
Timo
my grid the delete confirmation will not show. in your samples everything works fine but i can't see the difference.
<%= Html.Telerik().Grid( Model ) .Name( "dataGrid" ) .DataKeys( keys => { keys.Add( k => k.Id1).RouteKey( "id1" ); keys.Add( k => k.Id2 ).RouteKey( "id2" ); } ) .DataBinding( d => d.Server() .Select( "Load", "MyController" ) .Update( "Save", "MyController" ) .Delete( "Delete", "MyController" ) ) .Columns( c => { c.Bound( p => p.FullName ).Width( 80 ).Title( "Name" ).Width( 300 ).ReadOnly( true ); c.Bound( p => p.CanRead )Width( 100 ); c.Bound( p => p.CanEdit )Width( 100 ); c.Bound( p => p.CanCreate )Width( 100 ); c.Bound( p => p.CanDelete )Width( 100 ); c.Command( commands => { commands.Edit(); commands.Delete(); } ); } ) %>Regards,
Timo
7 Answers, 1 is accepted
0
Hello Timo,
This problem (client-side features do not work) sounds a lot like a missing ScriptRegistrar. Can you confirm you have one defined *after* the grid?
Regards,
Atanas Korchev
the Telerik team
This problem (client-side features do not work) sounds a lot like a missing ScriptRegistrar. Can you confirm you have one defined *after* the grid?
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
sebrojas
Top achievements
Rank 1
answered on 16 Jul 2010, 06:00 PM
Hello,
I'm using de Q2 beta, and the delete confirmation will not show, iI hope you can help me. teh scriptRegistrar is at the site.Master
I'm using de Q2 beta, and the delete confirmation will not show, iI hope you can help me. teh scriptRegistrar is at the site.Master
<%= Html.Telerik().Grid(Model) .Name("Grid") .DataKeys(keys => { keys.Add(g => g.GrupoID); }) .ToolBar(commands => commands.Insert()) .Columns(columns => { columns.Bound(g => g.Aplicacion.Nombre).Title("Aplicacion"); columns.Bound(g => g.Aplicacion.AplicacionID).Visible(false); columns.Bound(g => g.Estado.Nombre).Title("Estado"); columns.Bound(g => g.Estado.EstadoID).Visible(false); columns.Bound(g => g.Nombre); columns.Bound(g => g.Descripcion); columns.Command(commands => { commands.Edit(); commands.Delete(); }).Width(180).Title("Acciones"); }) .DataBinding(dataBinding => dataBinding.Server() .Select("Index", "Grupos") .Insert("Crear", "Grupos") .Update("Editar", "Grupos") .Delete("Eliminar", "Grupos")) .Pageable(settings => settings.Total(Model.TotalCount).Style(GridPagerStyles.NextPreviousAndNumeric)) //.DataBinding(dataBinding => dataBinding.Ajax().Select("_Lista", "Grupos")) .EnableCustomBinding(true) .Sortable() .CellAction(cell => { // "DataItem" is the Order object to which the current row is bound to if (cell.Column.Title == "Estado" && cell.DataItem.Estado != null && cell.DataItem.Estado.EstadoID == 2) { //Set the background of the entire row cell.HtmlAttributes["style"] = "font-weight: bold; color:red;"; } }) .Editable(editing => editing.Mode(GridEditMode.PopUp)) %>0
Hi sebrojas,
This seems to be working ok in our online demo. I will need a sample project which reproduces the issue.
Regards,
Atanas Korchev
the Telerik team
This seems to be working ok in our online demo. I will need a sample project which reproduces the issue.
Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items
0
sebrojas
Top achievements
Rank 1
answered on 22 Jul 2010, 11:30 PM
I create a new project and copy my code....It works again
0
Barkha
Top achievements
Rank 1
answered on 10 Mar 2011, 11:04 PM
I am having the same issue. The delete confirmation just won't come up. I have the Script registrar in the Site master. I can view source and see the scripts being included. I added a "alert" to the OnLoad event, and it worked. However, when I add a "alert" to OnDelete and OnEdit - nothing!
Can you tell me what JQuery function is attaching to the t_grid_delete class? The fact that OnLoad works but not OnDelete /OnEdit does not work is bothersome. I am at my wit's end - any help will be appreciated.
Can you tell me what JQuery function is attaching to the t_grid_delete class? The fact that OnLoad works but not OnDelete /OnEdit does not work is bothersome. I am at my wit's end - any help will be appreciated.
0
Barkha
Top achievements
Rank 1
answered on 10 Mar 2011, 11:18 PM
OK - I figured it out. There is a post somewhere on troubleshooting the grid that states that the jquery.validate.min.js should be atleast 1.7. The thing is, the package I downloaded from Telerik had the 1.6 version in it. When I replaced the file with a 1.7 version, the confirmation started working.
Hopefully this post will help someone else.
Hopefully this post will help someone else.
0
costantis
Top achievements
Rank 1
answered on 13 Jan 2012, 12:42 PM
[This might be old but was still troubling me...]
I was having the same issue with the delete confirmation not appearing in a server-bound grid (Q3 2011). jQuery.validate.js was 1.8.
I lost half a day trying to figure this out and here's what i ended up with:
Selectable() would prevent the delete confirmation from appearing. Of course Selectable() would have no reason to be there unless you've changed binding from Ajax to Server and had it still lurking around there... (which was my situation)
Hope this helps someone...
I was having the same issue with the delete confirmation not appearing in a server-bound grid (Q3 2011). jQuery.validate.js was 1.8.
I lost half a day trying to figure this out and here's what i ended up with:
Selectable() would prevent the delete confirmation from appearing. Of course Selectable() would have no reason to be there unless you've changed binding from Ajax to Server and had it still lurking around there... (which was my situation)
Hope this helps someone...