Issue. Impossible to select correct day in RadCalendar

4 posts, 0 answers
  1. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 15 Jul 2012 Link to this post

    Hello Telerik,

    I would like to inform you about the following issue that was found during my work with Free Testing Framework.

    There is no possibility to select correct day from the RadCalendar if the same day exists for current and previous month.

    For example, we would like to select 30th July. In RadCalendar we can see, that there is also 30th June that is marked with gray text. The .SelectDay(...) method always selects the first day - 30th June and it doesn't take into account automatically that current month is July and the second one should be selected. I think it should be intuitive action without specifying occurrence/index of the day in the calendar.

    Kind Regards,
    Stanislav Hordiyenko
  2. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 16 Jul 2012 Link to this post

    Hello Stanislav,

    This is by design. The RadCalendar does not distinguish whether the day has passed and simply loaded all dates in the current view. The SelectDay method allows you to pass an occurrence integer as one of its arguments to avoid this issue. It is zero-based, so if you would like the second occurrence of "30" use 1:

    rc.SelectDay("30", 1);
     

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Stanislav
    Stanislav avatar
    1 posts
    Member since:
    May 2012

    Posted 18 Jul 2012 Link to this post

    Hello Anthony,

    Well, I was thinking about this a while. In my opinion, it would be much better to change the behavior of this method and here is the reason. We are testing application via its controls, not functionality of the controls. That is why if we choose July and want to choose 29th or 30th, I am expecting to choose one of these dates from July month, not June. Sometimes I need to select random date, and base on current functionality I have to calculate exact date and its occurrence to prevent this issue.

    Maybe, it would be much better to replace occurrence with another bool arguments like isCurrentMonth, so that there is no necessity to pass 0 or 1 as an argument to specify the index of the day.

    I would be really grateful if you consider my input. Thank you. 

    Kind Regards,
    Stanislav Hordiyenko
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 19 Jul 2012 Link to this post

    Hello Stanislav,

    I filed a feature request on your behalf and you can track the PITS Issue here: Public URL.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top