We are considering Aspose.Cells.Grid Web control because we need to show information in web like in Excel but we need to integrate it in a MVC4.net application. In Aspose web we can see there are some video tutorials for using Aspose.Cells with MVC but there isn't anything regarding that particular control, so the question is:
Is Aspose.Cells.Grid Web control compatible with MVC model for .NET?
Well, I am afraid, the situation is pretty much the same, we think Aspose.Cells.GridWeb control might not work well on ASP.NET MVC due to the differences and hurdles of .NET MVC . Anyways, I have logged a ticket with an id “CELLSNET-42334” into our database for your issue. Our concerned developer may look into it in details if this can be enhanced or supported for the underlying platform.
Once we have any update on it, we will let you know here.
Thanks for your posting and considering Aspose.Cells.GridWeb.
We have looked into this issue earlier and concluded:
Every control in ASP.NET inherits from System.Web.UI.Control and have
the RenderControl method. When you want to get the html output of the
control at any point of the page execution lifecycle you can use the
public string RenderControl(Control ctrl)
StringBuilder sb = new StringBuilder();
StringWriter tw = new StringWriter(sb);
HtmlTextWriter hw = new HtmlTextWriter(tw);
At this point ASP.NET MVC does not have full support for asp.net
controls. Using this trick you can render control's html directly on the
view using html helper. While this is good for read-only controls it
will not work with controls that require event handling because in
ASP.NET MVC by default you are missing the page lifecycle.
For full support, we 'll need to rewrite all the server side code and it is not in our current plan.
Navigate to http://localhost:40249/GridWebDemo/WebForm1.aspx
Second Project, it is more mvc way, but we need to set readonly for GridWeb.
Navigate to http://localhost:53708/ViewPage1
but actually if we want to use mvc data model way to cooperate with GridWeb serverside business logic, we need to do more heavy work, as we need to rewrite all the serverside business logic to cooperate with MVC way, so we will put it into schedule in future.
Please find attached both projects for your reference.
Please keep this in mind:
“…but actually if we want to use mvc data model way to cooperate with GridWeb serverside business logic, we need to do more heavy work, as we need to rewrite all the serverside business logic to cooperate with MVC way, so we will put it into schedule in future”. GridWebInMvc1.zip (962.8 KB) GridWebInMvc2.zip (505.1 KB)
Hi, Someone please provide a code of aspose cell gridweb in mvc? As I couldn’t found any such code on aspose site or even on github. I need to implement such functionality in my application using aspose.cell gridweb in mvc.