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. Image for the cookie policy date

GridTimeSpanColumn - in UWP?

Is there <syncfusion:GridTimeSpanColumn ....... in UWP .
IF so can you provide an example 
IF not there is a workaround to it ?

2 Replies

DY Deivaselvan Y Syncfusion Team November 26, 2018 07:42 PM

Hi Red, 
 
Thanks for contacting Syncfusion support. 

SfDataGrid doesn’t have direct support for TimeSpan column in UWP. You can achieve this by creating custom column and cell renderer. Please refer to the following UG to create custom cell renderer and custom column using TimePicker. 


Please let us know if the provided solution doesn’t meet your requirement. 

Regards, 
Deivaselvan 



RE red November 26, 2018 10:29 PM

Hi Deivaselvan ;

I followed the instruction based on the link , I created the TimeSpan column successfully .

I have issues when I select the time by clicking on the timepicker , the selected time not saved on the cell after  I hit tab or select another cell to enter data ,the time that I selected is empty .

- Is there a property for that as exp:    AllowInlineEditing="True"  for  GridDateTimeColumn when I select the date, the date is saved  on the cell after I click tab or select another cell for editing .

- Is there a property for getting 24 h  not only 12 h timepicker.

- In the end of the instruction :   Adding the custom renderer to SfDataGrid.CellRenderers collection

I think there is an error in :  

    dataGrid.CellRenderers.Add("TimePicker", new DatePickerRenderer()); ==> should be  dataGrid.CellRenderers.Add("TimePicker", new TimePickerRenderer());

because we are creating a TimePicker Column.

Thanks for your help .


Loader.
Live Chat Icon For mobile
Up arrow icon