In my Vaadin web application I need to display 10,000+ user Information in a Table(or Grid) . The User information displaying in UI is retrieved from our own Spring REST web Service.
How Can I achieve this? ...
Thanks
Steps:
1. Read the list of users from your REST service.
2. Created a GRID and attache the BeamItemContainer of User to it.
Grid will take care of displaying the users. You don't have to do anything special for lazy loading. grid will take care of it by displaying only required rows on UI and fetching it lazily at component level.
P.S : Grid is very smooth while loading the data on scroll than table. If you have too many rows prefer grid over table.
Related
I have a kendo UI DropdownList that has values:
User 1, User 2, User 3 and User 4 and I would like to hide User 1 and User 2 and only show User 3 and User 4 based on a certain condition.
Here is the Dojo for that.
Kindly let me know how I can achieve the above.
Cheers.
There are many possible ways to achieve this. See one of them here:
http://dojo.telerik.com/eyORO/16
I've moved the data from the html markup to a local JavaScript variable. Then a kendo DropDownList is being initialized (you didn't initialized it at all) with the WHOLE data. Then the data is being filtered via dropDownList's dataSource via its filter() method.
If your data comes from the server, you should send only the data which you need. By this approach the network traffic will be as minimum as possible and no additional filtering will be done on the client. This can be achived with additional settings in dataSource. Please take a deep look at kendo's documentation for dataSource and dropDownList.
Currently I am working on an asp.net mvc 4 web application, and on the index views I have wrote the sorting & paging code manually , which gives me the ability to control how the paging and sorting works. so in my case if I have 10,000 records and the paging size is 50 then only the 50 records will be retrieved from the database, so my current approach can be considered extensible.
But currently I am looking to use web grids because it can save me time and efforts. But I need to know if there are any web grids that have the following main features:-
Provide Ajax-base sort, filter and paging
All the sort, filter and paging need to be done on the database level.
The ability for the users to change the number of records displayed, such as show me 100 records, 200 records , etc
The ability to easily change the look and feel of the web grid.
So can anyone advice on available web grids that have the above 4 main features?
Thanks
I have almost the same requirements for an upcomming project and found Kendoo UI Grid during my research. If you follow the link you will find a demo including the sourcecode.
Some features according to their webpage:
Responsive and Adaptive HTML5 Grid
Page, Sort, Filter or Group Data in ASP.NET MVC Grid
MVC Grid Templates
I am using Kendo UI ASP.NET MVC Grid (Razor) in Ajax mode with a popup editor.
As an example say: Customers have orders
User of the application go to a grid that displays all customers. User is allowed to add/edit/delete customers (and their orders). But when the user clicks on edit and the popup editor comes up that is when I want to load orders. I do not want to load orders eagerly since a customer may have many orders and the user may never edit any customer at all.
Seems like this should be a simple thing to do. I have looked through all forums/questions. I have not been able to find such an example. Can someone help me with this?
Thanks a bunch!
j
Are the orders already loaded when the initial grid is loaded (are they in the model)?
If not, one way to do this is define a grid in your popup editor and set .Autobind(false) and set its Read action to a Controller/action.
When editing a record, you can fire a .refresh() on the datasource of the Orders grid.
I would need some more info on the structure of the template and the grid.
In Salesforce, I create a dashboard and drag a pie chart component on to it. I can then drop almost any report onto the pie chart to serve as its data source. Is it possible to use a class or page to drive the Pie Chart instead of a report?
My attempts so far suggest not. I have an apex:page that is returning a very simple table of data. I can add my entire apex:page with its apex:pageblocktable to my dashboard as an embedded VisualForce Page and the table shows up fine. But it won't let me use the page as the data source for my Pie Chart. My controller class isn't even listed to try using it. Is there some way I can evolve my controller or page to make it a suitable data source for a Pie Chart or any other standard Salesforce dashboard component?
I'm starting to think the only option available to me is to make a page that renders the pie chart for itself (probably using flot) and embed that in the dashboard. I'm willing to go this route, but it sure would save me some time if I could use the standard dashboard components. Any help is appreciated.
If you're wondering why I don't just use a report, it's because I haven't found any that combine leads and contacts in one. I've followed this multi-object apex dummy class pattern to create a custom UnifiedLeadContact class with a handful of common properties from my leads and contacts. My controller runs two queries, one for leads and one for contacts, uses the results to populate a list of new UnifiedLeadContacts and returns it. That is working well to feed my table that functions similar to a lead or contact view but has both leads and contacts in it.
As far as I am aware there is no way to use the output of a VF page as the source of a chart.
But you can create a chart as part of your VF page.
If you have a look at http://www.salesforce.com/us/developer/docs/pages/Content/pages_charting_overview.htm
This will give you the basics on how to feed in the data to a chart ov
i have a question for you with no code :)
I have a Struts2 Web Application composed by several tiles. The main tile called content, show the interface for the business use case currently in use.
In one case, I have a content tile composed by only some Jquery accordion and one button "Add". On the action linked to the tiles, I have a collection of oblects. When the tile is open by the user, i loop trouhg the collection to create on accordion 8the relation is 1 to 1).
The Add button add an entry into my collection. After the add, I am aspecting to see another accordion on the page.
Is there a way to refresh the tiles withpout he entire page??
Yes one way is have an action return json, the struts2-json-plugin makes this very easy.
See: https://cwiki.apache.org/confluence/display/WW/JSON%20Plugin
Handling the json on the client side then becomes a JS/JS library question.