I have the problem, that my program is too slow in displaying a flexTable. I've searched how to display the table faster and I think with a cell table it might be faster. The problem now is, there are different objects displayed in the table and I don't know how to do that with a celltable. I have a list<DTOEmployeeWithTask> and each dTOEmployeeWithTask has a list<TaskRelation>. First there's displayed a row with the employee and then each taskRelation for the employee, like this:
Now to my questions: what is the fastest way to display such a table? If it's with a cellTable, how would I do that in a CellTable?
If you need some code just say what you need.
FlexTable is a no go anyway as it's known to be slow. What would be a good solution is a Custom DataGrid, which can display rows with sub rows as in your screenshot. The GWT showcase page has a nice example including source code which should help you further: http://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid
Related
We have a request from our designers to build tables something like this, with rows that expand to show essentially another sub-table underneath. In KendoUI documentation, this is called "Hierarchy."
We use SlickGrid v2.3 with a few additional plugins. We currently have tables with a similar row expand/collapse like this: https://mleibman.github.io/SlickGrid/examples/example5-collapsing.html . That does not allow for a completely different set of columns in the sub-table.
The question is, can this be done in SlickGrid or not?
It might be hard to do with current SlickGrid, there's no code that handles the hierarchical part itself so that would be lot of work to implement in SlickGrid. However it is implemented in Slickgrid-Universal, which is a wrapper on top of SlickGrid. You can see Example 5 and Example 6 which shows 2 types of Tree Data grids (hierarchical or parentId refs). We use it in production for a project that we have. Also note that this is not a grid within a grid, it's rather an expand/collapse the same as what you found in example5-collapsing.html, the only differences with SlickGrid is that Slickgrid-Universal has the code to deal with hierarchical data (filtering/sorting) while SlickGrid itself doesn't and also another nice to know thing is that expand/collapse is actually using data filtering behind the scene and you can see that in the total items displayed when you have the footer enabled.
Please note that I'm the author of Slickgrid-Universal and also a major contributor to SlickGrid as well
At the moment, it can't be done. In order to achieve its speed, Slickgrid enforces a fixed row height and a single scrolling canvas. It's just a different approach than used by HTML display grids.
You could put together a workaround using mutiple slickgrids or an embedded slickgrid in a group row, I suppose, but it would be messy.
One thing I have done is develop a SlickCombo, which is essentially a grid presented as a multi-column dropdown. It's a full grid and can offer editing.
That's probably as close as you'd get.
A comment: the MLeibman repo is long dead - you should be using: https://github.com/6pac/SlickGrid
i am having an issue with the Telerik Kendo UI grid. When displaying data on it, some blank spaces show up between the columns.
I will have to be very cheap on displaying the bug here, but i think you'll kind of undertand. Example of blank columns the info in the grid its kind of confidential so i cannot show it to you guys, sorry. So instead i will share this image for a little context and explanation.
So, i want to drop those extrange blank columns since they don't actually exists in my model or database. Even without any sort of complete explanation of my problem i have faith that you guys can at least point me into the right direction here, or give me any clue at least, and that's actually all i want and i will be very grateful. Thanks for helping me and have a nice day.
Christian.
Just a quick question, everytime I hit "edit" "add row" it adds the row but not at the bottom of the table, it usually places it like 5-10 rows from the bottom and while it's not a huge deal it's just time consuming to move it and confusing at times because they're random rows all over now. Is their a setting or a certain way to add rows so they just get added to the bottom of the fusion table instead of randomly throughout?
The rows will not be displayed randomly.
They will be displayed based on the order-settings.
When you didn't define a sort-column they will be ordered by their internal rowID, and that's the issue: the rowID's are not consecutive.
So the answer is: No, you can't.
The only workaround would be to add another column with a incrementing Number(and sort by this column), but I wouldn't suggest it.
Currently I'm working over a birt report with a table to display data. Now, i want to convert the same thing to grid, which provides better viewing and analysing capability. So, is there any easy way (in editing the XML or something) to convert the whole table to grid? Meanwhile, the complete data remains the same.
NB: I havn't yet used a bit with grid, never ever! Also m bit newbie to birt. So pardon me if I'm spiting out anything rubbish.
A table is a different element from a grid. There is not a button to push that will convert one to the other. You would need to add a grid element to your report and set it up like you want it to look.
I seriously doubt you want to do this though. a grid will only display the first record returned, unlike a table that will display all the records returned.
A related, but more reasonable question is how to convert a single-column table to a list or vice-versa.
I often need this table-to-list conversion for optimizing master-detail reports for (our customized version of) the WordEmitter, because this prevents superfluous nested tables in the Word output.
Fortunately, for tables without grouping this is relatively easy by editing the XML:
Change the corresponding opening and closing tag to a tag, remove the elements and the elements (but keep theirs contents).
Apart from that, James' is right: There is no reason to convert a table to a grid item, mainly because a table will display all records (while a grid displays only the first) while the table has all features of a grid (and more, like grouping).
I am new to iText and am trying to figure something out and ANY help would be greatly appreciated.
I would like to generate a table that has n columns that should they not fit on one page, then have the remaining columns continue on the second page and so on.
Is there any way to do this with iText?
Thanks,
Kirk
When you create a table, you ALWAYS know the width of the table, be it because you've defined the absolute width(s of the columns) yourself, or because you know the available width on the page in combination with the width percentage of the table.
Now it's up to you to distribute the columns over different pages. You can do this with the writeSelectedRows() method as shown in this example from my book.
Of course: it's more difficult than that simple example, as you'll also want to make sure the rows fit the height of the page, but that's another question.