-
1. Re: rich:extendedDataTable disable column resizable and drag in richfaces 4.2?
pvito Mar 2, 2012 2:07 AM (in response to v2adam)Hi, Adam
Try use attribute frozenColumns with value equal amount column.
<rich:extendedDataTable value="#{myBeen.list}" var="v" iterationStatusVar="isv" id="table" frozenColumns="3">
<rich:column>
<f:facet name="header">1</f:facet>
#{isv.index}
</rich:column>
<rich:column>
<f:facet name="header">2</f:facet>
#{v.value1}
</rich:column>
<rich:column>
<f:facet name="header">3</f:facet>
#{v.value2}
</rich:column>
</rich:extendedDataTable>
Regards, Vitaliy
-
2. Re: rich:extendedDataTable disable column resizable and drag in richfaces 4.2?
v2adam Mar 2, 2012 6:54 AM (in response to pvito)Sorry Vitaliy, but not help, tried on several tables
Vitaliy Pavlov wrote:
Hi, Adam
Try use attribute frozenColumns with value equal amount column.
<rich:extendedDataTable value="#{myBeen.list}" var="v" iterationStatusVar="isv" id="table" frozenColumns="3">
<rich:column>
<f:facet name="header">1</f:facet>
#{isv.index}
</rich:column>
<rich:column>
<f:facet name="header">2</f:facet>
#{v.value1}
</rich:column>
<rich:column>
<f:facet name="header">3</f:facet>
#{v.value2}
</rich:column>
</rich:extendedDataTable>
Regards, Vitaliy
-
3. Re: rich:extendedDataTable disable column resizable and drag in richfaces 4.2?
v2adam Mar 2, 2012 6:53 AM (in response to v2adam)1 of 1 people found this helpfulI found how disabled column resizable, difine this css class:
.rf-edt-rsz {
display: none;
}
Remains open question about disabled drag column?
-
4. Re: rich:extendedDataTable disable column resizable and drag in richfaces 4.2?
v2adam Mar 2, 2012 10:20 AM (in response to v2adam)1 of 1 people found this helpfulI found how disabled drag column, probably this not good solution, but ..... you must off mousedown event on table header:
<rich:jQuery selector=".rf-edt-hdr-c" query="off('mousedown')" timing="immediate"/>
and it works, but when you rerender extended table in stop work, so you must rerender not all table, just table body, like this idTable@body