Hi everyone. I work with form who contains p:dataTable and stickyHeader="true". Above data table I have p:panel with option toggleable="true".
When I hide panel rest of form moves up , dataTable is moves up but stickHeader doesn't. Please healp. Best regards.
StickyHeader in p:dataTable problem2
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
I think it is not a Ultima Theme and Layout issue. But, you can try the following js code;
Code: Select all
//JS
function updateSticky() {
var $this = PF('myStickyTable');
if($this) {
$this.stickyContainer.css('display', 'none');
setTimeout(function() {
$(window).trigger('scroll.' + $this.id);
},400);
}
}
//XHTML
<p:panel toggleable="true" collapsed="true" ..>
<p:ajax event="toggle" oncomplete="updateSticky()" />
...
</p:panel>
<p:dataTable widgetVar="myStickyTable"
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Glad to hear, thanks for the update!
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
- No. This issue is not a Ultima Layout or Theme issue. You can try it without Ultima Layout and Theme. Please create a Github issue.But shouldn't this be solved in Ultima sources ? , because it looks like a bug.
Best Regards,
Github Profile: https://github.com/mertsincan
I made a little mess, i wanted to ask my question i similar topic 'StickyHeader in p:dataTable problem' (viewtopic.php?f=42&t=49290&hilit=Sticky ... le+problem), but by mistake i asked in this topic.
I saw aragorn that in this other topic you also asked and helped (for my your solution also work), could tell me if there is also problem with PrimeFaces not in Ultima Layout ?
I saw aragorn that in this other topic you also asked and helped (for my your solution also work), could tell me if there is also problem with PrimeFaces not in Ultima Layout ?
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Yes, this issue is related to PrimeFaces core. Maybe, you can create a Github issue for it.
Best Regards,
Best Regards,
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 18 guests