JqGrid - drag & drop - changing page reload grid - drag-and-drop

I am using drag and drop on jqgrid with success.
So, when I drag a row it disappear from the 1st grid and it appears on the 2nd.
The problem is that if I go to page 2 in the 1st grid and then go back on page 1 the dragged row reappar because the grid will reload.
What's the best way to avoid this?
before dropping i can update a hidden field so that the query will not get that row from the DB
any way to use paging and load the page just once?

Related

ag-grid change row-height of a specific row after button is clicked

I have an ag-grid where 1 of the columns is a button Cellrenderer. And after user click on the button, it shows user a multi-line info. It's cut-off now. And I want that specific row to become higher rowHeight. not changing other rows' height.
I have searched and read other ppl's solution on dynamically fit row to the content of the row, that's not helpful for me because my content doesn't show up unless user click on the button. Thanks.

Using addHeaderView in Android

On clicking the button following happens to the ListView:
1. Through addHeaderView the header is displayed.
2. SimpleCursorAdapter displays data from the database table.
Now when I click the button again then the header duplicates, in the list while the data from the table is correctly displayed.This keeps happening every time the button is clicked.How to solve the problem.
The Adapter does not provide HeaderView-s and doesn't count them.
Use ListView.getHeaderViewsCount() to get the number of header views. This is how you can avoid adding unnecessary views.

How to refresh a TableViewer in Eclipse RCP Application

I’m using JFace viewer Framework in my eclipse rcp application, I’ve created a Table Viewer, which populates some data .My view has a refresh button below tableviewer, when I select a row in tableviewer and trigger refresh button the selected row still appears in gray color.
Scenario is depicted below
Before selecting a row
After selecting a row
After refresh
In what way can i remove the gray background as in the above figure and make it as 1st image.
My refresh button listener code is simple which has
viewer.refresh();
as a workaround i tried implementing methods like
viewer.getTable().redraw();
viewer.getTable().setRedraw(true);
which doesn't work, is there a solution to refresh it or should I refresh the view totally
Note: My Execution environment is windows xp
That gray line is current, not previous selection. It's gray because table is not in focus. Use setSelection(StructuredSelection.EMPTY).
If you create the table with the style flag SWT.HIDE_SELECTION the table will not show its selection when it loses focus. I.e. it will look like your first image.

Is it possible to refresh the iPhone UIPicker from with in a web page

We have 2 select elements in a web page. The options in 1 are dependent on the selections made in the other. When the user changes a selection in the 1st drop down via the UIPicker the resultant changes in the 2nd drop down are not reflected in the picker. We have close the picker and reopen it to see the changes. Is it possible to force the picker to refresh from the web page?

Wicket - need FilterForm ajax events for GoAndClear button events

I've added a FilterForm with GoAndClear buttons to an AjaxFallbackDefaultDataTable. The filtering is working fine except for refreshing my table. I have a dropdown that changes the number of rows to show which does a target.addComponent(my AjaxFallbackDefaultDataTable) which doesn't reload the data but refreshes the. If I use this after I click a Go or Clear button then the table shows the proper rows, item count, and page links.
How can I handle Go and Clear clicks on my FilterForm to update my AjaxFallbackDefaultDataTable?
In the onsubmit method for the filter form just call .renderComponent() for the table.