I have a scenario where I use NH.Linq to access data, returning and IQuerable which I then bind to the Telerik Grid and it handles paging and sorting and filtering and all of that. A situation arose where I'm going to need to integrate another data type in to the grid and the solution there would be a common view model between the two grid types.
What I'd like to do is convert my entities to a view model prior to it getting to the aspx page -- so it would only pull down the records that I need by virtue of the DataSource/IQueryable, but then I could shape the data as needed by converting it to a view model prior to populating the grid in the aspx page.
Is there anything I can hook in to so as to accomplish this?
Thanks
Don
What I'd like to do is convert my entities to a view model prior to it getting to the aspx page -- so it would only pull down the records that I need by virtue of the DataSource/IQueryable, but then I could shape the data as needed by converting it to a view model prior to populating the grid in the aspx page.
Is there anything I can hook in to so as to accomplish this?
Thanks
Don