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

Custom gif for rtMinus not showing

2 Answers 59 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Kenyon
Top achievements
Rank 1
Kenyon asked on 08 Sep 2017, 12:17 AM

I tried to apply my own gif to the "expanded" arrow but when clicking it shows nothing at all.  I tried setting background-color as a control test and that worked fine.

The gif is currently just a plain colored square so it'd be pretty obvious to see that it's working.

Attachment shows how it looks on the page (no icons).

Where am I going wrong?

Here's my CSS:

.RadTreeView_MetroTouch .rtMinus {
    background-image: url('../Images/Test.gif') !important;   
}

2 Answers, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 13 Sep 2017, 10:23 AM
Hi Kenyon,

Would you please check if applying the following styles fits your case? 

<style>
    div.RadTreeView .rtPlus,
    div.RadTreeView .rtMinus {
        background-image: url("https://www.accorhotels.com/imagerie/commun/ajax-loader.gif");
    }
 
    html div.RadTreeView .rtPlus:before,
    html div.RadTreeView .rtMinus:before {
        content: none;
    }
 
    div.RadTreeView .rtLines .rtTop,
    div.RadTreeView .rtLines .rtMid,
    div.RadTreeView .rtLines .rtBot,
    div.RadTreeView .rtLines .rtLast .rtTop,
    div.RadTreeView .rtLines .rtFirst,
    div.RadTreeView .rtLines .rtFirst .rtUL,
    div.RadTreeView .rtLines .rtLI,
    div.RadTreeView .rtLines .rtFirst .rtUL {
        background-image: none;
    }
</style>


Here are some screenshots of the TreeView Overview demo: 
Regards,
Peter Milchev
Progress Telerik
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Kenyon
Top achievements
Rank 1
answered on 13 Sep 2017, 11:26 PM

Aha, I found the problem.  For some reason background-position was being set to -65 -65 (not in my CSS).

Added background-position: 0; to my CSS and it's now showing correctly.

Guess I should have checked the debugging window more carefully.

Tags
TreeView
Asked by
Kenyon
Top achievements
Rank 1
Answers by
Peter Milchev
Telerik team
Kenyon
Top achievements
Rank 1
Share this question
or