By ugesh.gali on
Hi
I want to implement grid view in drupal so that i can perform operations like view,edit and delete in that grid. I searched in drupal for it it is possible by jqp and sevices modules to load external javascript libraries.any examples?
Comments
There are many modules that
There are many modules that load external libraries. One is the Jquery Colorpicker module (shameless plug - it's my module!). You can pull it (or others) apart to see how they include the external libraries.
Contact me to contract me for D7 -> D10/11 migrations.
loading external libraries
Hi ,
I have installed jqgrid using external libraies but i was not able to edit and update through the grid.
Can you just give direction in doing this module.
have u check that jqgrid can
have u check that jqgrid can be used with the version of the jquery that drupal ships with?
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
yeah i have checked jqgrid
I got the grid functionality in drupal but i was not able to update the database through events in jqgrid.
you need to call ajax request
Build one menu item in hook_menu,
Process ajax request with menu item url in your grid event, which will pass your data you wanted to save (Method may be GET OR POST).
You need to handle logic in the function calling for menu item. Which will take data from request and process accordingly.
Best Regards,
Rajan
how to call ajax call request
hi
i have written a code in another modue can you look at this ang give me the direction in implementing this module.
it is the module file
and the jsfile is
the basic thing is i cannot load the LOADURL and SAVEURL lines through the js file.i used JQP and services modules to load this grid.
This may help you..
I dont know on which event you want to save data.
But i would like to give one little example ...
// implementation of hook_menu
// your wbs_effortgrid function ...i think you want to call event for any grid action
In your js file, call ajax in your grid event (http://api.jquery.com/jQuery.ajax/) .
pass parameters through url , that you want to save.
call following in within your grid event.
suppose you want param1 and param2 to be save.
get request data, and process accordingly
Best Regards,
Rajan
Try this tutorial
Try this tutorial http://www.viziontech.co.il/tutorial1
it surely can help you in doing ajax in drupal
--------------------------------------------------------------------------------------------------------
if you can use drupal why use others?
VicTheme.com
_
Please don't crosspost. I've deleted the other post (and added your code here). You've already got people helping you here, there's no need to confuse the matter by splitting it across multiple threads. Thanks.
See jquery grid in drupal here
Hello Folks,
I have created one simple example for this, you can read my post at http://rajanmayekar.co.cc/jquery-grid-in-drupal.
Demo is available here http://testsandbox.iblogger.org/jqgrid_example/showgrid.
Cheers,
Rajan
http://www.drupal.org/project
http://www.drupal.org/project/datatables
My Drupal sites: