I'm trying to add a functionality to Telerik MVC Q3 chart (I need the chart to show some summary lines, for instance minimum, maximum or average lines). I downloaded the visual studio solution from codeplex, but it's too hard to make any changes because I couldn't find any documentation on this project. I somehow managed to add the server side configuration part, but now I'm really stuck with the javascript part. Could someone advise how can I get the documentation?
Telerik does not have an extensive client-side api. What there is can be found in their docs.
Telerik Extensions for ASP.NET MVC Manual
Under Telerik UI Components, there is a section called "Client API and Events" for each component. For example, Grid Client API and Events.
Telerik Extensions for ASP.NET MVC Demos
The demos all have a small demo of client-side events. For example, Grid Client-Side Events.
Another resource that might be useful on the ASP.NET Wiki is an article by John DeVight called "Telerik MVC : Extending the Client API". Also the Telerik MVC Series might be useful.
Related
I see that there is the Telerik Grid, jqGrid and WebHelper WebGrid as part of the framework. Am I missing any others?
Which one works best on a commercial application with thousands of rows and master/detail relationships for ASP.Net MVC 3?
I have used the Telerik MVC grid in production. Take a look at the grid at an online Diamond store. It works the same with even 50k+ rows as it only sends the current page to the browser + it has many cool features like Filters, Ajax binding etc.
No idea on the master details front. You could find more info about it on Telerik's Site
there is also grid supplied by mvccontrib. I personally use telerik grid having some cool features and scale for large data Q3 2010 has some good improvements such as inline editing etc. For MVC 3 grid i am waiting for rtm of mvc 3 coming in January
If you're using Telerik for a commercial project, then you will need to buy it. Check this link: http://www.telerik.com/products/aspnet-mvc/getting-started/licensing.aspx.
We're using the jQuery in our project, so the jqGrid is most suitable for us. It's powerfull, has a lot of plugins and completely free, but little bit more complicated in use than Telerik.
jqGrid usage example:
[view]
http://xenta.codeplex.com/SourceControl/changeset/view/11214#118453
[controller]
http://xenta.codeplex.com/SourceControl/changeset/view/11214#118416
The application consists of lots of runtime generated grids and charts.
Coloring of gridcells will be required for some threshold based on data.
also there will be use of ajax for sorting, paging and exporting on gridviews.
Should I go with webforms or can mvc provide some benefits over webforms when struggling with
preinits, event bindings and viewstate for runtime grid and chart generation.
Pre-thanks for your opinions.
There's nothing that you described that ASP.NET MVC wouldn't be able to handle and then some.
Having said that, you should consider a few things.
The webforms page life cycle that you're describing is not used in ASP.NET MVC.
There is no viewstate, there is a concept of a model that you use, but viewstate is gone.
If you're using third party controls for your grids and charts you need to make sure they are compatible with ASP.NET MVC. They may not be, especially if they utilize viewstate.
You don't get charts and grids out of the box with MVC, you have to implement the syntax yourself, or buy some controls that do.
One of the things about ASP.NET MVC that folks don't seem to mention too often is that for many things, more work and development time is required over a standard ASP.NET application.
ASP.NET MVC gives you a lot of control over your application but that means you forgo a lot of the RAD conveniences that standard ASP.NET offers.
Is there a good enough Control toolkit framework for ASP.net MVC that includes useful controls like calendar, tree, grid etc.
Thanks in advance.
From what i know, the most popular and active (in development) is the Telerik ASP.net MVC Components. Demos here.
If you just need a grid, MVCContrib has a good one.
The Mvc Controls Toolkit offers server controls that are comparable with the ones of Web Forms. See here: http://mvccontrolstoolkit.codeplex.com/
Telerik's MVC framework as mentioned above is good; it has a really nice grid, but does not have the calendar/tree components. However, if you can wait until march, it has the other two components you are looking for. See the roadmap at: http://www.telerik.com/products/aspnet-mvc/whats-new/roadmap.aspx.
Telerik claims their controls work with ASP.NET MVC now. Has anyone already used the controls in a MVC project?
My company uses the Telerik ASP.NET controls in a large application and it works out quite well. That's why we think about using them in a MVC project.
EDIT 1:
telerik has a new go at ASP.NET MVC this looks much better then their first go at it. But it was to late for my project. http://www.telerik.com/products/aspnet-mvc.aspx
You could check out the demo application (a forums application) they built using ASP.NET MVC, announced here. Source code is available.
The demo is a simple- and stylish -
forums application. It uses 9 of the
RadControls, including RadGrid,
RadEditor, RadChart, RadTreeView and
RadUpload, to build a forum site that
has basic thread/post navigation,
formatted forum posting, user
authentication (with support for
custom avatars), and a site activity
"Statistics" view. Everything you need
to have a fully functional MVC forums
app. The source is available for
immediate download, so I encourage
anyone interested in learning more
about MVC or the RadControls in MVC to
grab the bites and study the example.
You may have already seen it, but Telerik has a blog post about how to use their controls with MVC and some of the limitations. I don't actually use their controls so I can't speak to whether the limitations are really a problem. It does appear that there is a a little more "manual lifting", so to speak, when using the controls with MVC but that there are workarounds to get most of them to work properly.
I'm hoping that they will eventually release MVC versions of their controls. I'm holding off evaluating them until that happens, but if you're already using them I'd certainly look to see how easy they would be to use with MVC. Perhaps you could update your question with an answer if you give it a try and let the rest of us know how it went.
I have been using the Telerik controls for about 6 months. I have been using the Grid and Window controls on MVC 2. Like most commercial products there are issues we have been fortunate to work them out. Once you get past the initial learning curve the controls are time savers. You can't beat the price for the amount of functionality you get.
My biggest issue is that they seem a bit sluggish responding on their forums. Maybe I'm just asking lame questions. I've been lobbying management to pay the $ for the supported version. Considering the amount of time we spend digging around to solve some of the more complicated problems I think it would be worth it.
I've just had a look at their grid and wrote a small POC project with it and must say I'm quite impressed. I'm not sure about their previous MVC controls iterations, but the current one can be a real time saver. It also fits very nicely into ASP.NET MVC ajax applications since there is a rich client-side API. Having jquery DataTables on the client side results in an even better user experience (because it is much faster), but also requires more error-prone javascript code.
As an alternative, you can check for MDBootstrap (it´s a front-end framework built on top of Bootstrap). There you will find an article with free ASP.NET MVC templates.
One of the things I like about coding "old skool" (web forms) is the AJAX Control Toolkit.
I saw on the Microsoft Storefront video 14, Rob Conery uses the TextboxWatermark control.
When I downloaded the code though, I couldn't find any reference to the Watermark control or any other control from the toolkit nor could I get it to work.
So my question is, does the AJAX Control Toolkit even work in an MVC / AJAX / JQuery type world without viewstate. What do you use for "simple" controls such as Calendar & Watermarks?
jQuery UI has a calendar and other UI components. Also check out the vast number of jQuery plugins.
I've been looking into this question recently and what I've found is that the AJAX Control Toolkit is not easy to use in the "JavaScript only" manner that you'd want to use for ASP.NET MVC. In fact it's a real pain. Here are two examples:
Example 1 - Popup Calendar
Example 2 - Auto Complete Text Field
Neither are easy.
You can give your MVC pages a code-behind and use the AJAX Control Toolkit as you would in regular ASP.NET, but that really violates the whole idea of MVC, so I wouldn't advise it.
My suggestion would be to follow Fredrik Kalseth's advice and use jQuery UI or one of the many plugins. Telerik also has some good looking Open Source MVC Controls that are based on jQuery.
Most of the AJAX Control Toolkit is available in MVC-friendly javascript form off the MS AJAX CDN. These can be used using a jquery plug-in syntax as well.