Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > HTML Intellisense for composite control (using datagrid)

Reply
Thread Tools

HTML Intellisense for composite control (using datagrid)

 
 
PiyushC
Guest
Posts: n/a
 
      10-26-2004
Hi,
I am developing a web composite control using datagrid, dropdown,
linkbuttons etc.
Its basically an extension to datagrid control to provide more
functionality.
The control is derived from webcontrol.
The control has a property "Columns", which is a columns property of
datagrid.
Its definition is as follows :

public DataGridColumnCollection Columns
{
get
{
EnsureChildControls();
return dg.Columns;
}
}

dg being the datagrid instace.

There are couple of problems I am facing.
1. I am not able to edit the Columns property using property window.
It shows ... against properties, but when I click it, it opens the
form with Add as disabled.
I tried to apply DatagridColumnsCollectionEditor to Editor attribute,
but in that case it gives error as "Specified cast is not valid." Is
it because I am not deriving control from datarid ?
2. Another problem is that, I donot get the intellisense for Columns
property in HTML view. I have added the xsd file for my control & it
works fine for other properties.
Also, I can add columns in HTML view w/o intellisense & it works fine
in runtime, but I get an error in HTML view as active schema doesnot
support this property.

Can anybody please help me out on these issues.
Thanks in advance for your help & sorry for such long post.

Piyush

PS : I searched through net, but unable to find the answer. I am
facing this problem since long time, please help me out on this one.
 
Reply With Quote
 
 
 
 
WALDO
Guest
Posts: n/a
 
      10-26-2004
This is just off the top of my head, but:

1. your property is ReadOnly. I'd be willing to bet that if you write
the set, that Add button would be enabled.



Sometimes the greatest solutions come from the simplest logic.
Being told "No" is merely the incentive to do it anyway.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
WALDO
Guest
Posts: n/a
 
      10-26-2004
2. & 3.
http://www.bluevisionsoftware.com/We...ails.aspx?Name
=WebFormsIntellisense



Sometimes the greatest solutions come from the simplest logic.
Being told "No" is merely the incentive to do it anyway.

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
PiyushC
Guest
Posts: n/a
 
      10-27-2004
Thanks WALDO for your replies.
1. The columns property of datagrid is readonly. It cannot have set
accessor.
2. I already got the Intellisense genrator. It works fine for all the
properties which are attributes. The problem is for Columns property
for which I use inner tag to define, same as datagrid. Again, if I
write Columns tag w/o using intellisense, it works fine & columns
property takes effect when I see it on a page. So I think the problem
is with XSD which is generated.


Regards,
Piyush
 
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
Composite vs non composite Controls Mike ASP .Net Web Controls 4 03-11-2005 05:47 AM
Losing Composite Control property that another Composite Control ... Chad ASP .Net Building Controls 0 02-01-2005 09:01 PM
Possible to create a composite control that has a child control that is a validator that validates the composite control itself? Jonathan Eric Miller ASP .Net Building Controls 2 07-22-2004 10:58 PM
Composite control with dynamic composite controls sleigh ASP .Net 1 02-12-2004 06:24 PM
Custom Control Intellisense in html design mode LuoJian ASP .Net Web Controls 0 08-08-2003 04:18 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57