Facing Issues in Datetimepicker

Hi,
  I am using 6 colums in datetimePicker in Xamarin Forms how to decrease column width in Datetimepicker  becoz i facing 6 column is not showing full view  pls respond as soon as possible


Regards
M.Rajagopal

29 Replies

JA Jayaraman Ayyanar Syncfusion Team July 24, 2018 12:59 PM UTC

Hi Rajagopal, 
 
We have analyzed  your query to change the Column width. You can achieve your requirement using the Width property in the GridColumn. Please refer the below link. 
 
XAML logic 
<sfgrid:SfDataGrid x:Name="dataGrid" AutoGenerateColumns="false"  
   <sfgrid:SfDataGrid.Columns x:TypeArguments="sfgrid:Columns"> 
      <sfgrid:GridTextColumn MappingName="OrderID" Width="100"/> 
    </sfgrid:SfDataGrid.Columns > 
</sfgrid:SfDataGrid> 
 
 
 
Incase, if it is not your requirement which platform are you testing you application. Which format are you using in the GridDateTimeColumn? Otherwise do you want to change the edit mode control? Please provide the details that will help us to provide the solution. 
 
Regards, 
Jayaraman. 



RA rajagopal July 25, 2018 09:49 AM UTC

Hi,
 I am using Sufusion datetime picker not Syfusion grid in datetim picker Dialog popup is it is not propoer 



PA Paul Anderson S Syncfusion Team July 25, 2018 12:03 PM UTC

Hi Rajagopal, 
 
Sorry for the inconvenience. 
 
We can customize the column width by using the OnColumnLoaded event. In the OnColumnLoaded event we can set the width for each and every column in the picker. We have prepared a custom date time picker sample with 6 columns, in which we have customized each column width. Please find the sample from the below link: 
 
 
 
Regards, 
Paul Anderson 



RA rajagopal July 26, 2018 07:13 AM UTC

Hi,
  Thanks

Regard
M.Rajagopal


PA Paul Anderson S Syncfusion Team July 26, 2018 07:26 AM UTC

Hi Rajagopal, 
  
Thanks for the udpate. We are happy to assist you. 
  
Regards, 
Paul Anderson 



RA rajagopal July 30, 2018 11:54 AM UTC

HI
  
 I again Facing Some isues with Datetime picker in Xamarin Forms i using 5 index Column {month ,date,year,hours,Mins, Merideim}
Will Change in 4 Index that means Min i Geting Expection like below i have been Sufled hours to 4 index and Minutes to 3rd index then minutes is Working and Hours is showing same error while Changeing Fourth index i am facing these issues( using Device andriod  all Devices)
pls respond as soon as possible in ios it is working Fine

