Guys I am showing approved records in a list view in the portal. Each record contains edit button and am calling another widget in edit button using .
Here I am auto refreshing the approved records widget for every 10 seconds but the embedded <sp-widget></sp-widget> also getting refreshed.I don't want to refresh the ''.I just want to auto refresh the approved records list widget only. How can I achieve this?
Thanks!!
Refreshing the widget will refresh embedded widgets also. I would suggest only to refresh list of records by manually calling for certain interval.
Make use of setInterval(function, milliseconds)
Related
This is a more conceptual question, so I'm not initially submitting any code for it unless someone requests it.
On a current website of mine, I am using a Kendo UI grid to display a table of multiple pages. I also have a (Kendo UI) drop down list, allowing the user to filter rows by class (it reloads the page and makes the necessary edits through the controller).
My problem is this: when the user pages through the Kendo UI grid, it loads a new page and the filtering preferences do not persist. How can I make it either not reload the page(and do everything on the same page instead), or make the drop down box's value persist? Thanks, and tell me if there's any information that would be helpful for me to add!
CLARIFICATION: The functionality is all fine, the only issue is that the dropdownlist does not visually persist.
Actually you can bind both dropdownlist and grid to a single external datasource. This datasource will actually place a ajax call and get the records when the value in drop down changes. As the new records appear in datasource the grid can be refreshed or will automatically refresh without the page reload. Page reload doesn't look like a clean way to filter the grid.
I work with ExtJS 4.1, MVC. For the first time, after page is loaded I download data to grid and then I want to work with it locally. I can add records to the grid and manually delete them.
When I try to delete one record, I manually delete it from store (I checked store), but text in pagination is previous. I can see changes on store and on grid, but text in pagination tool is like it was before deleting.
So how can I refresh that text manually?
it should be automatic but you can fix it with pagingtoolbar.doRefresh( ) , or firing the change event of the binding store.fireEvent("change")
I am working on Project on which around 1000 table view on a single page is exit.I had given a scroll bar for it but it is not as smooth as intended to be.So Some how can I draw the table which fits within the screen or window. Then when user wants to scroll down it will draw the other table.I donot want to use pagination provided by javafx .I prefer to have a scroll bar but in the beginning instead of displaying all the table it will display 10 or 15 tables whichever fits within the screen.Any help on this will be appreciated..
You may use Pagination instead. Each page will create it's own table every time it's opened. When you provide a page index to the page factory then retrieve the necessary data according to that index. Only one istance of Table View will exist in the memory.
Background: Xpage with multiple data sources. Each row of tabbed table contains an edit panel bound to a different data source than the main page. Each page contains a table to enter new documents. These documents are children of the main document. There is a view control that shows the user created documents immediately. The button in the table saves the document in addition to adding some control fields. It does a partial refresh of the editPanel.
Recently I added validation to the fields in the entry table. I use a function, and prevent updating from anything but the button. I am using Tommy Valand's method from this blog post: http://dontpanic82.blogspot.com/2010/03/xpages-making-validation-behave.html. If I don't use Tommy's method, then the validators fire when switching tabs, and are useless.
All of this works sort of, but I am experiencing the following issues.
1) I have to push the button twice to get the partial refresh to fire. Not only that, but the validation messages to not fire until the button is pushed twice. The first part was still an issue prior to adding the validation.
2) The table values do not clear after the refresh does happen. This used to work prior to adding the validation. The only way to get the values to clear now, is to do a full refresh (F5).
I really just need partial refresh to behave like it should. Any help is greatly appreciated.
I am answering my own question because I think that I might have found out why the partial refresh was acting so flaky. Here is what I did that solved my issues: Each tab had an editPanel. If I make the edit panel do a partial refresh to itself then the buttons on that panel seems to behave as you would expect them to.
When I create a new core control panel, the default in No submission. I do not know whether this issue manifests itself only when using multiple data sources and/or tabbed tables. Hopefully this fix will be of use to someone down the road. It is worth a try if you are having issues with partial refresh working correctly.
Is it possible to create lazy loading like pagination with richfaces? My idea would be to catch the event of scrolling on a specific page and then rerender a part of the page.
So the flow would be
create 10 search results on a search result page
if the user scrolls
Then reload the result region with 10 additional entries
An option would also be to create a Facebook like "more" bar and to rerender the region, when the user clicks on the button.
What do you guys think?
How about using the ScrollableDataTable ? Might not be what you want if your results are searchresults, but it might work still..
http://livedemo.exadel.com/richfaces-demo/richfaces/scrollableDataTable.jsf;?c=scrollableDataTable&tab=usage
If you want to automatically load more items as you scroll, you can create an anchor near the bottom of the page, and the detect when that anchor is visible, which will fire off an XHR request to re-load the component holding the results.