0 Replies Latest reply on Mar 17, 2009 11:32 AM by Bernd Winterstein

    Filtering and Soerting in table header

    Bernd Winterstein Newbie

      Hi
      I'm trying to use filtering and sorting in the data table column header. To suppress the sorting when clicking inside the filter field I use the prototype Event.stop() method. But that yields to the problem that the calendar is sometimes blocked and cannot be opened until I refresh the complete page.
      Are there solutions which work?

      <rich:column filterMethod="#{invoice.filterByDocumentDate}" sortBy="#{item.bo.belegdatum}">
      <f:facet name="header">
      <a4j:outputPanel layout="none">
      <h:outputText value="#{I18nBean['1.202']}" />

      <rich:calendar id="docDate"
      onclick="Event.stop(event);"
      value="#{invoice.filterDocumentDate}"
      locale="#{invoice.locale}"
      datePattern="#{invoice.datePattern}"
      timeZone="#{invoice.timezone}"
      reRender="invoice_table_panel,invoice_table_pager"
      ajaxSingle="true"
      onchanged="this.form.submit()"
      inputStyle="width:70px;" />
      </a4j:outputPanel>
      </f:facet>
      <h:outputText value="#{item.bo.belegdatum}">
      <f:convertDateTime locale="#{invoice.locale}" timeZone="#{invoice.timezone}" type="both" />
      </h:outputText>
      </rich:column>