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

Help related to appointment subject

3 Answers 38 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
hardik
Top achievements
Rank 1
hardik asked on 26 Apr 2011, 07:37 AM
Hi telerik,

I am using appointment template selector class. Below one of the template I have written, I not want to show the delete button for this appointment. How can I prevent it, Its need to use styleselector class? If yes then what about this class? I can't use one of them?

One more thing , I want to know what is the current time in schedulerView. How can i know that? In visible range.start i got the 12:00 am time. I want to know what is the current time shown in schedulerView.

One more thing, How can I change the start day of week in datepicker?? Is it possible to set it dynamically.. that is for one user it shows monday as start day ,for another user it shows sunday as start.

<DataTemplate x:Key="FinishedAppointmentTemplate">
            <Border x:Name="XamlBorder" Margin="-2">
                <Grid>
                    <ToolTipService.ToolTip>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Path=Start,StringFormat=t}" />
                            <TextBlock Text="-" />
                            <TextBlock Text="{Binding Path=End,StringFormat=t}" />
                            <TextBlock Text=" " />
                            <TextBlock Text="{Binding Subject}" />
                        </StackPanel>
                    </ToolTipService.ToolTip>

                  <TextBlock x:Name="XamlSubjectTextBlock" Margin="7 0 18 0" Width="{Binding ElementName=XamlBorder, Path=Width}"
                     VerticalAlignment="Top"  HorizontalAlignment="Left"
                     Text="{Binding Subject,Converter={StaticResource XamlStringFormatConverter}}"
                     Foreground="Gray" TextWrapping="Wrap" />

                </Grid>
            </Border>
        </DataTemplate>



Thanks
Hardik
 

3 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 28 Apr 2011, 09:15 AM
Hi Hardik,

I will answer your questions point-by-point:
1. You will need to change the whole style of the AppointmentItem. You can find some more information about it in this blog post. Yes, you can use the style selector class as usual.
2. Could you please give us some more details about what exactly you need to get? Initially, the VisibleRange and the CurrentDate properties will give you all the information about the date in the view.
3. To customize the DatePicker I can suggest you to change the Culture of the ScheduleView. In that way you will be able customize the DatePickers.

Hope this information helps.

Greetings,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
hardik
Top achievements
Rank 1
answered on 28 Apr 2011, 03:34 PM
Hi telreik,

Thanks for answer.

For second reply I want to say that I amn facing problem when I create,edit or delete the appointment. At that time I clear whole appointment collection and again give appointments to observableAppointemntCollection. Because of that my scroll bar reached to 12:00 am. So I think for one logic I am using ScrollTimeRuler method and pass time to this method which is currently shown. see image - 1.

Till I not able solve the clear observableAppointmentCollection. This can be temporary solution. Its urgent requirement for us, SO i wan this solution.


Thanks
HArdik
0
Konstantina
Telerik team
answered on 29 Apr 2011, 09:54 AM
Hello Hardik,

Regrettably, this cannot be achieved with the current implementation of the RadScheduleView. However, after creating an appointment the scroll position of the time ruler should not be changed, so could you please send us a sample running project in which this issue can be observed? In that way we will be able to track down the source of the project and provide you with solution.

Looking forward to your reply.

All the best,
Konstantina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
ScheduleView
Asked by
hardik
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
hardik
Top achievements
Rank 1
Share this question
or