Is it possible to bind an object collection to telerik mvc control without defining the model.
Is it possible to bind an object collection to telerik mvc control without defining
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What exactly you mean without model?
If you are talking about the model which is defined for view – strongly typed view then yes it is possible to bind it. You need to specify the type of the model like this
Html.Telerik().Grid<YourType>((IEnumerable<YourType>)Model)If you are talking about omitting the Grid type declared here – then you can specify dinamic type there and use the approach covered in this code library to successfully bind the grid.
http://www.telerik.com/community/code-library/aspnet-mvc/grid/binding-to-a-collection-of-dynamic-objects-with-mvc3-razor.aspx
I hope this is what you search for.