Create a huge columns for nattable, still working paint function. [message #1455375] |
Wed, 29 October 2014 05:54  |
Eclipse User |
|
|
|
Hi dirk.
I create a create a nattable with a huge columns.when i execute the nattable, it still run in painterLayer in NatLayerPainter.java again and again. like a deadloop, when i set a small column count, it is right. do you know where control this function? can you give me some advises for that.
reproduce:
run attachment file _5016_AutomaticHugeDataSpanningExample
add a log in painterLayer function in NatLayerPainter.java,
we can find , it will run this function again and again. like a dead loop.
can you help me check it? thank you very much.
|
|
|
|
|
|
Re: Create a huge columns for nattable, still working paint function. [message #1457317 is a reply to message #1457239] |
Fri, 31 October 2014 03:44  |
Eclipse User |
|
|
|
might be related to how spanning works in NatTable since every cell is rendered once, and a spanned cell in your case consists of several hundred cells.
Maybe you are trying to implement a pivot table, I don't understand what you are trying to do. But personally I think you are running into the wrong direction. Maybe instead of trying to rape the existing code you should try to implement a custom layer or a custom functionality to do what you are trying to achieve, but surely rendering 1000 columns in 500 pixels will never work in a clean way since there is so much that can go wrong or cause strange behavior in the current architecture.
|
|
|
Powered by
FUDForum. Page generated in 0.03484 seconds