How how apply a class to a div when the repeater controlls has zero rows?

DILRUKSHAN FIGURADO asked on December 8, 2014 13:04

I have a transformation with a cms repeater control, this repeater control is wrapped with a div.

Title

I need to add class to the wrapping div if the "rptRepeaterXX" has no records. Could this be done using macro.

Recent Answers


Brenden Kehren answered on December 8, 2014 19:16

You can use the content before and content after of the repeater webpart, this should work for what you're looking for as long as you don't hide the webpart for zero rows.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.