Office2007 skin

ImageGallery - Binding to Telerik ClientDataSource

Main Image

Item 1 of 0
Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

This demo illustrates how you could easily bind the RadImageGallery to Telerik ClientDataSource. The functionality is available out of the box by using the ClientDataSourceID property.

In this demo the RadClientDataSource control is retrieving the data from a WebService. Also the following properties are set for the RadImageGallery:

  • DataImageField is set to the field containing the image URL.
  • DataThumbnailField is set to the field containing the thumbnail URL. If this property is not set the thumbnails will be generated by the RadImageGallery.
  • DataTitleField is set to the field containing the image title.
  • DefaultCS.aspx
<%@ Page Title="" Language="C#"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <style type="text/css">
        div.RadForm.rfdHeading .RadImageGallery h4, div.RadForm.rfdHeading .RadImageGallery h5 {
            border-bottom: none;

        div.RadForm.rfdHeading .RadImageGallery_Silk h4, div.RadForm.rfdHeading .RadImageGallery_Silk h5,
        div.RadForm.rfdHeading .RadImageGallery_Default h4, div.RadForm.rfdHeading .RadImageGallery_Default h5 {
            color: #333333;
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container size-wide">
        <telerik:RadImageGallery RenderMode="Lightweight" runat="server" ID="RadImageGallery1" Height="600px" Width="800px"
            DataImageField="ImageUrl" DataThumbnailField="ThumbnailUrl" DataTitleField="Title">
                    <NextImagesAnimation Type="VerticalSlide" />
                    <PrevImagesAnimation Type="VerticalSlide" />

    <telerik:RadClientDataSource runat="server" ID="RadClientDataSource1">
                <Select Url="ImagesService.asmx/GetImages" RequestType="Post" DataType="JSON" ContentType="application/json" />
        <Schema DataName="d">

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?