Get Tile Badge Value Using JavaScript

3 posts, 1 answers
  1. Amigo
    Amigo avatar
    8 posts
    Member since:
    Feb 2014

    Posted 11 Feb 2014 Link to this post

    Hi All. How Can i get Tile Badge Value using javascript.???
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 11 Feb 2014 in reply to Amigo Link to this post

    Hi Amigo,

    Please have a look into the following JavaScript to get the Badge Value of RadTileList.

    ASPX:
    <telerik:RadTileList ID="RadTileList1" runat="server" OnClientLoad="Load">
        <Groups>
            <telerik:TileGroup>
                <telerik:RadImageAndTextTile runat="server" Name="Tile1">
                    <Title Text="test" />
                    <Badge Value="10" />
                </telerik:RadImageAndTextTile>
            </telerik:TileGroup>
        </Groups>
    </telerik:RadTileList>

    JavaScript:
    <script type="text/javascript">
        function Load(sender, args) {
            alert(sender.get_tileByName("Tile1").get_badgeData().value);
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Amigo
    Amigo avatar
    8 posts
    Member since:
    Feb 2014

    Posted 11 Feb 2014 in reply to Shinu Link to this post

    Thank you so much Shinu.
Back to Top