Draggable Columns in ASP.NET GridView - asp.net

Is there any open source that extends ASP.NET GridView, which allows Column order to be changed after it's rendered, raises a server side event when a Column is Dragged & Dopped ? I should be able to do this myself. I am wondering If there's any already.
Also, am just curious How long would it take for you to get this feature implemented.Just to know where I stand.

The GridView in .NET 3.0+ supports this feature, are you tied to an earlier release?

Component Art's grid has this functionality, but it s not open source

try jquery based flexigrid

Related

ASP.NET drag and drop between 2 listboxes

I have two listboxes on my webpage each containing values of a database.
I want to drag one item from listbox1 to listbox2, and then the program should save the new values of listbox2 in the database.
I have no idea how to do that... any help is welcome!
How should I start? I'd like to do it using jQuery...
maybe with using the jQuery UI Droppable plugin?
Has anybody a decent tutorial is how to do this?
Thanks in advance!
You could use Telerik's controls for ASP.NET MVC.
They have a treeview control with built-in support for drag and drop. If you want a flat list, don't introduce any children for the treeview. A demo can be found here:
http://demos.telerik.com/aspnet-mvc/treeview/draganddrop
They use jQuery behind the scenes.
If you want to create it yourself, please check out the following video by Chris Pels:
http://msdn.microsoft.com/en-us/scriptjunkie/ff698290
He explains how to build drag & drop functionality using the jQuery and jQueryUI libraries. This should get you started.

asp.net datagrid

I want a asp.net datagrid with client side selection and dockable in pages and custom rightclick support.
cau anyone help me?
You will need to add javascript in case to make the table interactive with user actions
i prefer to use jQuery plugins to able you to do that. just create css classes and assign them in the datagrid columns then use jQuery to add the right click support and dockable rows.
If you have the budget Telerik RadGrid can do what you want and more. (You will also need RadDock for docking - they all are part of RadControls.)

Ajax enabled sorting and paging on grid in ASP.NET 3.5

Is there any good solution for ajax enabled Grid with pageing and sorting which only brings the required data from database? I mean it should only bring the data from the database which is to be displayed on the particular page number of the grid.
I looked at this. It looks good. But I just thought if anyone has created something better using Google's or Yahoo's javascript library or using any good features of asp.net 3.5.
I'm replying my own question.
I found Ajax Data Controls as updated version of what I had specified in my question. Still I will not mark it as answer and will wait for better answer.
If you are using a datasource control (SqlDataSource, LinqDataSource etc) this would be done automatically (retrieving only the current page of data). To make paging and sorting ajax-enabled wrap the grid inside an UpdatePanel control.
I used devexpress grid. It has sorting, grouping and paging. It is not perfect one but looks nice and easy to use.

Ajax in existing asp .net project

I have a web page devoloped in visual studio 2008.
I have 4 dropdowns and a repeater in the page.based on the selection(search criteria) from the dropdowns the repeater value will change.
and one dropdown selection will bind values to the other dropdown also.
Since the page is causing a lot of postback we decided to implement ajax here.
I am yet to learn ajax.
Can anyone tell what is the best way to do this .which ajax control replace dropdowns?
i have already server side code written on all dropdowns.
Please give me a good solution which i can implement in less time and reuse my code.
One more update: i have a master page used in the project.
I am using update panel of ajax which does not work if i use master page.
(That means all the dropdown controls and repeater i put it in update panel.But still page postback occurs.)
In a normal page(without master page) it works? why is this happening?
Thanks
SNA
You are able to use UpdatePanel and place dropdowns inside it.
Your solution will depend on the AJAX framework you choose, but here are cascading dropdown examples in ASP.NET AJAX and jQuery
If your main reason for using AJAX is to remove the number of postbacks you are getting, then I would recommend against using Microsoft's built in solution, e.g updatepanels.
The learning curve will be higher but learn to use jQuery, maybe with a little help from jTemplate to help you build your drop downs on the page.
Using updatepanels will not reduce your postbacks as behind the scenes asp.net is doing a full page life-cycle, sending all content back to your client but only updating the update panel. jQuery will be far more efficient. (and the reason I use it!!)
Update
If you don't believe me, see... Why Update Panels are dangerous
Update #2
If you don't want to go the whole way of learning Ajax just yet (although I'd recommend it) you could always pre-load your page with all the possible drop down combinations and then swap them using javascript / javascript + jQuery.
Here is one example of how you may do it -- use jQuery for dependent drop down combos
Using this method you are more likely to be able to save the code you've already written to work out the drop down options.

ASP.NET message box

I am looking for a custom control which could enable me to call message of following type.
http://extjs.com/deploy/dev/examples/message-box/msg-box.html
Is there a control which function like a .NET desktop application messagebox?
I know, exactly similar may not be possible but main features I am looking for here is returning value of clicked button and custom value entered by user in code behind.
I have also started working on it myself, but hardly any luck so far.. any direction in this case will also be very useful.
There is a good tutorial which could help:
Create MessageBox user control using ASP.NET and CSS
And here combining it with the AjaxControlToolkit:
ASP.NET Popup Message Box User Control
I hope this helps!
Have you looked at the AJAX Toolkit? It doesn't do all the things you want, but it should be too hard to the extender and controls needed into a CustomControl and create your own DLL.
use the namespace "System.Windows.Forms" by adding the reference to the solution explorer

Resources