Disable duplicate select on dataTable - ajax

When selecting the same row twice (on a Primefaces DataTable), the rowSelect ajax behavior gets fired both times. Is there any way to optimize this and don't update the second time when the same row is selected?
Note:
Primefaces 5.0

Related

Retain the previous checked state of checkboxes after Reload of JqGrid having Multiselect = true

I am developing an application using MVC and I am using JqGrid to display the data.
The JqGrid is inside Views\Shared folder as partial page.
This grid is loaded as partial page in another View (Home.cshtml).
Multiselect option of the grid is set to True so that the first column is shown as Checkbox for all rows.
This Grid is loaded/refreshed in intervals of 2 minutes using Javascript SetInterval.
When I select the checkboxes of the Grid row, the checked state of checkbox is not retained after Grid is refreshed in the intervals of 2 minutes.
Kindly help me with the solution to this problem, the previous checked state of checkbox should be retained after Grid refresh. Thanks.

Vaadin Grid refresh issue

I'm using Vaadin Framework 8.0.6
I have the following workflow :
Display grid with DataProvider and function DataProvider.fromCallbacks for lazy loading
Update one item of this grid via a form displayed in a window
Save the updated item, close window and call dataProvider.refreshAll()
Grid is now up to date and show the new data in the corresponding row
So far everything is ok but when I select and only when I select the row of the updated item, it will display the old data of the item.
To do some tests, I have created next to the grid a button to call dataProvider.refreshAll()
When I click on it, the data is refreshed and up to date again
but after, if I select the row of the updated item, it displays the old data again
Any idea ? is it a cache problem ?
FYI, after updating to Vaadin 8.1.0, this issue has disappeared.

Orbeon Repeat Grid Issue Dropdown Issue

In my Repeat Grid I have
1. First Dropdown
2. Second Dropdown
3. Input Area
When I select value from First Dropdown, data of Second Dropdown will be loaded. (I'm using On Value Change Action)
When I click on Plus (+) the value of Second Dropdown of First Row changes!
Similarly if I change any row First Dropdown, the values getting bounded for all the Second Dropdowns. Whatever I selected initially will be reloaded again!
Is this the bug in Orbeon or is there a way to load them differently?
This was the behavior prior to Orbeon Forms 2016.1. You can read more details in issue #1770. You can consider upgrading to Orbeon Forms 2016.1, or using the Dynamic Data Dropdown control as a workaround.

ClientSide RowSelect stops working after pagesize change in radgrid

I have many telerik rad grids in my project .
It initialize with ability to have client side row selection with
<clientsettings>
<Selecting AllowRowSelect="True" />
</clientsettings>
it is ok and in first load when my paging selector is on 10 object per grid selecting works fine , but when I change page size to 20 or 50 selecting suddenly stops working and I can not select row as before . Can anyone help me with this ?
RadGrid loses its current selection on postback - e.g. when the data is sorted, a new
group or filter is added, or when the current page changes.
You can try following approaches to implement a way to persist the client-side selection. (sample code snippet is in the attached link)
Using Web Storage
Using JavaScript array
The following logic is used to persist the selected rows:
Handle OnRowSelected and OnRowDeselected events for RadGrid. In the handlers you should update the collection of the selected items.
Handle OnRowCreated event. In this handler you should check if the current item is present in the selected rows collection and select
it if necessary.
For full details, please check this article - Persisting the Selected Rows Client-side on Sorting/Paging/Filtering/Grouping

primefaces p:rowExpansion

I am using primefaces2.2.1 in my jsf2.0 application. I have problem with datatable rowExpansion which contains another datatable. So, I want to add/remove/edit row in inner datatable (datatable which is in expanded row) and update it after action has preformed. Also I want to keep current row expanded after update. One solution is: updating whole datatable and expanding selected row after update but it gives bad visual effect...

Resources