"{System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00018] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/throwhelper.cs:93 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/throwhelper.cs:56 
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/generic/list.cs:181 
  at System.Collections.ObjectModel.Collection`1[T].get_Item (System.Int32 index) [0x00000] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:47 
  at Com.Syncfusion.SfPicker.SfParentPicker.UpdateControl () [0x002f0] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Com.Syncfusion.SfPicker.SfParentPicker.set_DataSource (System.Collections.ObjectModel.ObservableCollection`1[T] value) [0x0055c] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Com.Syncfusion.SfPicker.SfPicker.set_DataSource (System.Collections.ObjectModel.ObservableCollection`1[T] value) [0x00017] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Com.Syncfusion.SfPicker.SfPicker.set_ItemsSource (System.Collections.IEnumerable value) [0x0004c] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Syncfusion.SfPicker.XForms.Droid.SfPickerMapping.Handle_CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0004f] in <8dd15fb5cc3b400498c8f3899e481106>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:288 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:351 
  at System.Collections.ObjectModel.ObservableCollection`1[T].RemoveItem (System.Int32 index) [0x0002b] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:205 
  at System.Collections.ObjectModel.Collection`1[T].RemoveAt (System.Int32 index) [0x0002b] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:126 
  at Scoular.Model.PopulateMinutes () [0x0004f] in E:\FarmerAppWithExpandableList\1 june FarmerApp\Scoular\Scoular\Common\Model.cs:223 
  at Scoular.Model+<>c__DisplayClass38_0.<UpdateDays>b__0 () [0x00183] in E:\FarmerAppWithExpandableList\1 june FarmerApp\Scoular\Scoular\Common\Model.cs:126 }"



PA Paul Anderson S Syncfusion Team July 30, 2018 01:06 PM UTC

Hi Rajagopal, 
 
We have checked the reported issue ”SfPicker getting crashed with Android” and we are unable to reproduce the reported issue. Can you please share more details on how to reproduce the issue with the last sample provided and if possible a modified sample or a video capture showing the steps and crash so that we can check the cause of the issue and help you in resolving it. 
 
Regards, 
Paul Anderson 



RA rajagopal July 30, 2018 01:47 PM UTC

Hi,

I attached Video and  My Source Code 








RA rajagopal July 31, 2018 07:27 AM UTC

Hi,

 I have attached My source Code and Vedio  yesterday can i know status my issues .



Regard's
M.Rajagopal


PA Paul Anderson S Syncfusion Team August 1, 2018 04:35 AM UTC

Hi Rajagopal, 
  
Sorry for the delayed reply. We couldn't find any attachments of your code and video. Can you please create a incident under your account if needed to maintain privacy. 
  
Regards, 
Paul Anderson 



PA Paul Anderson S Syncfusion Team August 1, 2018 04:39 AM UTC

Hi Rajagopal, 
  
Please ignore previous update. We have got the attachments. 
  
Regards, 
Paul Anderson 



PA Paul Anderson S Syncfusion Team August 1, 2018 08:35 AM UTC

Hi Rajagopal, 
 
Based on the given source code file we have modified our custom sample similar to your code. When running our solution, we are unable to reproduce the reported issue from our side. Please find the custom sample from the below link. 
 
 
Please check our custom sample and if the issue persists from your side please modify our custom sample to reproduce the reported issue. 
Regards, 
Paul Anderson 



RA rajagopal August 3, 2018 11:54 AM UTC

Hi,
  I had seen ur link but that project if u Change date or and month hours should be Change Recording to that date but in that project Collection is not change and also u commented the insert and remove property that is why it is not Crashing.....


Regard's
M.Rajagopal


RA rajagopal August 3, 2018 12:00 PM UTC

Hi,
 In ios my code Working properly collection updateing i am facing issues with andriod only...


Regard's
M.Rajagopal


PA Paul Anderson S Syncfusion Team August 6, 2018 10:29 AM UTC

Hi Rajagopal, 
  
Thanks for the update. 
 
We are able to reproduce the reported issue from our side in Xamarin.Forms Android. We have already logged an issue report for the reported issue. The fix for the reported issue will be available in the upcoming volume 2 SP2 release. 
 
Regards, 
Paul Anderson 



RA rajagopal August 6, 2018 11:27 AM UTC

Hi,
  Thnak's  for Reply.. How can i notify new release... upcoming volume 2 SP2 release.


Regard's
M.Rajagopal


PA Paul Anderson S Syncfusion Team August 6, 2018 11:34 AM UTC

Hi Rajagopal, 
  
The Volume 2 SP2 release will be rolled out by the end of this month [August 2018]. Please check the below Announcements page frequently. 
  
  
Regards, 
Paul Anderson 



RA rajagopal September 10, 2018 07:57 AM UTC

Hi,
   Regarding to syncfusion datetime picker still i faceing collection is not upadating properly. in xamarin Forms.i already update Screen shots and video reagarding this issue
i downlaod updated service pack 2 SP2  also still facing same issues.
please response as soon as  possbile




PA Paul Anderson S Syncfusion Team September 12, 2018 11:15 AM UTC

Hi Rajagopal, 
  
Sorry for the inconvenience caused. 
  
We are able to reproduce the reported issue at our end with SfPicker control and we are facing the issue only with your sample and the DateTimePicker fle in our SampleBrowser.SfPicker that is shipped with our EssentialStudio works as expected. We will fix the issue based on your sample and will be available in our Volume 3 SP1 release which will be in the end of October 2018. 
  
Regards, 
Paul Anderson 



DH Derek Hagen November 14, 2018 02:59 PM UTC

Is there a fix for the sfPicker yet?  Version 16.1.0.24 works but 16.3.0.29 does not work and I get the following error trying to do a clear:
Date.Clear()

{System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in <7d5a05cfcb09432d8cc656b9d781e54b>:0 
  at System.Collections.ObjectModel.Collection`1[T].get_Item (System.Int32 index) [0x00000] in <7d5a05cfcb09432d8cc656b9d781e54b>:0 
  at Syncfusion.SfPicker.iOS.SfPicker.UpdateSelectionFromItemSource () [0x00121] in <306be7fe3e63463e960ccaee8cdbf568>:0 
  at Syncfusion.SfPicker.iOS.SfPicker.set_ItemsSource (System.Collections.IEnumerable value) [0x0008f] in <306be7fe3e63463e960ccaee8cdbf568>:0 
  at Syncfusion.SfPicker.XForms.iOS.SfPickerMapping.Handle_CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x00133] in <fd9c4fb483ef4101a48fe87fcc32ec0d>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in <63f1529d84e54d74ba92c4719d33184c>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionReset () [0x00007] in <63f1529d84e54d74ba92c4719d33184c>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].ClearItems () [0x00022] in <63f1529d84e54d74ba92c4719d33184c>:0 
  at System.Collections.ObjectModel.Collection`1[T].Clear () [0x00014] in <7d5a05cfcb09432d8cc656b9d781e54b>:0 


PA Paul Anderson S Syncfusion Team November 15, 2018 12:26 PM UTC

Hi Derek Hagen, 
 
Greetings from Syncfusion. 
 
We checked the reported issue in the picker sample with six columns. We didn't face any issue in the latest version (16.3.0.29) and the picker control works correctly even when removing and adding any columns dynamically. Please find the sample from the below link. 
 
 
Please check our sample. If the issue persists in your side please share on which scenario are you facing the issue or please modify our sample to replicate the issue, so that we can give appropriate solution for the reported issue. 
 
Regards, 
Paul Anderson 



RA rajagopal December 19, 2018 02:34 PM UTC

Hi,
   In Date picker still getting same issue 

"{System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00018] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/throwhelper.cs:93 
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/throwhelper.cs:56 
  at System.Collections.Generic.List`1[T].get_Item (System.Int32 index) [0x00009] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/generic/list.cs:181 
  at System.Collections.ObjectModel.Collection`1[T].get_Item (System.Int32 index) [0x00000] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:47 
  at Com.Syncfusion.SfPicker.SfParentPicker.UpdateControl () [0x002f0] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Com.Syncfusion.SfPicker.SfParentPicker.set_DataSource (System.Collections.ObjectModel.ObservableCollection`1[T] value) [0x0055c] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Com.Syncfusion.SfPicker.SfPicker.set_DataSource (System.Collections.ObjectModel.ObservableCollection`1[T] value) [0x00017] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Com.Syncfusion.SfPicker.SfPicker.set_ItemsSource (System.Collections.IEnumerable value) [0x0004c] in <3f73616c910e4199876ddd54cf44db38>:0 
  at Syncfusion.SfPicker.XForms.Droid.SfPickerMapping.Handle_CollectionChanged (System.Object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0004f] in <8dd15fb5cc3b400498c8f3899e481106>:0 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedEventArgs e) [0x0000f] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:288 
  at System.Collections.ObjectModel.ObservableCollection`1[T].OnCollectionChanged (System.Collections.Specialized.NotifyCollectionChangedAction action, System.Object item, System.Int32 index) [0x00000] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:351 
  at System.Collections.ObjectModel.ObservableCollection`1[T].RemoveItem (System.Int32 index) [0x0002b] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/System/compmod/system/collections/objectmodel/observablecollection.cs:205 
  at System.Collections.ObjectModel.Collection`1[T].RemoveAt (System.Int32 index) [0x0002b] in /Users/builder/jenkins/workspace/xamarin-android-d15-6/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:126 
  at Scoular.Model.PopulateMinutes () [0x0004f] in E:\FarmerAppWithExpandableList\1 june FarmerApp\Scoular\Scoular\Common\Model.cs:223 
  at Scoular.Model+<>c__DisplayClass38_0.<UpdateDays>b__0 () [0x00183] in E:\FarmerAppWithExpandableList\1 june FarmerApp\Scoular\Scoular\Common\Model.cs:126 }"



