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

SelectedDate Little Dot In Middle

6 Answers 48 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ericky
Top achievements
Rank 1
Ericky asked on 28 Jun 2017, 07:02 PM

Hello,

 

Is there any way to remove the little black dot in the middle of selected date?

6 Answers, 1 is accepted

Sort by
0
Nick Iliev
Telerik team
answered on 29 Jun 2017, 08:40 AM
Hi ,

By default, the selectionShape is set to square. Our developers are considering changing the default implementation as discussed here.
Meanwhile, you can change the selection shape to "None" in you XML or via code-behind by applying the property with its value to the respective ViewStyle (e.g. CalendarMonthViewStyle or Calendar|WeekViewStyle)

example setting selectionShape from XML
<rc:CalendarMonthViewStyle selectionShape="None" >

or setting it via code-behind file o( as done here for Round option)
monthViewStyle.selectionShape = "None";


Regards,
Nikolay Iliev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
0
Ericky
Top achievements
Rank 1
answered on 29 Jun 2017, 11:49 AM

This has not worked for me, is it a feature supported by the angular version of the plugin?

 

<StackLayout id="calendar">
  <RadCalendar id="calendar-widget" viewMode="Month" selectionMode="Single" eventsViewMode="Inline" selectionShape="None"
    [eventSource]="calendarEvents" [yearViewStyle]="yearViewStyle" [monthViewStyle]="monthViewStyle"></RadCalendar>
</StackLayout>
0
Ericky
Top achievements
Rank 1
answered on 29 Jun 2017, 11:50 AM

I also tried setting

monthViewStyle.selectionShape = "None";

 

But, "selectionShape" is not defined in CalendarMonthViewStyle.

0
Ericky
Top achievements
Rank 1
answered on 29 Jun 2017, 11:51 AM
I also tried
monthViewStyle.selectionShape = "None";

 

"selectionShape" doesn't appear to be defined in "CalendarMonthViewStyle"

0
Ericky
Top achievements
Rank 1
answered on 29 Jun 2017, 11:53 AM

Sorry for the double post. Actually, your solution has worked for me.

(<any>monthViewStyle).selectionShape = "None";
0
Nick Iliev
Telerik team
answered on 29 Jun 2017, 12:14 PM
Hello ,

Indeed your project might hit a TypeScript related error when setting this via code-behind. This issue is fixed and is included in the next release which is expected within days so after installing the next release the error will no longer appear when setting selectionShape from code-behind files. 

Regards,
Nikolay Iliev
Progress Telerik
Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Tags
Calendar
Asked by
Ericky
Top achievements
Rank 1
Answers by
Nick Iliev
Telerik team
Ericky
Top achievements
Rank 1
Share this question
or