473,396 Members | 1,693 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Sort table without round trip

H
I have to display a sortable list of columns(a table or so) - by click on the title of a column, the column would be the criteria to sort by
I know datagrid is very conveniant, but I want to save the round trip to the server(I don't want postback)
Is there other way to use ASP.NET server controls(maybe the datagrid itself) to have an easy databound from one hand and client sort from second
May be a technique that tranform a XSL on a datagrid result in the client

For now all I could think of, is call to response.write, that send string of XML to the client, like with traditinal asp, and transorm a different xsl via the client DOM,(xsl files that changed according to the sort field)

I would be glad to here better suggestion to save the round trip
If there aren't , I would be glad to be noted on a good article that explains how to implement the XML/XSL technique
thank
Nov 18 '05 #1
4 4399
You can cut out the "database requery" bit of the round trip by persisting the dataset with your records to a Session variable. Use a DataView on the correct Table in your DataSet and you can sort/filter away... Bind the DataView to your DataGrid rather than direct to the Table..

use

If Not IsPostback The
'query D
Els
'just reset your dataview on the dataset's tabl
'rebind your grid..
End I

OK, still a round trip but no database requery required... :

Not sure how you could affect the DataGrid WITHOUT a trip back to the server to run ASP.NET to reset the grid's properties as it IS a server-sid control... Would be interested to know any techniques you uncover :

al*****@yahoo.com
Nov 18 '05 #2
You can cut out the "database requery" bit of the round trip by persisting the dataset with your records to a Session variable. Use a DataView on the correct Table in your DataSet and you can sort/filter away... Bind the DataView to your DataGrid rather than direct to the Table..

use

If Not IsPostback The
'query D
Els
'just reset your dataview on the dataset's tabl
'rebind your grid..
End I

OK, still a round trip but no database requery required... :

Not sure how you could affect the DataGrid WITHOUT a trip back to the server to run ASP.NET to reset the grid's properties as it IS a server-sid control... Would be interested to know any techniques you uncover :

al*****@yahoo.com
Nov 18 '05 #3
When you say without round trip, do you mean no post back?

This can been done with an XML island, you can create XSLT from the island
and change the XML on the island (eg sort it) and you XSLT will change your
table.

try a google with XML ISLAND SORT as your search.

but I dont think ASP.NET has any controls out of the box that do this.

Steve

"Yanir" <an*******@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.com...
Hi
I have to display a sortable list of columns(a table or so) - by click on the title of a column, the column would be the criteria to sort by. I know datagrid is very conveniant, but I want to save the round trip to the server(I don't want postback). Is there other way to use ASP.NET server controls(maybe the datagrid itself) to have an easy databound from one hand and client sort from
second? May be a technique that tranform a XSL on a datagrid result in the client?

For now all I could think of, is call to response.write, that send string of XML to the client, like with traditinal asp, and transorm a different xsl
via the client DOM,(xsl files that changed according to the sort field)?
I would be glad to here better suggestion to save the round trip?
If there aren't , I would be glad to be noted on a good article that explains how to implement the XML/XSL technique. thanks

Nov 18 '05 #4
When you say without round trip, do you mean no post back?

This can been done with an XML island, you can create XSLT from the island
and change the XML on the island (eg sort it) and you XSLT will change your
table.

try a google with XML ISLAND SORT as your search.

but I dont think ASP.NET has any controls out of the box that do this.

Steve

"Yanir" <an*******@discussions.microsoft.com> wrote in message
news:C9**********************************@microsof t.com...
Hi
I have to display a sortable list of columns(a table or so) - by click on the title of a column, the column would be the criteria to sort by. I know datagrid is very conveniant, but I want to save the round trip to the server(I don't want postback). Is there other way to use ASP.NET server controls(maybe the datagrid itself) to have an easy databound from one hand and client sort from
second? May be a technique that tranform a XSL on a datagrid result in the client?

For now all I could think of, is call to response.write, that send string of XML to the client, like with traditinal asp, and transorm a different xsl
via the client DOM,(xsl files that changed according to the sort field)?
I would be glad to here better suggestion to save the round trip?
If there aren't , I would be glad to be noted on a good article that explains how to implement the XML/XSL technique. thanks

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Maria | last post by:
Hi I have a asp:table that I want to hold the values between postbacks. Hope some one knows how I can get that to work in an easy way. The table is loaded in runtime with different textboxes....
0
by: Yanir | last post by:
H I have to display a sortable list of columns(a table or so) - by click on the title of a column the column would be to criteria to sort by I know datagrid is very conveniant, but I want to save...
2
by: Yanir | last post by:
H I have to display a sortable list of columns(a table or so) - by click on the title of a column, the column would be the criteria to sort by I know datagrid is very conveniant, but I want to save...
2
by: Mike | last post by:
Hello, I have a web user control that contains a ListBox. I would like to display some information based on the double-clicking of the user on a ListBox's item. I was thinking about some code...
8
by: needin4mation | last post by:
I understand this is a asp.net group, but thought I would post this here for comments. I admit I have used this post in another group, but it has less traffic. Here's to hoping I'm just blind to...
11
by: Ron L | last post by:
I have a data table that lists a series of items in my database. In my user form, I want the user to be able to filter by a number of criteria (e.g. location, contract, date modified, etc). Other...
10
by: Steve Atkins | last post by:
I have a large table (potentially tens or hundreds of millions of rows) and I need to extract some number of these rows, defined by an integer primary key. So, the obvious answer is select *...
18
by: TORQUE | last post by:
Hi, Im wondering if anyone can help me with a problem. I have a form with more than 50 unbound fields. Some of the fields will be blank from time to time. This seems to be where im having...
7
by: Tony Girgenti | last post by:
Hello. I'm trying to undetrstand ASP.NET 2.0 and javascript. When i have a button and i click on it and i see the web broswer progress bar at the bottom do something, does that mean that there...
6
by: Jeff | last post by:
....still new to visual studio 2005 and vb.net I have a master page with a content placeholder. The content page has a table in the content placeholder (placed there via dragging from the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.