Quantcast
Channel: Forum
Viewing all articles
Browse latest Browse all 3613

Edit Mode - Trigger JS on Property Change?

$
0
0

In one of our client projects (EPiServer 7.19) we have a grid-row ContentArea property into which blocks can be added and dragged/dropped to re-arrange. These blocks may all have different heights, which would result in a jagged bottom edge. To remedy this, some JS is run on page load to standardize the height of all blocks to the tallest item in each row, resulting in a nice even appearance.

However, this is causing a problem in edit mode. When the page is first loaded in edit mode, the JS is run and the blocks all look good. But after adding or re-arranging the blocks, the height standardization JS is not re-run and the bottom edge can get quite badly jagged, unless you refresh the page.

I'm familiar with using EditHints.AddFullRefreshFor to force the entire page to refresh automatically, but this seems like overkill and would interrupt the editors work re-arranging blocks.

Is there any way, in ASP.NET or JS, to trigger the height normalization JS when the contents/order of the ContentArea change?


Viewing all articles
Browse latest Browse all 3613

Latest Images

Trending Articles



Latest Images