Forum


07:46

19/11/2009

Folks,
I've got an ASP.NET MVC site and I am trying to implement jqGrid drag and drop. I've gotten pretty much all of the other jqGrid features working that I want, but there seems to be a problem with drag and drop. As soon as I add the jqGrid("#grid", 'gridDnD' ... code to it, there is a javascript exception with the text "exception thrown and not caught".
Here's my script includes at the top of every page:
<link href="../../Content/Site.css" rel="stylesheet" type="text/css" />
<link rel="Stylesheet" type="text/css" media="screen" href="/Scripts/themes/vader/jquery-ui-1.7.2.custom.css" />
<link rel="Stylesheet" type="text/css" media="screen" href="/Content/ui.jqgrid.css"
/>
<script type="text/javascript" src="../../Scripts/jquery-1.3.2.min.js"></script
>
<script type="text/javascript" src="../../Scripts/jquery-ui-1.7.2.custom.min.js"></script
>
<script type="text/javascript" src="../../Scripts/jquery.validate.min.js"></script
>
<script type="text/javascript" src="../../Scripts/MicrosoftMvcJQueryValidation.js"></script
>
<script src="/Scripts/grid.locale-en.js" type="text/javascript"></script>
<script src="/Scripts/jquery.jqGrid.min.js" type="text/javascript"></script>
And then I try and link two grids for DnD:
jQuery(
"#availableAbilities").jqGrid('gridDnD', { connectWith: '#currentAbilities'
});
Any advice on what I can do here to troubleshoot this would be greatly appreciated. I downloaded the full jQuery UI plugin and put that in my Scripts directory and i downloaded the full jqGrid plugin (checked every box) and put that in my scripts directory but something is obviously screwing up with the DnD.
07:22

Moderators
30/10/2007

Hello,
This a very strange, moreover that you have everthing checked when you download the grid.
Could you please send me a link to the problem?
Best Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
18:14

Moderators
30/10/2007

Hello,
Do you have dowloaded all the needed modules. Does you jQuery UI contain the draggable, droppable and sortable widgets?
Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 715
Currently Online:
48 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66