1

I can successfully use the jquery tablesorter in a dataTable with columns explicity enumerated:

<apex:dataTable value="{!displayedAttendances}" var="att" styleClass="tablesorter" id="attendees">
                <apex:column headerValue="First Name" >
                    <apex:inputField value="{!att.attendance.first_name__c}" />
                </apex:column>
                <apex:column headerValue="Last Name" >
                    <apex:inputField value="{!att.attendance.last_name__c}" />
                </apex:column>
                <apex:column headerValue="Status" >
                    <apex:inputField value="{!att.attendance.status__c}" />
                </apex:column>

However, if I use a field set, the columns collapse right on top of each other after a field update in the table (e.g., update the field Status and the columns collapse):

<apex:dataTable value="{!displayedAttendances}" var="att" styleClass="tablesorter" id="attendees">
    <apex:repeat value="{!$ObjectType.SC_Attendance__c.FieldSets[fieldSet]}" var="field">
          <apex:column headerValue="{!field.label}">
                 <apex:inputField value="{!att.attendance[field]}" >
                       <apex:actionSupport event="onchange" action="{!att.changeRecord}" rerender="attend" />
                  </apex:inputField>
          </apex:column>
       </apex:repeat>
<apex:dataTable />

Can someone help me get this to work with a fieldset?

Thanks.

5
  • Please include some code, it is really hard to help in the abstract.
    – Adrian Larson
    Jun 22, 2015 at 16:53
  • Corrected the code display.
    – JimH
    Jun 22, 2015 at 16:55
  • Your markup does not include the element that is actually being rerendered. Nor does it contain the javascript you are using to implement tablesorter. The issue may revolve around one/both of those.
    – Adrian Larson
    Jun 22, 2015 at 17:03
  • Resolved: I had to rerender the block with the tablesorter javascript after an update.
    – JimH
    Jun 22, 2015 at 17:04
  • Ha figured as much.
    – Adrian Larson
    Jun 22, 2015 at 17:20

0

You must log in to answer this question.

Browse other questions tagged .