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
close icon

ItemTemplates

We are using item templates within some of our columns. If I click a column, normally the row gets selected. Works fine with standard columns. But with a item template within a column, the row is not selected on mouse clock.

QueryCellStyleEvent (snippet):

Dim objLabel As New Label
Dim objItemTemplate As ItemTemplate = New ItemTemplate(objLabel)

If String.IsNullOrEmpty(e.Style.Text) = False Then
objLabel.Text = e.Style.Text
End If
e.TableCellIdentity.Column.ItemTemplate = objItemTemplate

ItemTemplate is a custom class implementing ITemplate.

Do we habe a sets some more properties to get this to work?

1 Reply

JB Jaffersathick B Syncfusion Team December 29, 2009 03:29 PM UTC

Hi Martin,
Thanks for using Syncfusion product.

The issue "Row selection not working in item-template" has been confirmed as a defect and has been logged as a defect report.
The fix for this issue will be available on future release.

Thank you for your patience.

Regrads,
Jaffer.B

Loader.
Live Chat Icon For mobile
Up arrow icon