We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Schedular Implimentation

Thread ID:

Created:

Updated:

Platform:

Replies:

115267 Jan 8,2014 11:38 AM UTC Jan 21,2014 03:40 AM UTC WinRT 8
loading
Tags: General
Muhammad Mobeen
Asked On January 8, 2014 11:38 AM UTC

Hello,

I am using syncfusion Schedular control in my project. I am facing some issues in this.
below is my code

<Schedule:SfSchedule x:Name="Schedule1" ScheduleType="Week" Resource="{Binding ElementName=Resource_Combo,Path=SelectedItem, Mode=TwoWay}" ScheduleResourceTypeCollection="{Binding ResourceCollection}" DayHeaderOrder="OrderByDate" Grid.Column="2" HorizontalAlignment="Left" Grid.Row="1"  VerticalAlignment="Top" Height="454" Grid.RowSpan="8" Width="1300" Margin="0,86,0,0"/>
               <ComboBox x:Name="Resource_Combo" Height="45" Width="265" Background="Black" SelectedIndex="0" Margin="15" Foreground="White" IsEnabled="False" HorizontalAlignment="Left">
                            <x:String>AppointmentSchedular</x:String>
                        </ComboBox>

in this code i got an exception
"object reference not set to null"

Actually I got this when I use below code in schedular tag.
Resource="{Binding ElementName=Resource_Combo,Path=SelectedItem, Mode=TwoWay}"

please guide me how can i sortout this

thanks

Joy Oyiess Rex  K [Syncfusion]
Replied On January 9, 2014 11:35 AM UTC

Hi Muhammad,

 

Thanks for your interest in Syncfusion products,

 

We are not able to reproduce the mentioned issue, we suspect that the issue occurred due to the “ResourceCollection“ which you have used in your sample may be either null or its property changed may not listened properly. We have prepared a simple sample for the same, please find the sample in the attachment.

 

 

If the provided solution doesn’t meet you requirement, please revert us back with more information by modify the provided sample to reproduce the issue, so that we could analyse on it and provide you possible solution.

 

 

Please let us know, if you need any further assistance.

 

Regards,

Joy Oyiess Rex K



SfScheduleResourceBind_WinRT_28da7a12.zip

Muhammad Mobeen
Replied On January 16, 2014 10:36 AM UTC

Hello Joy,

thanks for your guidence. Provided code works fine separatly but I am still facing issues when I merged this in my project.

Exception occured:

"System.NullReferenceException: Object reference not set to an instance of an object.
   at Syncfusion.UI.Xaml.Schedule.SfSchedule.SetNavigationTap()
   at Syncfusion.UI.Xaml.Schedule.SfSchedule.OnResourceChanged(DependencyObject dpo, DependencyPropertyChangedEventArgs arg)"


thanks

Joy Oyiess Rex  K [Syncfusion]
Replied On January 17, 2014 04:06 AM UTC

Hi Muhammad,

 

Thanks for your update.

 

Could you please share us a simple sample to reproduce the issue, along with below information,

Assembly version (in which you are using our SfSchedule control).

Platform

.Net Framework Version

 

so that we could analyse on it and provide you possible solution.

 

Please let us know, if you have any concerns.

 

Regards,

Joy Oyiess Rex K


Muhammad Mobeen
Replied On January 17, 2014 01:13 PM UTC

Hello

Is there any way to bind combobox at runtime from code behind with Schedule.
I don't want to bind this in xaml (Resource="{Binding ElementName=Resource_Combo,Path=SelectedItem, Mode=TwoWay}")


thanks

Joy Oyiess Rex  K [Syncfusion]
Replied On January 20, 2014 04:01 AM UTC

Hi Muhammad,

 

Yes, we are able to bind the ‘Resource’ property of SfSchedule with the SelectedItem property of ComboBox, for that please refer the below code snippet.

 

Code Snippet:

          

[c#]

            Binding resourceBind = new Binding();

            resourceBind.Source = Resource_Combo;

            resourceBind.Path = new PropertyPath("SelectedItem");

            resourceBind.Mode = BindingMode.TwoWay;

            BindingOperations.SetBinding(this.Schedule1, SfSchedule.ResourceProperty, resourceBind);

 

 

We have also modified the sample for the same, please find the sample in the attachment.

 

Please let us know, if you need any further assistance.

 

Regards,

Joy Oyiess Rex K


Joy Oyiess Rex  K [Syncfusion]
Replied On January 20, 2014 04:03 AM UTC

Hi Muhammad,

 

Please find the modified sample in the attachment and let us know, if you need any further assistance.

 

Regards,

Joy Oyiess Rex K



SfScheduleResourceCBind_WinRT_d5bdb3c7.zip

Muhammad Mobeen
Replied On January 20, 2014 11:11 AM UTC

Hello,

thanks to you. this sample resolved my issue.


thanks

Joy Oyiess Rex  K [Syncfusion]
Replied On January 21, 2014 03:40 AM UTC

Hi Muhammad,
 
We glad that your issue resolved.

Please let us know, if you need any further assistance.
 
Regards,
Joy Oyiess Rex K

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;