How Can I convert this to C# code? I want to write a custom html helper that returns a custom html code.
@Html.Infragistics().Grid(
"SetupPledgeCode_Grid", Model.Grid);
Thanks
Hi,
i am not sure what you are trying to achieve - are you aiming to extend the MVC wrapper for the grid ?
Thanks,
Angel
That's correct. I was looking for the code below. That way I can create an extension method and use it in razor.
Razor code
@Html.InfragisticsGridHelperExtension(
"gridid1")
Extension Method
public static MvcHtmlString InfragisticsGridHelperExtension<TModel>(this HtmlHelper<TModel> html, string gridName)
{
HtmlHelperExtensions.Infragistics(html).Grid(model.Grid));
}
Hey,
ok , that's great ! Just wanted to make sure you have everything sorted out for the scenario? Is there anything else i can help with?