*
The moose likes HTML, CSS and JavaScript and the fly likes add,edit,delete mode on JQuery-Grid? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "add,edit,delete mode on JQuery-Grid?" Watch "add,edit,delete mode on JQuery-Grid?" New topic
Author

add,edit,delete mode on JQuery-Grid?

luckay win
Ranch Hand

Joined: Sep 21, 2010
Posts: 36
Hello All,

Where can I download complete example of JQuery-Grid especially for edit, add, delete records?
I tried to the simple instruction http://code.google.com/p/struts2-jquery/wiki/EditGrid .. but no luck
and also tried to follow from the grid showcase (http://www.weinfreund.de/struts2-jquery-showcase/index.action) .. and still not understand ...(ie. where should I put the javascript, struts.xml .. etc)

could any body please help me to start learn add,edit,delete mode on JQuery-Grid?

many thanks in advance

Regards
Luc
Johannes Geppert
Ranch Hand

Joined: Jan 12, 2010
Posts: 67
what exactly is the problem?

the best way to understand it, is to download the struts2-jquery-grid-showcase-x.x.x.war and the sources
and to study the jsp files and coressponding actions.

to make a grid editable you need for form or inline edit an action like this:

http://code.google.com/p/struts2-jquery/source/browse/tags/2.4.1/struts2-jquery-grid-showcase/src/main/java/com/jgeppert/struts2/jquery/grid/showcase/action/EditCustomerAction.java

or when using cell edit an action like this:

http://code.google.com/p/struts2-jquery/source/browse/tags/2.4.1/struts2-jquery-showcase/src/main/java/com/jgeppert/struts2/jquery/showcase/EditCellEntry.java

with attribute editlink in sjg:grid tag you can't set this as edit url.

Johannes


My Java and Webprogramming Blog
luckay win
Ranch Hand

Joined: Sep 21, 2010
Posts: 36
Thanks, but could you please advise where should I put these .js below:



and what's inside simpleecho.jsp?

many thanks in advance

Regards
Luc
Johannes Geppert
Ranch Hand

Joined: Jan 12, 2010
Posts: 67
the javascript topics are extension point if you need custom events e.g. at row selection.

sorry about confusing with the simpleecho.jsp, this is only a dummy value because the
grid action don't resonse any data.

Johannes
luckay win
Ranch Hand

Joined: Sep 21, 2010
Posts: 36
hmm.. so what is in struts.xml?
Amruth Puppala
Ranch Hand

Joined: Jul 14, 2008
Posts: 295
Hi,
I am also facing the same issue.

Can some one upload project , so that we can download and start using it.


Thanks in advance.


SCJP 5 |SCWCD 5| Started thinking about Web Services ?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60781
    
  65

Jovan Popovic, your post was moved to the Blatant Advertising forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: add,edit,delete mode on JQuery-Grid?
 
Similar Threads
Struts2
Struts2-Jquery Grid.
struts2 + Json and JQuery.
Struts2 UI Framework
How to customize the add,edit, delete of Showcase JQuery Grid