MvcContrib Grid AutoGenerateColumns

20 views
Skip to first unread message

Sam

unread,
Dec 14, 2009, 6:19:01 PM12/14/09
to mvccontrib-discuss
Are there any plans to allow the Grid helper's "AutoGenerateColumns"
method detect DataAnnotations such as "ScaffoldColumn(false)" in a
future release?

Jeremy Skinner

unread,
Dec 15, 2009, 3:12:06 AM12/15/09
to mvccontri...@googlegroups.com
I personally don't have any plans to add this....but I do accept patches :-)

Jeremy

2009/12/14 Sam <sam...@gmail.com>
Are there any plans to allow the Grid helper's "AutoGenerateColumns"
method detect DataAnnotations such as "ScaffoldColumn(false)" in a
future release?

--
Contact Jeffrey Palermo or Eric Hexter with specific questions about the MvcContrib project.  Or go to http://mvccontrib.org

To unsubscribe from this group, send email to mvccontrib-disc...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mvccontrib-discuss?hl=en

Eric Hexter

unread,
Dec 15, 2009, 9:15:26 AM12/15/09
to mvccontri...@googlegroups.com
I do not think you should use the ScaffoldColumn(false) but rather the ShowForDisplay from the ModelMetaData.  If this feature was to be implemented.  It would be also good to use the Html.Display() to use the display templates for the content of each cell,,, if you were to go and integrate the auto columns with the display templates.
 

Eric Hexter

Principal Consultant | Headspring Systems | www.HeadspringSystems.com
email | ehe...@HeadspringSystems.com
blog | http://Hex.LosTechies.com
info | http://www.linkedin.com/in/erichexter




Sam

unread,
Dec 15, 2009, 9:24:50 AM12/15/09
to mvccontrib-discuss
I think you're right Eric, I completely forgot about these guys. I'll
look into including these. And, yea I'll work on that patch Jeremy.

On Dec 15, 8:15 am, Eric Hexter <eric.hex...@gmail.com> wrote:
> I do not think you should use the ScaffoldColumn(false) but rather the
> ShowForDisplay from the ModelMetaData.  If this feature was to be
> implemented.  It would be also good to use the Html.Display() to use the
> display templates for the content of each cell,,, if you were to go and
> integrate the auto columns with the display templates.
>
> Eric Hexter
>
> Principal Consultant | Headspring Systems |www.HeadspringSystems.com
> email | ehex...@HeadspringSystems.com
> blog |http://Hex.LosTechies.com
> info |http://www.linkedin.com/in/erichexter
>
> On Tue, Dec 15, 2009 at 2:12 AM, Jeremy Skinner
> <jer...@jeremyskinner.co.uk>wrote:
>
> > I personally don't have any plans to add this....but I do accept patches
> > :-)
>
> > Jeremy
>
> > 2009/12/14 Sam <sam....@gmail.com>
>
> > Are there any plans to allow the Grid helper's "AutoGenerateColumns"
> >> method detect DataAnnotations such as "ScaffoldColumn(false)" in a
> >> future release?
>
> >> --
> >> Contact Jeffrey Palermo or Eric Hexter with specific questions about the
> >> MvcContrib project.  Or go tohttp://mvccontrib.org
>
> >> To unsubscribe from this group, send email to
> >> mvccontrib-disc...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/mvccontrib-discuss?hl=en
>
> > --
> > Contact Jeffrey Palermo or Eric Hexter with specific questions about the
> > MvcContrib project. Or go tohttp://mvccontrib.org
Reply all
Reply to author
Forward
0 new messages