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

Expand Collapse images replacement issue

2 Answers 83 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Arpit
Top achievements
Rank 1
Arpit asked on 13 Dec 2017, 11:48 AM

How can I replace expand/collapse images of Radpanel item with some other images when RenderMode="Lightweight" ?

On expand I need to show different image and On collapse I need to show another image.

 

Below solution is not working for me because I think skin file selector is not supporting.

 

<style>
    .t-i-expand-s:before, .t-i-expand-down:before, .p-i-expand-s:before, .p-i-expand-down:before, .p-i-arrow-chevron-down:before {
        content: "\e100" !important;
    }

    .t-i-expand-n:before, .t-i-expand-up:before, .p-i-expand-n:before, .p-i-expand-up:before, .p-i-arrow-chevron-up:before {
        content: "\e101" !important;
    }
</style>

 

 

Right now my selector is like

 

.RadPanelBar .rpExpandable .rpExpandHandle 

{

display : block;

}

 

 

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Dec 2017, 12:22 PM
Hi,

I just replied to your other forum thread on the subject: http://www.telerik.com/community/forums/radpanelbar-collapse-and-expand-image.

Regards,
Rumen
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Arpit
Top achievements
Rank 1
answered on 15 Dec 2017, 02:54 PM

I tried it from myself .......working fine.

Posting style to help others.

<style>

         /*To set the right side expand image of RadPanelItem*/
        .RadPanelBar .rpExpandable .rpExpandHandle::before
        {
            content: url(../Modules/CS_AccordianNavigation/Images/plus20.png) !important;
        }

        /*To set the position of right side expand image of RadPanelItem*/
        .RadPanelBar .rpRootLink .rpExpandHandle
        {
            right : 5px !important;
            width : 20px !important;
              top : 9px !important;
        }

</style>

Tags
PanelBar
Asked by
Arpit
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Arpit
Top achievements
Rank 1
Share this question
or