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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

DateTimeEdit control inside a GridDataControl has odd selection behavior

Thread ID:

Created:

Updated:

Platform:

Replies:

115894 Feb 20,2014 04:40 PM UTC Mar 4,2014 03:37 AM UTC WPF 3
loading
Tags: DateTimeEdit
Kyle MacDonald
Asked On February 20, 2014 04:40 PM UTC

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? 

Kasthuriraja G [Syncfusion]
Replied On 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

Kyle MacDonald
Replied On March 3, 2014 02:58 PM UTC

Awesome this worked.



Kasthuriraja G [Syncfusion]
Replied On 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


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

;