Announcement

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

    Calendar start/end hour

    How to set the start hour and end hour of the day in the calendar?
    I tried with
    Code:
    calendar.setWorkdayStart("8:00am");
    		calendar.setWorkdayEnd("8:00pm");
    		calendar.setShowWorkday(true);
    but this doesn't work.
    And what happens if the user tries to add an event between 0:00 and the startDate ?
    Using smartgwt 5.0p eval 27.01

    #2
    What do you mean, this doesn't work? Those settings are designed to size the rows in the view so that the hours you specify as being the working day fill the viewport, and are highlighted in a different color. Are you seeing something different happen?

    If you're after a way to have the calendar literally start and end at some some arbitrary time other than midnight, there is no current feature that would allow this.

    If you need this mechanism, consider Feature Sponsorship (http://www.smartclient.com/services/index.jsp#features)

    We assume these details also deal with your final question?

    Comment


      #3
      The hours specified are not filling the viewport (screenshot.png)

      P.d. could you change the resolution limits in the forum? I have to upload a very small picture
      Attached Files
      Last edited by edulid; 2 Feb 2015, 00:54.

      Comment


        #4
        setScrollToWorkday(true) should do it - note that there is a minimum height for listGrid cells, so if your calendar is very short you may not see this work as expected.

        Comment


          #5
          Also, note that, whilst you can't currently prevent the calendar from rendering rows for times outside of your workday, you *can* disable all of those other cells so that events can't be created there - 5.0 has setDisableDateCustomizer(), which you can use to disable any datetime that falls outside of your desired workday.

          Comment


            #6
            Also, we're not sure why you'd have trouble uploading a really small image (it seems to be allowed), but if necessary, just make it bigger.

            Comment


              #7
              Originally posted by Isomorphic View Post
              Also, we're not sure why you'd have trouble uploading a really small image (it seems to be allowed), but if necessary, just make it bigger.
              It's vice versa. I'm sure edulid meant that you have to resize the picture/make it smaller in order to upload. Same happens to me quite often. The size and file-size restrictions for images are often hard to meet without either resizing very much and/or applying a high jpg compression.

              Comment


                #8
                Originally posted by Blama View Post
                It's vice versa. I'm sure edulid meant that you have to resize the picture/make it smaller in order to upload. Same happens to me quite often. The size and file-size restrictions for images are often hard to meet without either resizing very much and/or applying a high jpg compression.
                Yes, I often have to cut my images a lot because the image restrictions are very strict.
                I'm talking about the image width and height, not about the image size.

                Comment

                Working...
                X