jQuery UI Widgets › Forums › Grid › jqxgrid createwidget Icons column inserted on button click
Tagged: angular 2 grid, angular grid, click, createwidget, grid, image, image column, initwidget, jquery grid, jqxgrid, widget column
This topic contains 4 replies, has 2 voices, and was last updated by Dimitar 7 years, 8 months ago.
-
Author
-
I have a grid with a image column, I have implemented the createwidget to place in the images inside the cells of the image column. I want to create a button click event where I selected rows and it would display the image only on the selected rows. There are two buttons, because each signifies as an action.
Note: The images inside the image column are suppose to not display until the action button is clicked. So the images of the selected rows will only show until action button is clicked.
Here is my old jsfiddle with the action button: (To give an Idea)
http://jsfiddle.net/LL11bomp/8/Here is my jsfiddle with createwidget: (The problem that need to be solved)
http://jsfiddle.net/G9KY5/473/Please give a good example like using a jsfiddle link:
Hello dan123,
Here is how to achieve your requirement: http://jsfiddle.net/Dimitar_jQWidgets/3onsL31w/. Please select some rows from the “Customers” grid and click on “Action Button”. The images of these rows will be displayed.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/Hi Dimitar, this is awesome but I when I perform the action on a row, I want those icons when I perform the action button on another row. Because right now when I select row 1, and click the button, it shows the icons. But when I unselect that row and select row 2 and click the action button, the icons disappear on row 1.
Also adding to the above post, I want Action Button 2 to insert the second Icon image. I cant seem to achieve this either
Hi dan123,
This should be achievable if you modify the implementation of createwidget and the use of the actionButtonClicked and selectedrows variables (you may need a new flag variable for “Action Button 2”, e.g. actionButton2Clicked).
Your requirements represent custom functionalities that are not directly related to the widgets but to the general use of JavaScript. Unfortunately, we cannot offer you complete solutions for them. However, if you wish, you can contact our Sales department at sales@jqwidgets.com and request a custom development service.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.