473,387 Members | 1,687 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,387 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 4398
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.