Block ui except the correct record on primefaces - user-interface

I am using primefaces 5.0 with spring webflow. I have the page with datatable which lists out the records and there is one record access from another page. As user request if I choose view one record which will redirect to the another page of datatable, she want to block the UI of other records and place a button at the bottom of the data table for admin to unblock the records or auto unblock after 10 seconds.
I have no idea on how to block the ui or unblock. Do you have any ideas??
Thanks for your help,

Related

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

Database web frontend php, ajax, js

My skills in Java/AJAX are relatively poor. I am looking for a method or example link, that would enable the creation of a postgresql front end, that displays a record, the user clicks submit to edit the record changes. and Next to view the next one. The record would be shown within the text boxes within the page as it does when it is first created.

moving data between two list boxes

I have two ListBox controls (or 2 html select controls with
runat=server) on a web page and some buttons to move data from one
listbox to another (using javascript). The problem is that when the
page gets on the server I can't get the items that I've moved from the
1st list to the second on the client, I always see the controls as
they were when the page was generated on the 1st request.
How I can see on the servers the items that I've put on the 2nd list?please provide the code in mvc3
It seems..everytime postback .. two select boxes are refresh. Please try to put
In Page Load event
If(!IsPostBack)
{
// populate data into select boxes here
}

Executing all datatable rows when using rich:dataScroller

I'm facing this problem when using Richfaces 4.x... what I have is a datatable in edit mode so where the user can insert data using textboxes or radioButtons. The table needs to have a maximun of 10 rows per page reason why I also use a rich:Datascroller to paginate.
Suppose I'm on page 1 and there are validation errors on page 3, when the user clicks the save button JSF sends the entire table. However, since only the values of page 1 are visible it bypasses validations for rows on page 3. Any ideas how can I avoid this problem?. Thanks a lot.

get and display data in MVC 3 using Ajax

I have one view page in MVC named as ‘Index’. There are 3 main controls in that view page. For better understanding, take below example as reference.
1. One Dropdown ‘Customer’
2. One Dropdown ‘Project’ (that depends on ‘Customer’)
3. List of Task (that depends on ‘Project’).
Currently first user needs to select ‘Customer’. So based on customer ‘Project’ dropdown data will be fetched from post method of Index and bind that ‘Project’ dropdown. After selecting ‘Project’, List of task will be fetch from post method of Index and bind those tasks. So every time page is loaded again.I want to do it by Ajax form submit.
My problem – those 3 controls are in one view page so I want to return page view using Ajax without using Partial View. Is this possible? If yes then how? Or any other solution so that I am able to display data without reload whole page again.
If u can give me example of such scenario then it will be good.

Resources