4 Answers, 1 is accepted
0
Shinu
Top achievements
Rank 2
answered on 05 Aug 2014, 08:35 AM
Hi Alexis,
Please try the below JavaScript code snippet to achieve your scenario.
JavaScript:
Thanks,
Shinu.
Please try the below JavaScript code snippet to achieve your scenario.
JavaScript:
function
pageLoad() {
$(
'#RadColorPicker_emptycolor'
).click(
function
() {
$(
'.rcpColorPreview'
)[0].style.backgroundColor =
"white"
; ;
});
}
Thanks,
Shinu.
0
Alexis
Top achievements
Rank 1
answered on 06 Aug 2014, 01:31 PM
My RadcolorPicker is inside a RadPanelBar.
When I click the 'No color' button, it always set the color #808080.
I didn't get any error.
When I click the 'No color' button, it always set the color #808080.
I didn't get any error.
0
Shinu
Top achievements
Rank 2
answered on 07 Aug 2014, 05:19 AM
Hi Alexis,
Please do following modification in the JavaScript which works fine at my end.
JavaScript:
Thanks,
Shinu.
Please do following modification in the JavaScript which works fine at my end.
JavaScript:
$(
'.rcpEmptyColor'
).click(
function
() {
$(
'.rcpColorPreview'
)[0].style.backgroundColor =
"white"
;
});
Thanks,
Shinu.
0
Hello Alexis,
I've tried to replicate the described behavior on my side with RadColorPicker inside RadPanelBar but no avail. Here is a video showing my test:
http://screencast.com/t/WG1hv5Xf5pf
The issue might be related to some specific configuration of RadColorPicker control in your project.
Could you, please, prepare a sample project isolating the issue, so that we can further investigate it and come back to you with our findings.
You could also review the Client-side programming articles of RadColorPicker in our documentation.
Best Regards,
Misho
Telerik
I've tried to replicate the described behavior on my side with RadColorPicker inside RadPanelBar but no avail. Here is a video showing my test:
http://screencast.com/t/WG1hv5Xf5pf
The issue might be related to some specific configuration of RadColorPicker control in your project.
Could you, please, prepare a sample project isolating the issue, so that we can further investigate it and come back to you with our findings.
You could also review the Client-side programming articles of RadColorPicker in our documentation.
Best Regards,
Misho
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.