This is a migrated thread and some comments may be shown as answers.

Issue. Impossible to select correct day in RadCalendar

3 Answers 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stanislav
Top achievements
Rank 1
Stanislav asked on 15 Jul 2012, 07:04 AM
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

3 Answers, 1 is accepted

Sort by
0
Anthony
Telerik team
answered on 16 Jul 2012, 04:01 PM
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
0
Stanislav
Top achievements
Rank 1
answered on 18 Jul 2012, 07:01 PM
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
0
Anthony
Telerik team
answered on 19 Jul 2012, 03:56 PM
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
Tags
General Discussions
Asked by
Stanislav
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Stanislav
Top achievements
Rank 1
Share this question
or