简体   繁体   中英

Changing jquery-bootgrid page to display selected data-row-id using javascript

I'm using a jquery-bootgrid to display paged data. Is there a way to use javascript to change to a given bootgrid page based on data-row-id? Basically the user can click on a marker on a map and I need the bootgrid to change to the page with the matching data-row-id.

This is a bit old, but, since it is sitting here unanswered:

  $(document).on("loaded.rs.jquery.bootgrid", function()
  {
     YourTableName.find(".ClassNameForYourLink").on("click", function(event)
     {
        location.href="PageYouWanttoGoTo";
     }
  }

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM