New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

Maps Integration

empty
Drop Filter Fields Here
QuantityCountry
Category
ArgentinaAustriaBelgiumBrazilCanadaDenmarkFinlandFranceGermanyIrelandItalyMexicoNorwayPolandPortugalSpainSwedenSwitzerlandUKUSAVenezuelaGrand Total
7.0016.008.0024.008.005.005.0024.0036.004.005.0011.004.003.004.004.0018.003.0014.0037.0016.00256.00
2.0010.004.0011.005.006.003.009.0019.004.002.004.001.002.004.002.004.003.003.0020.004.00122.00
8.0012.009.0026.0012.006.006.0024.0047.002.008.005.002.002.003.008.0011.006.0015.0047.0014.00273.00
6.0021.007.0027.0013.002.008.0016.0051.007.008.0013.00 1.002.002.008.008.0025.0042.0015.00282.00
1.0013.007.0014.009.001.005.0016.0018.002.005.003.00  4.007.004.006.0014.0026.009.00164.00
 9.003.0011.002.003.006.009.0017.004.002.005.001.001.001.007.009.002.007.0027.004.00130.00
3.005.003.004.002.002.004.007.0011.002.003.004.00 2.00 1.006.002.005.0010.006.0082.00
5.007.004.0031.004.007.005.0023.0036.008.008.004.003.00  3.0012.009.0014.0038.0020.00241.00
32.0093.0045.00148.0055.0032.0042.00128.00235.0033.0041.0049.0011.0011.0018.0034.0072.0039.0097.00247.0088.001550.00
Beverages
Condiments
Confections
Dairy Products
Grains/Cereals
Meat/Poultry
Produce
Seafood
Grand Total

You could take a look at the map and how the pivot data grand total cell values are extracted in the Google Maps Markers Tooltips.

The purpose of this demo is to show how RadPivotGrid control could easily be integrated with any external framework, library or control. The showcase above integrates the famous Google Maps together with Telerik's PivotGrid control.

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • Scripts.js
  • Styles.css
<%@ Page Language="vb" AutoEventWireup="false" CodeFile="DefaultVB.aspx.vb" Inherits="Telerik.PivotGrid.Examples.DragDropFields.DefaultVB" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="Stylesheet" type="text/css" href="Styles.css" />
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB9AGdrkxDdrPBf3IGTmXVsWQ6iE-ARAJg&amp;sensor=false"></script>
    <script type="text/javascript" src="scripts.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
<div class="demo-container no-bg">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadPivotGrid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadPivotGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="HiddenFieldCountries" />
                    <telerik:AjaxUpdatedControl ControlID="HiddenFieldData" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadPivotGrid RenderMode="Lightweight" runat="server" ID="RadPivotGrid1" OnNeedDataSource="RadPivotGrid1_NeedDataSource"
        AllowSorting="true" AllowPaging="true"
        OnCellDataBound="RadPivotGrid1_CellDataBound" EnableToolTips="true">
        <Fields>
            <telerik:PivotGridColumnField DataField="Country"></telerik:PivotGridColumnField>
            <telerik:PivotGridAggregateField DataField="Quantity" Caption="Quantity" UniqueName="Quantity"
                Aggregate="Count" DataFormatString="{0:F2}">
            </telerik:PivotGridAggregateField>
            <telerik:PivotGridRowField DataField="Category" Caption="Category" UniqueName="Category"
                DataFormatString="{0:F2}">
            </telerik:PivotGridRowField>
        </Fields>
    </telerik:RadPivotGrid>
    <br />
    <div id="map"></div>
    <asp:HiddenField ID="HiddenFieldCountries" runat="server" />
    <asp:HiddenField ID="HiddenFieldData" runat="server" />
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance