I have spent the better part of a week now trying to encapsulate a jqGrid control into something that could be cleanly and easily reused from various ASP.NET views. In some ways, I think I have met those goals, but in others, I think I have failed miserably. On the plus side, actually creating a grid is quite easy:
So, I’m torn. Overall, I think the ASP.NET MVC approach is much, much better than the WebForms approach, but… is this it? Is this really the best we can do? There has to be a better way to do things like this. There has to be a way to keep languages separate. There has got to be a cleaner way to encapsulate and reuse "controls" in ASP.NET MVC. I just haven’t found it yet.