PC Review


Reply
Thread Tools Rate Thread

Adding AJAX Control Toolkit CollapsiblePanelExtender programmatically

 
 
Jay
Guest
Posts: n/a
 
      30th Nov 2009
I'd like to add an AJAX Control Toolkit extender, the Collapsible
Panel, to a GridView row programmatically.

My justification is this:

I have rows that show stores. Some of the rows are
chain businesses with multiple branch locations.
Others are independent stores with only one location.
For the chain stores, I need to expand the
row, at the user's request, to show branch
locations. But not on the independents
where the location is already shown
on the same line as the business name.

Make sense?

So, the CollapsiblePanelExtender with the
GridView inside a Panel tag makes sense.
But I only want to populate certain rows with
the CollapsiblePanel. I'll do this in C# in
a handler for the GridView_RowDataBound
event.

Here's the question:

How do I *create* the extender control in
C#. Of course I've added a reference to the
AjaxControlToolkit.dll, but I don't know what
Using directive to use with it.

Of course I'll use a Javascript routine to
expand and collapse the panel. That's not
the question. The question is the C# stuff!

Anybody know the answer? And I apologize if
my question seems clueless...

Jay
 
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
AJAX Control Toolkit SeePee Microsoft ASP .NET 3 12th Jul 2010 06:48 AM
ajax control toolkit JohnE Microsoft ASP .NET 3 6th Feb 2010 07:13 PM
asp.net 2.0 ajax control toolkit richard Microsoft ASP .NET 1 14th Sep 2008 09:33 PM
Problem adding AJAX Control Toolkit to VWD 2008 rudi2218@hotmail.com Microsoft ASP .NET 3 28th Feb 2008 04:48 PM
AJAX Control Toolkit GeoffreyD Microsoft ASP .NET 3 11th Dec 2007 01:39 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:14 AM.