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

[Solved] Javascript validation error after upgrade to 2010.3.1318

4 Answers 32 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.
Stephen
Top achievements
Rank 1
Stephen asked on 27 Jan 2011, 01:59 PM
Hi,

I'm currently having a very odd javascript error after upgrading the MVC Grid from 2010.3.1110 to 2010.3.1318.
This error seems to stem from my use of Toolbar buttons and i am at a loss as to how to fix it!

Currently, when i click on a toolbar button, nothing happens - but i get the following error in firebug:

e(h).closest("form").validate() is undefined
[Break On This Error] (function(e){var g=e.telerik;var d=fun...put-validation-error")}})}}})(jQuery);

This error seems to come from the file telerik.grid.editing.min and is thrown whenever i click on ANY toolbar button - i'm truly stumped!

Any help right now would be appreciated.

Thanks

4 Answers, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 27 Jan 2011, 03:54 PM
Hello Stephen,

Unfortunately, we are not sure where could be the problem. Could you please check our online demos and try to reproduce this issue? If the problem still persists I will suggest you send us a simple test project which reproduces the depicted issue.

Regards,
Georgi Krustev
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
Stephen
Top achievements
Rank 1
answered on 27 Jan 2011, 04:11 PM
Hi Georgi,

Thanks a lot for your prompt response. I have tried to repro the issue via the online demo's, but unfortunately my use of the toolbar is a bit more specific than as used in the examples listed there. I'm running this on ASP.NET MVC 2 and a snippet of the code that is used to create the toolbar buttons is included below:

.ToolBar(commands => commands
            .Custom()
            .HtmlAttributes(new { id = "id" })
            .Text("text")
            .Action("action", "controller", null))
         .ToolBar(commands => commands
            .Custom()
            .HtmlAttributes(new { id = "reset" })
            .Text("Reset"))

The code above worked perfectly before i upgraded the MVC controls but now doesn't work.

I'll try to put a sample project together, but if you have any ideas before then, please let me know.

Many thanks,
0
Stephen
Top achievements
Rank 1
answered on 27 Jan 2011, 04:53 PM
Hi Georgi,

My issue is the same as that listed here:


Thanks
0
Accepted
Georgi Krustev
Telerik team
answered on 27 Jan 2011, 05:06 PM
Hello Stephen,

Please check this link for more information.

Regards,
Georgi Krustev
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
Tags
Grid
Asked by
Stephen
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Stephen
Top achievements
Rank 1
Share this question
or