vtfuture / BForms

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

TRow Model dynamically Creation Consultation #253

Closed stantoxt closed 9 years ago

stantoxt commented 9 years ago

At first,I am sorry for that my this post is completely outside the issue range,But I really want to get your help about this dilemma that dynamically creating TRow to achieve the page grid columns dynamically show.My solutions is followed. 1.Create BaseRowModel For BsGridModel 2.Create DynamicRowModel based on BaseRowModel by using reflection and codedom at running-time.Then to implement MapQuery(IQueryable query) using DynamicRowModel in BsGridRepository. 3.In views, to use reflection to for ConfigureColumns,but I be aware of that TRow is just BaseRowModel from html GridExtensions BsGridFor,I stop here. So,how can I cross the river.Please Give some Advice,Waiting And Thinking Online! Thanks, ShiTAoSome

stantoxt commented 9 years ago

Maybe it is not a good idea and time to face this,yet, there is much work to study deeper into BForms.