How do I mix Telerik RadControls with AjaxControlToolkit controls? - asp.net

I am working on a page that primarily uses Telerik RadControls, and thus uses the RadScriptManager control. However, I need to add some controls that use AjaxControlToolkit to the page, but since I cannot have two ScriptManagers on one page, so how would I do this?

You are correct in that you cannot have two script managers on the same page.
However Telerik can use the standard Microsoft ScriptManager, and your Microsoft controls can also use the Telerik ScriptManager. You just have to choose which one you prefer. (I suspect you should try Telerik to start with)

Related

what is infragistics netadvantage?

What is infragistics netadvantage ? What is it basically related for ?
Netadvantage is the name for the Infragistics third party controls for .Net applications. They have ASP.Net, jQuery, Winforms, Silverlight and WPF controls. They are much like DevExpress, Telerik or ComponentOne.
I think specifically, Netadvantage is the name of one of there packages which contains licenses for a number of (or most of) the controls mentioned above.
NetAdvantage for ASP.NET gives you a set of UX controls and components that saves you a lot of time coding.
You can check its samples to see what controls that are missing in VisualStudio`s "Default" controls are available.

ASP.NET (webforms): Using with MINIMAL server controls and substituting with JQUERY?

I am currently working with ASP.NET and the person who designed the form has used all Server Controls for things like TextBoxes and Dropdowns etc when really they are not providing postbacks.. Some of the dropdowns and textboxes are values that I need only in jQuery so as far as I can see there are no drawbacks to coverting these controls to standard html controls rather than ASP.NET server controls?
I suppose I will need to continue to have my GetDataGrid button as a server control because I will need it to postback (and receive PageLoad events etc - all asp.net events) to update the GridView? Or would it be possible to use the GridView (ASP.NET server control) from a Webmethod and call it via Jquery?
Of course in my webmethod I would need to the instance of the gridview to add the datasource - but I don't see how this would be possible without being in the ASP.NET events - or maybe I wrong?
The other thing I thought of was changing the GetGridView button to a standard HTML and calling the javascript postback from the client click event?? This way it would do a real postback and I would end up in Page_load.
Taking everything into effect i don't want to the change the GridView asp.net control as it funcions well as an asp.net server control but i am unsure how i would do this.
I remember a document being available that said "how to use asp.net webforms without server controls" but i can't seem to find it. I suppose using webforms like asp.net MVC - but i can't change the project to MVC - its out of my control.
I would love to hear some feedback with regards to how to do this or comments etc.
I find ASP.NET webforms to inject a lot of code smell into pages - I am using .NET 3.5 so a lot of the output is with tables etc...
If you use Request.Form["..."] then you can get the information which was filled in in standard html input fields.
Instead of keep on using the GridView control I suggest you take a look at either jqGrid or the new templating system that Microsoft put into place for jQuery (currently a plugin but expected to be part of core jQuery from version 1.5 on). These can bound to json which can be retrieved from a webmethod or pagemethod call to fill up the template with data.
Also i don't think its possible from asp.net (code behind) to receive values of an html >control without it having runat=server.
Use webmethods.
Set a client event (like 'onchange') on the html control and then in javascript function called when the event is fired you can use PageMethods to send your data to the code behind.
Some thoughts...
The GridView can't be created in a WebMethod and even if there was a way to get that to work, you'd be better off going with a genuine client side grid. As that's not an option, I don't think there is too much point in trying to make any major changes to your existing pages.
ViewState
Changing the textboxes, buttons etc to HTML versions, would gain you a little bit in reduced Viewstate size but add a bit of complexity in how you handle interactions with the page. You can add runat="server" to HTML controls which will give you control over what is rendered and still have access to the control on the server side.
.Net 4 gives you far more control over viewstate but unfortunately in 3.5 its not as easy.
The GridViews
You could wrap the GridViews in UpdatePanels. That's a 'cheap' way to add some interactivity to your pages although you won't be gaining anything in terms of performance.
It's also still possible to manipulate the Gridview using jQuery on the client-side. There a lots of tutorials, blog posts etc explaining how to do this on the Internet.
MVC with Webforms
Its also possible to mix ASP.Net MVC with Webforms in the same website. As it sounds like you are familiar weith MVC, you might want to consider this approach for any new pages. Here's a blog post explaining how to do this.
Update:
Here's a more recent article by Scott Hanselman on how to use MVC with an existing Webforms application.

TabStrip control for ASP.NET

Is this still available? I am unable to find it when I try to add it to my Toolbox.
It is not a default asp.net Control as far as I know, maybe the control you're looking for is a third party control?
The Asp.net Ajax Control Toolkit has Tabs, that might do what you want.

Can I use both DevExpress and Telerik on the same web page

Will there be any problems if I use DevExpress controls and Telerik controls on the same web page. Imagine I am nesting them insider one another.
I am wondering if they would conflict each other during AJAX calls.
Yes you can use both of them. There is no conflict. Because web.config has different arguments about these controls.
Maybe page is much more slower. Devexpress is running slowly.

How to create an ASP.NET Listview with draggable column widths?

In windows applications we can change the ListView's column width by just dragging the header of the column. How can I done that in a ASP.NET ListView?
ASP.NET listview does not support that feature. You can make your own implementation using a combination of ASP.NET and Javascript (or ASP.NET AJAX or JQuery).
I would recommend looking at the Telerik RadControls for ASP.NET.
Specifically check out the demos for:
Grid
ListView
DevExpress also makes some great control packages as well that might suit your needs. I haven't come across very many great 'free' ajax enabled grid controls that I would recommend unfortunately.
You can also look on the ASP.NET site for a list of controls.

Resources