You can use custom template to create inline content and header section in WebExpander.
You can also use IFrame to create content in WebExpander.
This topic will show you how to use WebExpander with inline and IFrame content.
To use WebExpander with inline content
- Right-click on WebExpander control and choose Properties.
- Go to ItemCollection and click the collection button.
- Add an item. Set HeaderContentMode to Inline
and ContentType to Inline.
- Right-click on WebExpander control and choose Edit Template >> WebExpander1_item0.
WebExpander1_item0 is the default name when creating the 1st item.
- Inside content template, you can fill with any content you want. Right-click on
the content template and choose End Template Editing to apply the
settings.
- Run the project.
|
ItemSettings property is applicable if user wish to apply this setting
to all items in WebExpander.
|
To use WebExpander with IFrame content
- Right-click on WebExpander control and choose Properties.
- Go to ItemCollection and click the collection button.
- Add an item. Set ContentType to IFrame.
- Set ContentURL to any content you want to display.
- Run the project.