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

DateTimeEdit control inside a GridDataControl has odd selection behavior

I have a GridDataControl and in order to have the maximum amount of flexibility i have a custom GridDataVisibleColumn defined that has Two datetime edit controls for the column template.  Whenever i select a row the whole row highlights with default behavior except for the DateTimeEdit controls.  There is a textblock in between these two controls and that highlights properly.  What style do i have to enable/disable in order to get this to work properly? 

3 Replies

KG Kasthuriraja G Syncfusion Team March 3, 2014 08:52 AM UTC

Hi Kyle,

Thanks for using Syncfusion products.

We have analyzed your query. You can highlight the DateTimeEdit control by setting the Background to “Transparent”.

Please find the code snippet below:

Code Snippet:

<syncfusion:GridDataVisibleColumn HeaderText="DateTime" MappingName="Time">

<syncfusion:GridDataVisibleColumn.CellItemTemplate>

<DataTemplate>

<syncfusion:DateTimeEdit Background="Transparent" />

</DataTemplate>

</syncfusion:GridDataVisibleColumn.CellItemTemplate>

</syncfusion:GridDataVisibleColumn>

Here we have attached the sample for your reference.

Please let us know if you have any queries.

Thanks,

Kasthuriraja G

 


Attachment: DateTimeEdit_629c8b8.zip


KM Kyle MacDonald March 3, 2014 02:58 PM UTC

Awesome this worked.




KG Kasthuriraja G Syncfusion Team March 4, 2014 03:37 AM UTC

Hi Kyle,

Thanks for your update.

Please let us know if you need any further assistance.

Thanks,

Kasthuriraja G


Loader.
Live Chat Icon For mobile
Up arrow icon