This question is locked. New answers and comments are not allowed.
I'm using client templates in RadListView and have code that looks like this...
This code does exatly what it's supposed to do, however JustCode's analysis tool doesn't like it (see SS1.png)
I think I can understand why it's having a sulk, but I imagine that it's going to encounter more and more code like this as client templates become more widely used.
--
Stuart
<
ItemTemplate
>
<
div
class
=
"item item_#=owner.Skin# #=isSelected ? String.format('selected selected_{0}', owner.Skin) : '' #"
onclick
=
"itemSelected('#=index#', '#=dataIndex#')"
>
<
div
><
strong
>#= String.format("{0}, {1}", Surname, Forename) #</
strong
></
div
>
<
div
>#= OrganisationName #</
div
>
<
div
>#= BusinessEmail #</
div
>
<
div
>#= String.format("{0} ext {1}", BusinessPhone, BusinessPhoneExt) #</
div
>
<
div
style
=
"display:none;"
>
<
input
type
=
"checkbox"
id
=
"canAddContact"
value
=
"canAddContact"
#= getPermissions("Add", OwnerGroupId) # />
<
input
type
=
"checkbox"
id
=
"canAddAdHocContact"
value
=
"canAddAdHocContact"
#= getPermissions("AddAdHoc", OwnerGroupId) # />
<
input
type
=
"checkbox"
id
=
"canEditContact"
value
=
"canEditContact"
#= getPermissions("Edit", OwnerGroupId) # />
<
input
type
=
"checkbox"
id
=
"canEditAdHocContact"
value
=
"canEditAdHocContact"
#= getPermissions("EditAdHoc", OwnerGroupId) # />
</
div
>
</
div
>
</
ItemTemplate
>
I think I can understand why it's having a sulk, but I imagine that it's going to encounter more and more code like this as client templates become more widely used.
--
Stuart