1

Closed

MVCControlToolkit.Controls-2.4.0.js bug in MvcControlsToolkit_DisplayField_GetString

description

Hi There,

We have a data grid which fails when we click the Edit button on a display line. I'm not sure why but the error doesn't appear on all our grids, just the one in question.
We have upgraded to Jquery 1.10 and have only just come across this bug, but I believe it's a genuine bug.

Code in the MVCControlToolkit.Controls-2.4.0.js file is
function MvcControlsToolkit_DisplayField_GetString(field) {
    return $('#' + id).data('_True');
}
I believe it should be
function MvcControlsToolkit_DisplayField_GetString(field) {
    return $('#' + field.id).data('_True');
}
Note that it's field.id instead of field.

Can you please confirm, and perhaps put a fix into your code base
Closed Oct 31, 2014 at 9:29 PM by frankabbruzzese

comments

frankabbruzzese wrote Jul 8, 2013 at 1:00 PM

You belive right!

The code will be corrected together with other bugs reported in the upcoming new release of the Mvc Controls Toolkit. The new release of the Mvc Controls Toolkit was delayed a little time in order to align releases of the Mvc Controls Toolkit with releases of the Data Moving Plug-in-

I hope that both releases will be available in a couple of weeks. In the meantime you may useyour patched version...sorry for the delay, but it sould be very hard to handle dis-aligned releases of tightly connected products :)

NZCB wrote Jul 8, 2013 at 7:49 PM

Cool, thanks for the confirmation. More than happy to live with my fix for now.

wrote Oct 31, 2014 at 9:29 PM