Go Back   CodingForums.com > :: Client side development > JavaScript programming > JavaScript frameworks

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-09-2011, 11:19 PM   PM User | #1
deepna
New Coder

 
Join Date: Sep 2011
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
deepna is an unknown quantity at this point
JQGrid Delete

Hi,

Im trying to implement a jqgrid in my web page but not able to handle delete i.e. if the user selects multiple values, and clicks on delete, i want to invoke a servlet that will handle the delete and return to the page. Please help, the code snippet is as below
Code:
        <script type="text/javascript">
            function fillGridOnEvent(){
                $("#jQGrid").html("<table id=\"list\"></table><div id=\"page\"></div>");
                jQuery("#list").jqGrid({
                    url:'<%=request.getContextPath()%>/MyServletGrid?q=1&action=fetchData',
                    datatype: "xml",
                    mtype: 'POST',
                    height: 423,
                    colNames:['##','Keyword','Category','ViewType',"Action"],
                    colModel:[
                        {name:'srNo',index:'srNo', width:30,sortable:true,align:'center'},
                        {name:'Keyword',index:'Keyword', width:200,sortable:true},
                        {name:'Category',index:'Category', width:100,sortable:true,align:'center'},
                        {name:'ViewType',index:'ViewType', width:100,sortable:true,align:'center'},
                        {name:'view',index:'view', width:113,sortable:false,align:'center'}
                    ],
                    multiselect: true,
                    paging: true,
                    rowNum:18,
                    pager: $("#page"),
                    loadonce:true,
                    caption: "Test JQGrid"
                }).navGrid('#page',{edit:false,add:false,del:true});
            }
            jQuery().ready(function (){
                //fillGrid();                    rowList:[10,20,30],
            });
Thanks,
Deepna
deepna is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:32 AM.


Advertisement
Log in to turn off these ads.