This is a migrated thread and some comments may be shown as answers.

Hide RadImageAndTextTile's Title when Peek template is visible

2 Answers 92 Views
TileList
This is a migrated thread and some comments may be shown as answers.
Ulhas
Top achievements
Rank 1
Ulhas asked on 25 Jul 2014, 11:27 AM
Hello,
        I am using RadImageAndTextTile.I want to hide Title text and title image when peek template is visible.Please suggest me how could I achieve this?
Thank you

2 Answers, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 28 Jul 2014, 10:48 AM

Hi Ulhas,

At this point RadTiles do not offer events when their peek templates are shown or hidden and you can log this idea in our feedback portal if you like: http://feedback.telerik.com/Project/108/ and add your use case, explanations, expectations or additional event ideas. If it accumulates enough public interest we will consider its implementation.

In the meantime, you can add the following override at the end of the form so you can get those events:

<script type="text/javascript">
    var RBTP = Telerik.Web.UI.RadBaseTile.prototype;
 
    RBTP.showPeekTemplate = function () {
        this.get_peekAnimationManager().show();
        $telerik.$(this.get_element()).addClass("noTitle");
    }
 
    RBTP.hidePeekTemplate = function () {
        this.get_peekAnimationManager().hide();
        $telerik.$(this.get_element()).removeClass("noTitle");
    }
</script>

The following CSS will hide the title for tiles that have the noTitle class that you can toggle with the above code

.noTitle .rtileTitle
{
    display: none;
}

I hope this helps.


Regards,

Marin Bratanov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Debasish
Top achievements
Rank 1
answered on 25 Sep 2017, 12:38 PM

Hi,In first line

var RBTP=telerik.web.ui.radbasetile.prototype;Getting issue as JavaScript error :unable to get property 'prototype' of undefined or null reference in IE 11 browser ,please help me out

Tags
TileList
Asked by
Ulhas
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Debasish
Top achievements
Rank 1
Share this question
or