Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Extending a 3rd party control

Reply
Thread Tools

Extending a 3rd party control

 
 
Randy
Guest
Posts: n/a
 
      12-27-2004
I'm trying to extend the Infragistics Webcombo. I create my own server
control and set all
the properties that I want to standardize on in the constructor. However,
drag my control onto the design view of my aspx page, it puts all
the original properties in the html. For example, I want all my drop
downs to be 80px wide. So I want to
default this in the constructor but allow developers to override if need be.
However, now the html properties have a value of 200px.

Is there anyway to tell the server control to not pull in properties into
the html?

-Randy


 
Reply With Quote
 
 
 
 
Rico
Guest
Posts: n/a
 
      12-29-2004
Randy,

I have been working the several past few days with Infragistics, and
extending two of their controls in my own composite control. I have not
experienced this problem though, however i think that you are doing
something wrong when you're rendering the controls, or that you define
your properties incorrectly.
This is an example how i define a property:

<Bindable(True), Category("MinTabb"), DefaultValue(""),
Description("tb_Tree_itemtype.intTypeId will be equaled to this
integer.")> Public Property [GetWhereTypeIdEquals]() As Integer
Get
Return Me._GetWhereTypeIdEquals
End Get
Set(ByVal Value As Integer)
Me._GetWhereTypeIdEquals = Value
End Set
End Property

And later in:
Protected Overrides Sub CreateChildControls()
'i use the property (if it is set) like this:
If me.GetWhereGroupIdEquals <> 0 then '.... you get the idea ..

 
Reply With Quote
 
 
 
 
Randy
Guest
Posts: n/a
 
      12-29-2004
Rico,

I'm not even adding my own properties. I'm only trying to set defaults for
the standard properties of the webcombo control. e.g. in the constructor
I'll do something like this.

this.Width = 50;


However, when I add the control to my page, it sets the width property in
the html to 200, nullifying my constructor change.

-Randy


"Rico" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> Randy,
>
> I have been working the several past few days with Infragistics, and
> extending two of their controls in my own composite control. I have not
> experienced this problem though, however i think that you are doing
> something wrong when you're rendering the controls, or that you define
> your properties incorrectly.
> This is an example how i define a property:
>
> <Bindable(True), Category("MinTabb"), DefaultValue(""),
> Description("tb_Tree_itemtype.intTypeId will be equaled to this
> integer.")> Public Property [GetWhereTypeIdEquals]() As Integer
> Get
> Return Me._GetWhereTypeIdEquals
> End Get
> Set(ByVal Value As Integer)
> Me._GetWhereTypeIdEquals = Value
> End Set
> End Property
>
> And later in:
> Protected Overrides Sub CreateChildControls()
> 'i use the property (if it is set) like this:
> If me.GetWhereGroupIdEquals <> 0 then '.... you get the idea ..
>



 
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
Weekly view for Calendar control or 3rd Party component =?Utf-8?B?QnJlbmRlbiBCaXhsZXI=?= ASP .Net 4 10-17-2007 05:41 AM
Is there a 3rd party text editor control that is approx as scripable as Word? sandal ASP .Net 8 10-16-2007 12:22 AM
3rd party AJAX tab control perplexed ASP .Net 1 01-30-2007 06:48 PM
Embed 3rd Party Server Control into my Custom Web Server Control Tim ASP .Net Web Controls 0 04-15-2005 03:13 PM
Any 3rd party Grid control in dotnet BestNews ASP .Net 4 08-26-2003 07:05 PM



Advertisments