Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Sort table without round trip

Reply
Thread Tools

Sort table without round trip

 
 
=?Utf-8?B?WWFuaXI=?=
Guest
Posts: n/a
 
      04-06-2004
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


 
Reply With Quote
 
 
 
 
=?Utf-8?B?YWxhc3Bpbg==?=
Guest
Posts: n/a
 
      04-06-2004
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 :

http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Steve Drake
Guest
Posts: n/a
 
      04-06-2004
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" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ajax makes a round trip doesn't it? needin4mation@gmail.com ASP .Net 8 10-08-2005 03:29 PM
The round-trip delay in communicating with the host riyadhb2000@yahoo.com Cisco 0 05-11-2005 05:57 AM
Datagrid Paging without Server round trip Rathtap ASP .Net 2 08-24-2004 12:54 PM
all cookies disappear after round trip to client Peter Row ASP .Net 1 11-26-2003 12:28 PM
E3 round trip delay vsakel Cisco 2 10-25-2003 09:22 AM



Advertisments