DR Dhanasekar R Syncfusion Team December 20, 2018 12:48 PM UTC

Hi Rajagopal,  
  
We have tested with previously updated sample and we are unable to reproduce the reported exception from our side. We have tested with both 16.3.0.29 and latest 16.4.0.42 version. Please find the sample from following link 
  
  
Can you please share more details on how to reproduce the issue with the above sample or modify the sample with your exact scenario, so that we can check and provide you the better solution. 
  
Regards, 
Dhanasekar 



RA rajagopal December 24, 2018 06:13 AM UTC

Hi

while traceing issue by puting log in i am getting very first time these issue  while tap on datetime picker 


  • List`1[T].get_Item (System.Int32 index/Users/builder/jenkins/workspace/xamarin-android-d15-8/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/generic/list.cs:181
  • IList.get_Item (System.Int32 index/Users/builder/jenkins/workspace/xamarin-android-d15-8/xamarin-android/external/mono/mcs/class/referencesource/mscorlib/system/collections/objectmodel/collection.cs:234
  • SelectionController.UpdateSelectionFromItemSource ()
  • SfParentPicker.set_DataSource (System.Collections.ObjectModel.ObservableCollection`1[T] value)
  • SfPicker.UpdateControl ()
  • SfPicker.OnDraw (Android.Graphics.Canvas canvas)
  • View.n_OnDraw_Landroid_graphics_Canvas_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_canvas/Users/builder/data/lanes/6090/a8a3b0ec/source/monodroid/external/xamarin-android/src/Mono.Android/obj/Release/android-28/mcw/Android.Views.View.cs:16032


  • RA rajagopal December 24, 2018 06:15 AM UTC

    Hi,
    this was log i got 
  • List`1[T].get_Item (System.Int32 index)
  • Collection`1[T].get_Item (System.Int32 index)
  • SfPickerEngine.Run ()
  • Runnable.Run ()
  • IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this)
  • (wrapper dynamic-method) System.Object.43(intptr,intptr)


  • RA rajagopal December 24, 2018 06:18 AM UTC

    Hi,
     
    I am attaching my model what iam using for validation datetime picker below attachement


    DR Dhanasekar R Syncfusion Team December 26, 2018 11:09 AM UTC

    Hi Rajagopal, 
     
    Thanks for the update. 
     
    Unfortunately, we couldn’t find any attachment in your update. Can you please update again so that it will be more helpful to check this and provide you the better solution? 
     
    Regards, 
    Dhanasekar 



    RA rajagopal December 26, 2018 02:33 PM UTC

    Hi,
    Thanks for Replying .
    I am attaching my model file only ...

    This waas Crash report i got in Andriod i using 16.4.0.42 version spicker

  • List`1[T].get_Item (System.Int32 index)
  • IList.get_Item (System.Int32 index)
  • SelectionController.UpdateSelectionFromItemSource ()
  • SfParentPicker.set_DataSource (System.Collections.ObjectModel.ObservableCollection`1[T] value)
  • SfPicker.UpdateControl ()
  • SfPicker.OnDraw (Android.Graphics.Canvas canvas)
  • View.n_OnDraw_Landroid_graphics_Canvas_ (System.IntPtr jnienv, System.IntPtr native__this, System.IntPtr native_canvas)
  • (wrapper dynamic-method) System.Object.94(intptr,intptr,intptr)

  • Thank's
    M.Rajagopal

    Attachment: Model_216af34b.rar


    DR Dhanasekar R Syncfusion Team January 3, 2019 12:35 PM UTC

    Hi Rajagopal, 
     
    We have validated with the provided model page and we have created a sample with using your model page.  
     
    We are unable to reproduce the reported crash issue. please check the sample from the following link. 
     
     
    In this sample we have replaced the month id as default value instead of Utilities.GettMonthNameID(arr[0]) because we don’t have the parent file which you have used, but the sample is work as expected without getting any exception issue. 
     
    Please modify the sample as per your scenario so that we can reproduce the issue and help you resolving the issue at your end. 
     
    Regards, 
    Dhanasekar 


    Loader.
    Up arrow icon