Following has worked for me. I have an ajax which returns set of html items (returns a partial view, from the ajax) when I click a load more button in my web page. Below is the partial view, which is dynamically generated.
foreach (var item in Model.SocialFeedList)
{
}
In the success callback ajax method, I have done the below,where "response" is the set of html items I get from the above html. Where "divFeedList" is the root element where I show the set of html elements.
jQuery("divFeedList").append(response).masonry('reloadItems', response, true).masonry();
Please let me know if the answer is unclear.