Quantcast

ColumnHead with checkbox - not working for version 0.9.3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ColumnHead with checkbox - not working for version 0.9.3

abrahamarellanotavara
Hi,

I need your support in order to add a header in the column to un/select all checkbox in the column. However I'm not able to make it work with the following code.
- Version is: 0.9.3

<datatables:table id="relevanceTable" url="${datasource}" row="chipRelevance" cssClass="dataTable" displayLength="20" sort="true" filterPlaceholder="head_before" dom="lrtip" theme="jqueryui" themeOption="smoothness" cssStripes="odd,even" lengthMenu="20,40,60,100">
   <datatables:column title="ChipName" property="chipName" cssClass="dataTable" cssStyle="text-align:center;" cssCellStyle="text-align:center;" filterable="true" renderFunction="columnsRender"/>
   <datatables:column title="Wafer Layer" property="waferLayer" cssStyle="text-align:center;" cssCellStyle="text-align:center;" filterable="true" renderFunction="columnsRender"/>
   <datatables:column title="Wafer Layer Revision" property="waferLayerRevision" cssStyle="text-align:center;" cssCellStyle="text-align:center;" filterable="true" renderFunction="columnsRender" />
   <datatables:column uid="relevantColumn" title="Relevant" cssStyle="text-align:center;" cssCellStyle="text-align:center;" filterable="false" searchable="false" sortType="natural" renderFunction="relevantColumnRender" >
                 <datatables:columnHead uid="relevantColumn" > 
                        <input type="checkbox" onclick="$('#relevanceTable').find(':checkbox').attr('checked', this.checked);" />
                 </datatables:columnHead>
                 <input type="checkbox" value="${chipRelevance.relevant}" />
   </datatables:column>

   <datatables:callback type="createdrow" function="callbackCreatedRow" />
   <datatables:callback type="header" function="headerCallback" />
</datatables:table> 

Any hint would be great!

Thanks, Abraham
Loading...