Calendar control in listview

  • 17 February 2014
  • 2 replies
  • 3 views

Badge +1

Hi guys,


I am currently using list view to display all data from an SQL table. One of the field is date-time type. I want to allow the user to enter the date and time into this field, so I changed the control of this field to calendar. however, after the change, this field displays nothing.


If I double click on this field, it does allow me to pick a date, but after i pick the date, it shows "undefined".


Any thoughts are appreciated。


 


 


2 replies

Badge +3

Hi,


I've found that in list views, only primitive types render correctly (string, int etc.) and object types like DateTime, Guid etc need to be set as a string in yuor smart object when used to be displayed in a list view.


You will still be able to use the calendar for the add/edit row, but it needs to be passed as a string to be displayed correctly in the display rows of the list view for some reason


Hope that helps


 

Badge +1

Thanks!

Reply