mercredi 18 janvier 2017

How to disable a row in AdvancedDataGrid?

For example, i have a table like it:

<j:AdvancedDataGrid id="adgexample" width="100%" height="75%" variableRowHeight="true" wordWrap="true" sortableColumns="true" doubleClickEnabled="false" 
                            paddingTop="0"  paddingBottom="0" headerWordWrap="true"  textAlign="left"  verticalAlign="middle"  headerHeight="30" draggableColumns="false" resizableColumns="false"
                            visible="true" includeInLayout="true"
                            dataProvider="{model.data}" 
                            selectedItem="{model.selectedData}" 
                             >

            <j:columns>
                <j:AdvancedDataGridColumn id="adgcCheckboxColumn" width="30"  dataField="checked" headerText="" sortable="false" headerRenderer="abc.AdvancedDataGridHeaderCheckBoxRenderer"  />
                <j:AdvancedDataGridColumn id="adgcNo"  width="110" labelFunction="{model.No}" />
            </j:columns>

            <j:rendererProviders>
                <j:AdvancedDataGridRendererProvider column="{adgcCheckboxColumn}" renderer="abc.AdvancedDataGridCheckBoxRenderer" />
            </j:rendererProviders>

        </j:AdvancedDataGrid>

I have to disable the whole row if the data meet certain criteria, the way it disabled is like, checkbox is disabled, no color changed when mouse over, and cannot be clicked.

Aucun commentaire:

Enregistrer un commentaire