EasyUI Forum
April 20, 2024, 04:10:20 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: get details/images from datagrid view  (Read 4340 times)
zudu
Newbie
*
Posts: 2


View Profile Email
« on: February 13, 2018, 08:05:17 AM »

In a case like this: https://www.jeasyui.com/tutorial/datagrid/datagrid21.php, how can I click and select the image and make it bigger?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: February 14, 2018, 08:24:36 AM »

Bind a 'click' event on the image, open a dialog to display a bigger image.
Logged
zudu
Newbie
*
Posts: 2


View Profile Email
« Reply #2 on: February 14, 2018, 10:03:02 AM »

yes, that's precisely what I want to do...but I can't find any selector that works with the image. I tried
$(".img").on("click", function() {
//manage the image
});
or, using delegated event handler (because the img is added only after the detail row is shown)
$("body").on( "click", ".img", function() {
  //manage the image
});
None of the above code "clicks" any event...I tried changing the selector, assigning an ID or different class name, but it just doesn't seem to "see" the added row...
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!