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

PullToRefresh

7 Answers 37 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
André
Top achievements
Rank 1
André asked on 14 Jul 2015, 06:18 PM
Hi, how can I change de background color of the panel that pull to refresh messages appears?

7 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 17 Jul 2015, 04:15 PM
Hi André,

The answer to that question would depend on the Kendo UI  Mobile skin or theme you are using in your application. If you have applied the flat skin, then you can change the background color of the PullToRefresh element through css targeting the .km-flat .km-scroller-pull classes:
.km-flat .km-scroller-pull {
background-color:red;
}

Regards,
Tina Stancheva
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
André
Top achievements
Rank 1
answered on 17 Jul 2015, 04:31 PM

Hi Tina. Thanks for your response.

 

Yes I'm using flat skin, but this code only change the color of the circle on left side of the message..

 I want to change the whole background of the "container" where the message appears, maybe it's a div where the text is put..

 

:/

0
Martin Yankov
Telerik team
answered on 22 Jul 2015, 10:22 AM
Hello Andre,

Can you please provide a sample application, so that I can reproduce what you are seeing? In my tests, this selector works exactly as you want. You can take a look in this Dojo example. In the example I have omitted the .km-flat part since the example doesn't use the flat theme, but the effect is the same.

I'm looking forward to your reply.

Regards,
Martin Yankov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
André
Top achievements
Rank 1
answered on 22 Jul 2015, 03:41 PM

Hi Martin,

 You are not using flat skin. If you change to flat, the arrow will be inside of a circle and only the inner color of the circle will be changed..

0
Martin Yankov
Telerik team
answered on 27 Jul 2015, 02:28 PM
Hello Andre,

I contacted the dev team about this and it seems the flat skin is simply designed in such a way that it forces the pull to refresh place takes the background of the view itself. The only way to achieve what you want to do with this theme is to override the skin hard. Note that this means there can be potential problems with future releases and has not been extensively tested:

.km-flat .km-scroller-pull {
    position: absolute;
    left: 0px;
    margin-left: 0px;
    border-radius: 0px;
    height: 40px;
    width: 100%;
    background-color: red;
}

This basically expands the circle to take the whole place like in the normal theme. However, you should be aware that this is a custom solution and our dev team can't guarantee it's future proof.

Let me know if this works for you.

Regards,
Martin Yankov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
0
André
Top achievements
Rank 1
answered on 27 Jul 2015, 02:46 PM

Hi Martin.

 

Thanks for your response.

I'm thinking about that and don't know what to do right now..

thanks anyway..

0
Martin Yankov
Telerik team
answered on 30 Jul 2015, 10:49 AM
Hello Andre,

My suggestion would be to keep this, but remember it as a custom change on Kendo UI's theme. Just keep in mind that if something goes wrong when you update Kendo UI you can always remove it and the pull to refresh will look okay.

Don't hesitate to ask should you have any other questions.

Regards,
Martin Yankov
Telerik
 

Visit the Telerik Verified Plugins Marketplace and get the custom Cordova plugin you need, already tweaked to work seamlessly with AppBuilder.

 
Tags
General Discussion
Asked by
André
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
André
Top achievements
Rank 1
Martin Yankov
Telerik team
Share this question
or