How to control scroll view of sdk:DataGrid in Silverlight 4.0? - silverlight

I have a page called Personal Info which has DataGrid which has huge data.
For Example, User wants to update Customer ID - "GALED", On double click of that row it'll pop up Update Page which shows data related to Customer ID - "GALED". After updation the Personal Info page gets refreshed so that the changes will be reflected. But because of that it resets the position of scroll and every time the user has to scroll it down to update next data, in this case Customer ID - "FURIB".
I need code which will automatically set Scroll to previous position so that user don't have scroll it down.

Related

UI5 CheckBox Issue in sap.m.Table

I have an sap.m.Table populated with a number of items. One of the columns in the table contains a checkbox allowing the user to select / deselect it for a particular item.
I have an issue where the table scrolls automatically in the following case:
I change focus to another application on my computer. The specific application makes no difference.
I return to the UI5 application containing the table but I do NOT click anywhere in the application.
I scroll down the list using my mouse scroll wheel. I still have not clicked in the UI5 app in any way including the table's scroll bars so focus is still not in the UI5 app.
I select / deselect the check box for any random item in the list that within view which obviously places focus back to the UI5 app.
The list then scrolls on it's own as if it returns to the position in the list prior to the scroll being performed in step #3 above and selects / deselects a checkbox for a completely different item. It as if the list is retaining it's visible position on the screen and returns to that position to make it visible again on the screen.
If anyone can shed some light on this, requires further clarifying details and/or can suggest a work-a-round that would be great.
Thank you
*** UPDATE ***
December 16, 2022:
Here is an example in CodePen. I additionally noticed that it only happens if I first select a check box for an item, change focus to another application, then return to the UI5 app as per step #2 above.
*** UPDATE #2 ***
Thank you #Marc who identified work-a-rounds as per his comment below.
z

Listing and updating records in db

I have an Angular 4 front end that retrieves a list of records from a db and displays them to a user. I allow the user to edit each item by opening a popup dialog, making changes to the data, and clicking a Save button.
There are multiple users but I'm told that it will mostly be one user updating a given record at any one time.
when I load the records each record has all the data required, so I don't retrieve the record when the user opens the popup dialog (as all the data is already there).
when I save the data I return a status 200 on successful update and close the dialog - I don't refresh the list of items.
Does anyone see any issues with this approach? One thing I'm thinking is that if they have the initial screen open for a while, some of the records may have been updated by another user.
should I retrieve the record from the db when the user opens it in the popup dialog?
should I refresh the list of records after the user updates one and closes the popup dialog?
is there an easy way to check if a record has been updated in the background while a user was editing the same record
Just looking for best practice or typical approaches to this scenario - tia.

react flux suspend events vs design change

I am using react and flux in my application. We have a grid. It shows country information. If user selects a row in the gird, Based on selected row, I get the country name and set the value in the store. Various listeners are listening to the store for country name change event & as soon as country name is changed, multiple subscribers perform specific task. All this is working fine.
Now as per a new requirement, we need to add a new column in the grid, which will show the country name & the value will be shown as hyperlink. When user clicks on this link, it will take user to a new page.
Problem is when user clicks on the hyperlink, then I need to update the value in store (as country information is changed). once I do that, it actually fires multiple events on current page as all the subscribers who have subscribed for country name changed event will fire.
What alternative I have in this scenario?

Sync up data in ADF table after update in DB table done outside ADF environment

I have a jsff page inside a bounded task flow. It displays a table. Each row of table has an edit icon. on click of which a new jsff page opens containing the information of the selected row ready to be edited.
Here user can update and save the information and check the information back on the first page by clicking a Done button on second page.Pretty much simple.
The problem is I have some complex implementation due to which I should not update the row information through ADF way. I take the information entered by the user and pass it to plane java file. There in the plane java file I instantiate an AM and update the information through this AM.
The problem with this approach is that when I click the Done button to come back on table page to check the saved data, the data on the table is stale.
This seems as If the table is being updated outside the ADF framework and so it is not aware of the underlying the data change hence the ADF UI table is not synced with physical table automatically.
JDev : 11.1.1.7.11
Options tried : Upon click of Done button I tried to requery the VO of ADF table by
1) Clearing the VO cache row and repopulating it
2) Re executing the iterator binding
3) Re executing the iterator binding programatically.
Thanks

angular <back> that preserves state

I have 2 angular pages
Load page 1 which shows a big table of stuff, set some filters to find what you want, click the row in the table to get more details (loads page 2 which provides details).
From page 2, Press back button, page 1 loads from scratch, without the filter the user entered
Is there a way to preserve the filter the user has set when he goes back to page1? Is there a way I can keep the table where it was (e.g., if the user has scrolled halfway down, it returns where he was, rather than to the top of the table)
I could do this manually (pass the filter to the details page, then pass it back when user hits and scroll him back to where he was in the table), but this feels painful.

Resources