Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Reg: Focus is not coming to the filter for Date and Checkbox fields filter in ListGri

    Hi,

    Please find the below example:

    http://www.smartclient.com/#dateRangeFilter

    In the second grid when we click on Date filed filter focus is not coming to the filter. We are calling some custom functions in filterEditorProperties method for all ListGrid fields.

    But for Date and CheckBox Fields the method which is in the filterEditor Properties is not getting called.

    Please suggest me to call the method for date and checkbox fields like other fields.

    We are working on the below environment:
    SmartClient version : Isomorphic SmartClient/SmartGWT Framework (9.1p_2014-10-26/PowerEdition Deployment 2014-10-26)

    Browser : IE9

    Thanks in advance.

    #2
    We must be misunderstanding something..

    You appear to have posted about a problem that is occurring in your app, but does not occur in the sample you linked to, but you have provided zero information about what's different about your app except a vague statement that you are overriding some unspecified methods?

    Clearly no one could take action from this information - did you mean to include something else?

    Comment


      #3
      Hi Team,

      I mean just like other fields in the grid, When we click on the filter the focus is not coming For Date and Check box fields.

      We are using the below code for all fields in the grid to do some actions when we click on the filter.

      If we observe the below code in FilterEditorProperties, on clcik I am calling setFilterFocus() method. This method is called for all type of fields except date and checkbox fields.

      So, Please suggest me how to call the same method when we click the filter for Date and Checkbox fields.

      Code:
      {name:"II0_LINKED_DOC_KEY", title:formatText('<fmt:message key="Field.DOC_SOURCE"/>'),
      			        	filterEditorProperties:{click:"setFilterFocus('master',this)"},width:"150",
      			        	canEdit:false,
      						optionDataSource:"TRQ0_REQUISITION_MAIN", 
      						valueField:"RQ0_ID", 
      						displayField:"RQ0_DOC_NUMBER"
      					},
      Please refer the example in the above post.

      We are working on the below environment:
      SmartClient version : Isomorphic SmartClient/SmartGWT Framework (10.0p_2014-11-19/PowerEdition Deployment 2014-11-19)

      Browser : IE9

      Comment


        #4
        setFilterFocus is not a method provided by SmartClient, so we have no idea what it does or what might be wrong with it.

        We also don't know what its intended purpose is, since clicking already moves focus appropriately without the need to add a method like this.

        Comment


          #5
          Hi,

          setFilteFocus is my method. We are calling this method in onclick of filter fields in the grid.

          But This method is not getting called when we click on dateItem and CheckBoxItem.

          I have checked in the below example and even after adding code mentioned in the below reply in the date field Click function is not called.

          http://www.smartclient.com/#dateRangeFilter

          Please let me know what to do to call the function in onclick of filter for date and checkbox fields as well.

          Thanks in advance.

          Comment


            #6
            OK, in the future, to report this kind of problem you can use a single sentence like "the click event handler is never called if I place it in listGridField.filterEditorProperties on a "date" field". Or of course provide a test case. This will save a lot of time.

            For at least the "date" field, the problem is that the click event does not fire at all, because a modal dialog is shown on mouseDown. This is expected behavior.

            If you can let us know what you're actually trying to achieve, we can suggest an approach.

            Comment

            Working...
            X