Search code examples
asp.net-mvcasp.net-mvc-3asp.net-mvc-2teleriksqldatasource

Porting ASP.NET (Telerik) multi-column combobox to MVC.


I need to port the functionality of this one and only one AJAX control to MVC, but given the poor selection of MVC controls out there, I think I need to bring this legacy control into the MVC world...

I'd rather not taint my MVC project with ASP.NET controls, and welcome json/MVC alternatives you know of. (post them if you know of any)

Sample UI that I need in ASP.NET MVC Combo sample

Back to porting

Although it's unfortunate that I am left to porting this control to MVC, it seems to be a widely accepted practice since Telerik has detailed instructions on how do this.

That makes me ask:

How common is it for a MVC website to use ASP.NET controls?

Again I'll mention I don't want to do this so I welcome MVC-specific alternatives. That being said, I'll proceed with trying to merge that control with my existing site. </End Disclaimer>

If you click on this hyperlink, and look at the source code at the bottom, can you tell me where I should put the following in MVC?

  1. Code behind (My first instinct is to use a Controller but another SO question indicates I should create a create a ViewName.aspx.cs file)

  2. How do I port the SQLDataSource to the new "Model" way of thinking. I know they are different in nature but I don't know how to present data to a ASP.NET control in a way that it will consume the information.

  3. How do I handle the AJAX component? This control has an AJAX component using callbacks. Yes this is getting ugly, but it seems like I have to do this.

  4. Apparently this model saves data in session or view-state. I have no idea if this even work in MVC. Guidance, an alternate control, or a life preserver is much appreciated.

I've already done research and have instructions from Telerik here and here that describes how to get started with placing a simple menu, but I need a little assistance with the more complex controls like this one.

Note: For all the commentary that has hit this question, please remember that I only want this one ASP.NET control functionality; I can't find a comparable control in MVC.


Solution

  • Hope this helps.