PC Review


Reply
Thread Tools Rate Thread

Ajax: UpdatePanel to show/hide Gridview

 
 
Reinhard
Guest
Posts: n/a
 
      3rd Jun 2007
Hi,

Need some directions on Ajax, UpdatePanel and Gridview to achive the
following:

I like to show a Gridview with Data ONLY if the user is interested in
Details, but without a full page reload!
If the page loads, only a summary (eg. COUNT of recs) should be
displayed

Like:



static text
--------------- updatePanel Area
[show records (12) - click for Details]
-------------- end of updatePanel Area

static text





-----> if user clicks on "show records" the page should partially
update to display:


static text
--------------- updatePanel Area
[table header - click to Hide Details]
record 1
record 2
record 3
record...
.......
-------------- end of updatePanel Area

static text


A) if the page loads initially, I do not want to hit the database,
except for a fast ( count(*) ) - stored proc. to show #of records
ONLY if the user is interested, I want to execute the full SQL to show
details.

B) if no details are shown, I do not want the Gridview-object to be
instantiated for obvious performance reasons, but show a simple Label
or Hyperlink for (show details)



Anyone have such a component, or can point a way to go?

Thanks,
Reinhard

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How to focus a cell of a gridview inside an UpdatePanel (AJAX) foolmelon@hotmail.com Microsoft ASP .NET 4 18th Jun 2008 07:50 PM
ajax problem when drop gridview into updatepanel Cirene Microsoft ASP .NET 1 16th May 2008 11:06 PM
GridView showing twice on AJAX UpdatePanel =?iso-8859-1?B?R2VhcvNpZA==?= Microsoft Dot NET 1 8th Nov 2007 07:39 PM
Show and Hide embedded GridView David C Microsoft ASP .NET 1 29th Sep 2007 01:16 AM
ASP.NET AJAX: problems with UpdatePanel, GridView & RowCommand in Firefox jrnail23@yahoo.com Microsoft ASP .NET 0 2nd Aug 2007 12:06 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:03 AM.