vtfuture / BForms

Bootstrap Forms for ASP.NET MVC
MIT License
62 stars 33 forks source link

Add an MvcHtmlString overload to BsGridRowConfigurator.DetailsTemplate #151

Closed CezarCretu closed 10 years ago

CezarCretu commented 10 years ago

An overload that receives a Func<TRow, MvcHtmlString> should be added to the DetailsTemplate method to get rid of redundant ToString calls.

cryptotechmaker commented 10 years ago

I've added this :

 public BsGridRowConfigurator<TRow> DetailsTemplate(Func<TRow, MvcHtmlString> detailsTemplate)
     {
        Func<TRow, string> detailsAsString = t => detailsTemplate(t).ToString();

        this._detailsTemplate = detailsAsString;

        return this;
    }

It's ok to commit ?

CezarCretu commented 10 years ago

Sure, go ahead.