EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
May 11, 2024, 07:07:52 AM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
get details/images from datagrid view
Pages: [
1
]
« previous
next »
Print
Author
Topic: get details/images from datagrid view (Read 4367 times)
zudu
Newbie
Posts: 2
get details/images from datagrid view
«
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
Re: get details/images from datagrid view
«
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
Re: get details/images from datagrid view
«
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...