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 6 years, 4 months ago.
December 28, 2016 at 5:41 pm jqxgrid createwidget Icons column inserted on button click #90159
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)
Here is my jsfiddle with createwidget: (The problem that need to be solved)
Please give a good example like using a jsfiddle link:
December 29, 2016 at 6:35 am jqxgrid createwidget Icons column inserted on button click #90175
- This topic was modified 6 years, 5 months ago by 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.
http://www.jqwidgets.com/December 29, 2016 at 2:40 pm jqxgrid createwidget Icons column inserted on button click #90186
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.December 29, 2016 at 2:44 pm jqxgrid createwidget Icons column inserted on button click #90187
Also adding to the above post, I want Action Button 2 to insert the second Icon image. I cant seem to achieve this eitherJanuary 4, 2017 at 8:46 am jqxgrid createwidget Icons column inserted on button click #90293
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).
You must be logged in to reply to this topic.