Custom data types Options
imayat12
Posted: Wednesday, June 11, 2008 2:35:15 PM

Rank: Addict

Joined: 7/19/2006
Posts: 659
Location: Preston, UK
Guys,

I have created custom datatypes in the past using the old method with the three classes DataEditor, DataType, PreValueEditor.

On Tim's blog i came across userControlGrapper.IUsercontrolDataEditor way of doing things. My question is what are the advantages / disadvantages between the 2 methods?

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
Petr Snobelt
Posted: Wednesday, June 11, 2008 2:38:08 PM
Rank: Aficionado

Joined: 10/2/2007
Posts: 166
Location: Czech Republic
Hallo Ismail,
Is there any tutorial or sample how to create new datatype with old method ?

I try new one, but I cannot compare ...
Simm
Posted: Wednesday, June 11, 2008 2:47:25 PM

Rank: Fanatic

Joined: 7/22/2006
Posts: 259
Location: Randers, Denmark
Hi Petr,

This piece of code made by Christian Palm uses the old method of making user controls
http://www.cpalm.dk/blog/2006/03/29/multiplepagepickerviasource.aspx

Ismail: The old method is slightly more complex and require more coding, but deployment is a little bit easier IMHO

Best Regards
Simon

Level 0 uncertified ;)
tim
Posted: Wednesday, June 11, 2008 3:10:22 PM

Rank: Addict

Joined: 2/19/2007
Posts: 766
Location: Belgium
Hi Ismail,

Using the wrapper is a fast way of doing it, but it has some limitation, most important one being you cannot have parameters on your datatype ( in the developer section )

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
imayat12
Posted: Wednesday, June 11, 2008 3:18:09 PM

Rank: Addict

Joined: 7/19/2006
Posts: 659
Location: Preston, UK
Guys,

Thanks for the reply. I thought the parameter thing was the main thing but just needed to make sure.

I suppose one way round configuration issues would to have its own config file not as slick as passing in values directly but i really like the ease with which you can create your own datatype using userControlGrapper.IUsercontrolDataEditor

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
tim
Posted: Wednesday, June 11, 2008 3:45:51 PM

Rank: Addict

Joined: 2/19/2007
Posts: 766
Location: Belgium
No prob Ismail

@Petr
I'm planning on writting a post explaining the three classes method.

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
Petr Snobelt
Posted: Friday, June 13, 2008 9:13:44 AM
Rank: Aficionado

Joined: 10/2/2007
Posts: 166
Location: Czech Republic
tim wrote:
@Petr
I'm planning on writting a post explaining the three classes method.

Super :-)
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.