General Information
.NET Subscription
Desktop
Web
Controls and Extensions
Mainteinance Mode
Enterprise and Analytic Tools
Quality Assurance and Productivity
Frameworks and Libraries
All docs
V19.2
General Information
.NET Subscription
Desktop
Web
Controls and Extensions
Mainteinance Mode
Enterprise and Analytic Tools
Quality Assurance and Productivity
Frameworks and Libraries
19.2
19.1
18.2
18.1
17.2
BootstrapCallbackPanel.ContentCollection Property
Provides access to a collection of the Callback Panel's content controls.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v19.2.dll
Declaration
[Browsable(false)]
[PersistenceMode(PersistenceMode.InnerProperty)]
public ContentControlCollection ContentCollection { get; }
<Browsable(False)>
<PersistenceMode(PersistenceMode.InnerProperty)>
Public ReadOnly Property ContentCollection As ContentControlCollection
Property Value
Type | Description |
---|---|
ContentControlCollection | A ContentControlCollection object that is a collection of content controls. |
Examples
This example demonstrates the basic functionality of the Callback Panel.
- Initialize a new instance of the BootstrapCallbackPanel class.
- Add required controls to the BootstrapCallbackPanel.ContentCollection array.
- Use the client BootstrapClientCallbackPanel.PerformCallback method to initiate a callback. Handle the BootstrapCallbackPanel.Callback event to process a callback on the server side.
The image below shows the result:
protected void CallbackPanel_Callback(object sender, DevExpress.Web.CallbackEventArgsBase e) {
if(!string.IsNullOrEmpty(e.Parameter))
passedInfo.InnerText = "Passed information: \"" + e.Parameter + "\"";
}
function onUpdateClick(s, e) {
callbackPanel.PerformCallback("caused on the button click");
}
<dx:BootstrapCallbackPanel runat="server" ClientInstanceName="callbackPanel" OnCallback="CallbackPanel_Callback">
<ContentCollection>
<dx:ContentControl>
<div class="card">
<div class="card-body">
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse sem lorem, rutrum at tincidunt aliquam, vulputate sit amet tellus. In hac habitasse platea dictumst. Morbi in dui a massa volutpat tristique. Aenean ultrices, elit ac commodo vestibulum, nisl neque pharetra est, id egestas neque leo dignissim augue. Vestibulum sodales metus at est maximus dictum. Quisque cursus felis id nisi auctor, volutpat imperdiet neque feugiat. Sed aliquet elit sem, ut vulputate lectus ultricies sit amet.</p>
<p><span class="badge badge-info"><%= IsCallback ? "The content was updated at " + DateTime.Now.ToLongTimeString() : "" %></span></p>
<small runat="server" id="passedInfo"></small>
</div>
</div>
</dx:ContentControl>
</ContentCollection>
</dx:BootstrapCallbackPanel>
<dx:BootstrapButton Text="Update" AutoPostBack="false" UseSubmitBehavior="false" runat="server">
<ClientSideEvents Click="onUpdateClick" />
</dx:BootstrapButton>
See Also
Feedback