Custom toolbar button

QuestionsCustom toolbar button
Ananda Theerthan asked 10 years ago

I am using custom button in the toolbar as per below code
<script type="text/javascript">
caption: (string) the caption of the button, can be a empty string.
buttonicon: (string) is the ui icon name from UI theme icon set. If this option is set to “none” only the

text appear.
onClickButton: (function) action to be performed when a button is clicked. Default null.
position: (“first” or “last”) the position where the button will be added (i.e., before or after the

standard buttons).
title: (string) a tooltip for the button.
cursor : string (default pointer) determines the cursor when we mouseover the element
id : string (optional) – if set defines the id of the button (actually the id of TD element) for future


jQuery('#list1').jqGrid('navButtonAdd', '#list1_pager',
'caption' : 'Export Selected',
'buttonicon' : 'ui-icon-extlink',
'onClickButton': function()
// for all ids
// var allRowsOnCurrentPage = $('#list1').jqGrid('getDataIDs');

// for selected rows
var selectedRows = jQuery('#list1').jqGrid('getGridParam','selarrrow');"export.php?id="+selectedRows)
'position': 'last'

I want to execute bulk DB update when the button is clicked.Please help how to achieve this.

1 Answers
Abu Ghufran answered 10 years ago

Please refer demos/editing/bulk-edit.php

Your Answer

5 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.

How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?