Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Create a custom placeholder that has several placeholder objects?

0 views
Skip to first unread message

Rui

unread,
Nov 22, 2006, 8:39:55 AM11/22/06
to
Hi all,

Is it possible to create a custom placeholder that holds several
placeholder objects?

What i am trying to do is create a placeholder that will hold several
htmlplaceholders.
I want to do this because i want several objects of this placeholder to
be inserted in a template.
Ex:
custom placeholder: 10 htmlplaceholders
template: 20 custom placeholders

I'm not quite sure if this is possible, or if there is a more adequate
way of doing it.

Thank you,
Rui

Stefan Goßner [MSFT]

unread,
Nov 22, 2006, 9:15:15 AM11/22/06
to
Hi Rui,

no this is not possible. Every placeholder control can only bind to exactly
one placeholder object.
Sure you could write the content to other placeholder objects in the
placeholder control but this is not the same as binding to more than one
placeholder object.

I would recommend to use an XmlPlaceholder instead. Here you can store
content from multiple different input fields in a structured manner.

Cheers,
Stefan

"Rui" <ga...@hotmail.com> wrote in message
news:1164202795.1...@f16g2000cwb.googlegroups.com...

Rui

unread,
Nov 22, 2006, 10:00:50 AM11/22/06
to
Hi Stefan,

Thank you for your answer.
How can i use the radTextEditor placeholder inside an xmlPlaceholder?
Because the client is expecting to use the teleriak radtextEditor.

Thanks,
Rui


Stefan Goßner [MSFT] escreveu:

Stefan Goßner [MSFT]

unread,
Nov 22, 2006, 10:16:58 AM11/22/06
to
Hi Rui,

you mean how to use the radTextEditor placeholder control inside a custom
placeholder control, right?
XmlPlaceholder is not something you can modify. Only a custom placeholder
control can be customized.
Or you can create a custom placeholder definition based on the
XmlPlaceholder Definition.

I'm not sure if the Telerik Control allows to be used without binding it to
a placeholder definition.
Please check back with Telerik if this is possible.
It will definitly not work for the Html Placeholder Control.

Cheers,
Stefan

"Rui" <ga...@hotmail.com> wrote in message

news:1164207650.6...@m73g2000cwd.googlegroups.com...

Rui

unread,
Nov 22, 2006, 11:04:54 AM11/22/06
to
Hi Stefan,

I'm sorry, but i'm a bit confused.
Can i describe what i want to do? Maybe you have a better solution for
it.

I need to do a contacts insertion page, were all of the company country
contacts are going to be inserted. This means that i will have 20
contact details in one template. Each contact detail has 10 fields wich
must use the teleriak text control to insert the content.
I could just specify all the teleriak placeholders in the template but
i think it would be a bit messy (200 placeholders).

I wanted to agregate all contact details within one control. What do
you think is the best way to do it?

Thank you,

Stefan Goßner [MSFT]

unread,
Nov 22, 2006, 12:10:50 PM11/22/06
to
Hi Rui,

hard to say - 200 input fields on a single page are really heavy.
Is this really necessary?

Cheers,
Stefan

"Rui" <ga...@hotmail.com> wrote in message

news:1164211494....@j44g2000cwa.googlegroups.com...

Rui

unread,
Nov 23, 2006, 4:00:50 AM11/23/06
to
Hi Stefan,

Yes, you're right, specially using the teleriak rad editor. I think i
will do a template to insert the contact details, put it in a specified
channel, and then iterate through the postings.
This sound better, right?

markcz

unread,
Nov 23, 2006, 4:15:24 AM11/23/06
to
Hallo Rui,
If you need to insert dynamic count of edited controls on page you have
only one way when you need to store them into cms - create a custom
placeholder. But, then you need to solve editing and for example using
xmlPlaceholder and serialize several controls (dynamic array) into it
with XmlSerializer.
Then, when you need to edit this. RadEditor also supports direct
editing within its Asp.NET version, Use RadEditor control instead of
RadEditorPlaceholderControl and you need to solve saving/updating.
Check Telerik documentation of Asp.net RadEditor control.

Martin

Rui napsal:

Stefan Goßner [MSFT]

unread,
Nov 23, 2006, 4:25:03 AM11/23/06
to
Yes, absolutly!

Cheers,
Stefan

"Rui" <ga...@hotmail.com> wrote in message

news:1164272450....@l12g2000cwl.googlegroups.com...

0 new messages