Announcement

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

    Date Chooser onFocus textfiled

    Hi

    I need to Display Date Chooser when a user move the cursor to the textField...

    Sample Code ...

    type:date,
    useTextField: true ...

    How can i display dateChooser onFcous Event ...

    Thanks

    David

    #2
    Any Help on this ....

    this issue is show stopper issue ...

    we need to display date chooser onfocus

    Comment


      #3
      Well, the DateChooser class has the FocusChanged event among a bunch of other events. What is your problem exactly? It is a little unclear.

      Comment


        #4
        Add a focus handler and call item.showPicker()

        Comment


          #5
          Thanks for prompt response ...

          how can i add the focus handler to the formitem ...

          we are using the js files not java files ...

          i mean we are using instanceAPI..

          Comment


            #6
            You haven't provided nearly enough information - please provide the details requested on the forum, product and browser versions etc, and show the code you're using at the moment.

            Comment


              #7
              do i have to use the focusInItem ()

              http://www.smartclient.com/docs/8.2/a/b/c/go.html#method..FormItem.focusInItem

              i am using this API

              Comment


                #8
                Read the doc for formItem.focus() - override that and have it call showPicker()

                Comment


                  #9
                  ok .... after doing change as per your input ...

                  it is working as excepted ...

                  inputDefaultConfig: {
                  type: "date",
                  useTextField: true,
                  focus: function () {
                  this.showPicker();
                  },
                  },

                  it working as excepted in FireFox and chrome ...

                  not working in IE ....

                  after selecting a date from date chooser ...
                  date chooser is not closing ....

                  any ideas ...??

                  Comment

                  Working...
                  X