Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Struts
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Struts
Struts2Jquery deleting row in a grid
James Peter
Ranch Hand
Posts: 115
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi all,
I am getting below error when i try to delete selected row in the grid.
jQuery("#userTable").delGridRow is not a function
i found some suggestion on below url
suggestion
need to include
$.struts2_jquery.require("js/plugins/grid.formedit.js"); $.struts2_jquery.require("/js/struts2/jqModal.js"); $.struts2_jquery.require("/js/struts2/grid.common.js");
but i am not sure how to include i added like below. but not working.
function deleteFunction(){ $.struts2_jquery.require("js/plugins/grid.formedit.js"); $.struts2_jquery.require("/js/struts2/jqModal.js"); $.struts2_jquery.require("/js/struts2/grid.common.js"); jQuery("#userTable").delGridRow( selectedRow); $('#deleteUserDialog').dialog('close'); };
Johannes Geppert
Ranch Hand
Posts: 67
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
how is your grid configured?
Johannes
My Java and Webprogramming Blog
James Peter
Ranch Hand
Posts: 115
posted 13 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
<s:url id="remoteurl" action="displayStudentTable"/> <sjg:grid id="gridtable" caption="Students" dataType="json" href="%{remoteurl}" pager="true" gridModel="gridModel" rowList="10,15,20" rowNum="15" rownumbers="true" resizable="true" resizableAnimate="true" resizableGhost="true" resizableHandles="all" onSelectRowTopics="CaptureSelectedRow" > <sjg:gridColumn name="firstName" index="firstName" title="First Name" sortable="false" width="100"/> <sjg:gridColumn name="lastName" index="lastName" title="Last Name" sortable="false" width="80"/> </sjg:grid>
khekhone yvan
Ranch Hand
Posts: 79
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
can i see your code all your code because i dont succes to populate my grid
Rajil Davda
Greenhorn
Posts: 1
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hey.. Have you solved this problem?
I also am facing the same problem. But sometimes it works and sometimes not.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
is it possible to use jquery post in Struts2
Struts2 Validation Not working
Creating JSON object in struts2
Struts2-Jquery Grid.
Handling error messages (Struts2 jquery )
More...