Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > design time support for collections

Reply
Thread Tools

design time support for collections

 
 
Pieter
Guest
Posts: n/a
 
      06-09-2005
Hi,

I have a servercontrol that contains a list of buttons. What I would like to
do is to create property on my WebControl where I can edit the buttons
(create, delete, set the order, set the name of each button, backgroundcolor
of each button). What is working is that the property is visible and it
contains the value "collection"

The problem is when i click to manipulate the collection i get the "Object
Collection Editor" where it is only possible to edit system objects and not
my buttons.

Anyone has any idea what I'm doing wrong?

Pieter


 
Reply With Quote
 
 
 
 
lisa@starways.net
Guest
Posts: n/a
 
      06-10-2005
The default collection editor will only work if there is an Item
property called Item in the collection. Also, the collection has to
implement IList. If you're inheriting from CollectionBase, that's
already included. If you're inheriting from ControlCollection, you
need to make sure you do the implementation yourself.

Could you post the code for your collection class and for the
collection's property in the main control?

Lisa


Pieter wrote:
> Hi,
>
> I have a servercontrol that contains a list of buttons. What I would like to
> do is to create property on my WebControl where I can edit the buttons
> (create, delete, set the order, set the name of each button, backgroundcolor
> of each button). What is working is that the property is visible and it
> contains the value "collection"
>
> The problem is when i click to manipulate the collection i get the "Object
> Collection Editor" where it is only possible to edit system objects and not
> my buttons.
>
> Anyone has any idea what I'm doing wrong?
>
> Pieter


 
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
PersistChildrenAttribute class and collections in design-time prob A.J. van der Burg ASP .Net Building Controls 1 02-08-2005 04:26 PM
design question about collections, or how to accomplish glunk Java 4 06-30-2004 06:31 PM
Should Win32Ole automatically support enumerable collections? Bret Pettichord Ruby 0 05-03-2004 03:53 PM
Sorting collections based on nested collections Doug Poland Java 9 09-27-2003 10:46 PM
InnerProperty Persistance for Collections containing other Collections mutex ASP .Net Building Controls 0 07-27-2003 02:45 PM



Advertisments