I have a widget, that I need to update with data, when a event happens.
but I'm not sure, how to redraw the shape from the controller, with the new value.
I have tried the following :
dynamic shape = _shapeFactory.DrainOnResourcesGrpPersWidget();
shape.graphdata = data;
shape.TimePeriodValue = dbs.TimePeriodValue;
return new ShapeResult(this, shape);
// this is the same :-( return new ShapePartialResult(this, shape);
And what happens is, that orchard sends us a alert message with the following header "Message from webpage" and in the text it is showing the shape in html
and the shape is not refreshed - can anyone tell me, what I'm doing wrong ?!?!