This is a migrated thread and some comments may be shown as answers.

Moving to MVC.

1 Answer 144 Views
UI for ASP.NET AJAX in ASP.NET MVC
This is a migrated thread and some comments may be shown as answers.
Sean
Top achievements
Rank 2
Sean asked on 18 Jun 2011, 12:07 AM
Hi Telerik,

I apologize in advance if this post gets a bit long-winded. I'm just trying to get my head around a lot of things while also trying to make some decisions on where I need to go next. 

I have a fairly complex ASP.NET/AJAX Web Dashboard. It utilizes the following RadControls for AJAX:

  • RadSplitter/RadSlidingZone/RadPane/RadSlidingPane/RadSplitBar
  • RadListBox
  • RadTab/RadMultiPage (less so)
  • RadDock/RadDockZone/RadDockLayout

All except a handful of instances of the controls are completely dynamically created and restored through page-postback and session. The RadListBox uses drag-and-drop features to move RadListBoxItems to the page. Event handlers then take over the creating of RadDocks or RadSplitters and RadPanes. If it would help this discussion I am able to provide a working copy of my current solution. 

Now, I am 100% nubile to MVC aside from code I have inherited at my job. I have this dashboard working, using ASP.NET/AJAX controls, inside of the MVC solution -- but breaking MVC architecture to do so. My goal is to not break this architecture - I am not concerned at this point about whether I use RadControls for MVC, RadControls for AJAX, a mixture of the two, or pick-and-choose controls with outside support from jQuery patching up the edges. 

So, where do we stand? I played around with Telerik Controls for MVC and while I believe I could achieve the functionality I want out of some of these controls -- not everything has been fleshed out yet. Is mixing in controls from RadControls for AJAX going to be acceptable? I know, I know, I read that this is possible -- but I want to know if it's the best decision to be making.

For instance, does RadSplitter for MVC support dynamically creating new panes, nesting splitters and panes to an arbitrary depth?

Lets assume I am going to not use RadControls for MVC for my first iteration of integrating my project into MVC architecture. Is it POSSIBLE to achieve the same functionality as I have currently using RadControls for AJAX in MVC? A simple example I have is "I rely heavily on RadDockLayout's SaveDockLayout event, how can I emulate this behavior in MVC?"

The third solution, which I believe to be the answer (but do not want to jade anyone else into thinking that this is the only answer) is a mixing of Telerik Controls for AJAX and other jQuery libraries to patch the bridge. For instance, using jQuery docking functionality where I originally used RadDocking. 

Maybe this is all worth opening a ticket to discuss, but I thought it'd be best for other Telerik users to be able to see my thoughts and concerns. I have a long road ahead of me, and I'd love to not make it longer with some helpful insight from the Telerik team.

Kind regards,

Sean Anderson

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 20 Jun 2011, 09:59 AM
Hi Sean,

Generally speaking, for new MVC development we recommend using our native MVC extensions to fully utilize the power and features that the ASP.NET MVC framework provides.

For your particular case when you need to port your existing ASP.NET AJAX dashboard implementation to work with MVC, you may consider developing a 'hybrid' application using the Telerik Splitter/TabStrip MVC components and the ListBox and Dock controls from our ASP.NET AJAX suite (which do not have MVC counterparts presently). Side-by-side comparison of the features supported by our Splitter/TabStrip components from the AJAX and MVC suites respectively can be made directly from the live demos:

AJAX Demos
http://demos.telerik.com/aspnet-ajax/controls/examples/default/defaultcs.aspx

MVC Demos
http://demos.telerik.com/aspnet-mvc

You should be able to intercept the SaveDockLayout event in server code block inside a MVC view although this schema is not in par with the MVC design pattern.

However, please bare in mind the limitations our AJAX controls have in ASP.NET MVC which are listed in this documentation topic.

An alternative approach might be to use pure client jQuery components as you mentioned (jQuery docking for instance) as replacements for the RadDock and RadListBox controls. They should work properly in ASP.NET MVC projects side-by-side with our MVC extensions.

I hope this explanation is helpful.

Kind regards,
Sebastian
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
UI for ASP.NET AJAX in ASP.NET MVC
Asked by
Sean
Top achievements
Rank 2
Answers by
Sebastian
Telerik team
Share this question
or