Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7814135
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:06:03+00:00 2026-06-02T05:06:03+00:00

Answer in Custom jQGrid post action adds custom button to end of action buttons

  • 0

Answer in Custom jQGrid post action adds custom button to end of action buttons using appendTo().

How to add buttons befor action buttons ?

I tried to replace appendTo() with before() and prepend() but in this all buttons disappear.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T05:06:05+00:00Added an answer on June 2, 2026 at 5:06 am

    I tried to use prependTo instead of appendTo and all works. To be exactly I used

    loadComplete: function () {
        var iCol = getColumnIndexByName(grid, 'act');
        $(this).find(">tbody>tr.jqgrow>td:nth-child(" + (iCol + 1) + ")")
            .each(function() {
                $("<div>", {
                    title: "Custom",
                    mouseover: function() {
                        $(this).addClass('ui-state-hover');
                    },
                    mouseout: function() {
                        $(this).removeClass('ui-state-hover');
                    },
                    click: function(e) {
                        alert("'Custom' button is clicked in the rowis="+
                            $(e.target).closest("tr.jqgrow").attr("id") +" !");
                    }
                }
              ).css({"margin-right": "5px", float: "left", cursor: "pointer"})
               .addClass("ui-pg-div ui-inline-custom")
               .append('<span class="ui-icon ui-icon-document"></span>')
               .prependTo($(this).children("div"));
        });
    }
    

    The corresponding demo displays

    enter image description here

    I added additionally the CSS

    .ui-inline-custom.ui-state-hover span { margin: -1px; }
    

    for small improvement of the hovering corresponds the the bug fix which already implemented in jqGrid 4.3.2.

    UPDATED: The current version of free jqGrid supports easy way to implement custom buttons. See the demo.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried the steps from the answer here: Hibernate Validator, custom ResourceBundleLocator and Spring
The answer probably involves a custom uninstall action, but it seems like such a
I've been unable to find a definitive answer to whether custom tags are valid
I have a custom password validator that someone gave me in an answer to
Answer : Implemented using Curl... $file = http://abc.com/data//output.txt; $ch = curl_init($file); $fp = @fopen(out.txt,
Answer in how to enable enter in jqgrid advanced search window describes how to
I am trying to follow the short example in the following answer on using
The answer to a previous question showed that Nexus implement a custom authentication helper
How to catch response in custom function? Basically answer gets: - (void)request:(FBRequest *) request
When i tried to check the check box in jQgrid it selecting the values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.