MVCContrib Grid Razor problem, Column.Action do not render?

I have moved away from using mvccontrib grid as it doesn't make much sense in grid we have Anyway problem was code in the question does not return html but puts code directly into response stream. And code for columns rendered using razor which put's code into stream whenever called. So it ends up putting columns into stream before grid is rendered It was resolved by not using razor code in action called by grid.

I have moved away from using mvccontrib grid as it doesn't make much sense in grid we have. Anyway problem was code in the question does not return html but puts code directly into response stream. And code for columns rendered using razor which put's code into stream whenever called.So it ends up putting columns into stream before grid is rendered.

It was resolved by not using razor code in action called by grid.

Ok I got it working for me with the following @Html. Grid(Model. Result).

Columns(column => { column. For(u => u. Name).

Named("Name"); column. For(u => u. Code).

Named("Code"); column. For(u => Html. ActionLink("Edit", "Edit", new { id = u.Id })).

Named("Edit").

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions