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

[Solved] telerik.grid.editing.min.js - "field-valiion-valid"

1 Answer 74 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Rene
Top achievements
Rank 1
Rene asked on 10 Apr 2011, 05:40 PM
Trying to debug an issue with grids in partials loaded via ajax in tabs and I came accross this in telerik.grid.editing.min.js:

"field-valiion-valid"

I'm thinking it may or many not be an error....

Should it be this:

"field-validation-valid"

?

Scenario:

1 page with grid - popupedit enabled.
click edit to edit a row - popup window appears.
the popup window has a tab on it - and a grid is loaded in one of the tabs via partial / ajax. (all js are manually registered and fine in partial).  the grid also has popupedit enabled

when clicking on edit button in grid in tab - popup window appears ok

this is where the problem occurs - the close button, insert (or update if updating a record), or cancel buttons on popup window no longer work - javascript error when clicking the close button (top right) gives js error:  'data(...).modal' is null or not an object

1 Answer, 1 is accepted

Sort by
0
Rene
Top achievements
Rank 1
answered on 10 Apr 2011, 06:55 PM
I may have found the fix to my problems ... and possibly other problems with popup edit windows for the grid.


In telerik.window.min.js

in the close:  function()

where:

var g = d(".t-window").filter( function( ) {
   var i = d(this);
   //  I added the next 2 lines since i.data("tWindow") is null in my nexted popups....
   if( i.data("tWindow") == null || i.data("tWindow") == 'undefined )
     return i.is(":visible")

   return i.is(":visible") && i.data("tWindow").modal
});

Tags
Grid
Asked by
Rene
Top achievements
Rank 1
Answers by
Rene
Top achievements
Rank 1
Share this question
or