Is there a way to get the current display option for current block in episerver 7.5?
I think that DisplayOption is set on ContentArea item not on block. This is because you could have different DisplayOptions on the same block in several contet areas.
The code to get display option from content area item:
foreach (var item in ca.FilteredItems)
DisplayOption loadDisplayOption = item.LoadDisplayOption();
You can get the display option ID from RenderSettings property and then load the display option.
Are you using MVC or Webforms?
Using Webforms. And using .LoadDisplayOption() worked fine for my problem.
Thanks for the help =)