0 Replies Latest reply on Feb 23, 2012 2:34 PM by Don Samson

    help with datatable sorting: rich:datatable external sorting and self sorting. Either one only works..

    Don Samson Newbie

      I have a situation where i want to set the default softing as well selfSorting enabled on the table.

       

       

      Default Sorting working fine with sortPriority and sortOrder. (Self sorting not working)

       

       

      Selft sorting working fine with seltSorted="true"  ....... when i include sortOrder the selft sorting icons are showing up. However nothing happens when i click on the sort Icon. No errors as well

       

       

      <rich:dataTable width="800px" id="dataList#{id}"

                                    rowClasses="row1,row2"

                                    rows="#{blotterHandler.blotterModel.blotterConfig.origConfig.rowsperpage}"

                                    value="#{blotterHandler.blotterModel.blotterSummaryData}"

                                    var="record"

        rowKeyVar="rowIndex"

        sortMode="multi"

                                    selectedClass="TableSelectedColor"

        headerClass="datatableHeader"

        sortPriority="#{blotterHandler.blotterModel.sortPriority}"

                                    onRowMouseDown="revertToOldColor();changeRowSelectionColor(this,'#CCCCCC');return true;"                                                            

                                    selectionMode="single"

                                    selfSorted="true"

                                     >

       

       

      <rich:column sortable="true"







      sortBy="#{record.data[cell.name]}"









      sortOrder="#{(cell.sortOrder=='null'?'UNSORTED':cell.sortOrder)}"









      filterBy="#{record.data[cell.name]}" filterEvent="onkeyup"









      rendered="#{cell.hidden == false}">