Announcement

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

    Calendar form close when day is selected

    Issue:
    Calendar is closing right after click on a Day before you had a chance to change Year or Time (unless you did it before click on a day).

    Expected result:
    Calendar should close by click on Apply or Cancel buttons only. Its only happen for day selection.


    Calendar form is attached:
    Attached Files
    Last edited by esaknaz; 22 Nov 2016, 11:30.

    #2
    Which version of SmartGWT? And which skin are you using?

    Also, can you show your DataSource, if you have one? The way that dialog behaves is driven by field data-type...
    Last edited by Isomorphic; 23 Nov 2016, 02:00.

    Comment


      #3
      gwt 2.5.1
      No ds. using DateTimeItem. Also i checked the same scenario from this widget, calendar for relative time/date works fine (from here http://www.smartclient.com/smartgwt/...ntrols_various).
      Last edited by esaknaz; 30 Nov 2016, 13:23.

      Comment


        #4
        There's no such version of SGWT - see the FAQ for how to find your SGWT version.

        It sounds like you're saying that this isn't reproducible in the Showcase, if so, your next step should be to download the latest patched version from smartclient.com/builds, as you may be looking at a bug that has already been fixed.

        If this doesn't solve the problem for you, we'll need a minimal, standalone test case to look further.

        Comment


          #5
          Please check this link: http://www.smartclient.com/smartgwt/...ntrols_various
          We did similar thing. If u select any day from the calendar its closing not wait for cancel or apply to click. Also i found that relative date of this link wait for apply/cancel after selecting the day. but i implement the exact same relative date./time in my project but its not working means not wait for apply/cancel to click.

          Comment


            #6
            So it looks like you are confirming that this does not happen in a Showcase example. See our previous response for your next steps.

            Comment


              #7
              Except that relative date/time, in other showcase calendar this issue also exist. I am not sure if i can update to the latest build, as its a huge project and there might be lot of other impact possible right?

              Comment


                #8
                This is our Version details:
                GWT 2.5.1
                Sgwt: 4.1p- Nov 14, 2014 (v9.1p_2014-11-14)
                D3 3.5.5
                DC 2.0.0-beta.5

                Comment


                  #9
                  Some part of the code:

                  import com.smartgwt.client.widgets.form.fields.RelativeDateItem;
                  import com.smartgwt.client.widgets.form.DynamicForm;

                  private final DynamicForm sF = new DynamicForm();
                  final private RelativeDateItem fromRelativeDateItem = new RelativeDateItem("fromRelativeDateItem", "From Date :");

                  sF.setAutoFocus(true);
                  sF.setBrowserSpellCheck(false);
                  sF.setTitleOrientation(TitleOrientation.TOP);
                  sF.setNumCols(1);
                  sF.setCellPadding(4);

                  sF.setFields(interval, fromDateTime, toDateTime);
                  sF.setFields(interval, fromDateTime, toDateTime, fromRelativeDateItem);

                  Comment


                    #10
                    You don't have to update to a new version, but you do need to get the latest patched version.

                    And again, if that doesn't work, we need a minimal, ready-to-run test case to look further, since your exact stated use case is working in the Showcase without issue.

                    Comment


                      #11
                      I tried the latest patch, but still has the same issue.
                      Last edited by esaknaz; 6 Dec 2016, 13:57.

                      Comment


                        #12
                        Ok, see the either of the last two messages from Isomorphic for next steps: we need a way to reproduce the issue, since it doesn't happen in the Showcase with code that is arranged just as you say your own is arranged.

                        Comment

                        Working...
                        X