Hi,
1. ColorPicker always behind of jQuery UI Dialog.
2. ColorPicker appears with delay after first opening.
My code here:
Please solve this issue!
Thanks!
1. ColorPicker always behind of jQuery UI Dialog.
2. ColorPicker appears with delay after first opening.
My code here:
<%@ Page Language="C#" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
script
runat
=
"server"
>
protected void Page_Load(object sender, EventArgs e)
{
}
</
script
>
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
link
href
=
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/themes/base/jquery-ui.css"
rel
=
"stylesheet"
type
=
"text/css"
/>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
asp:ScriptManager
ID
=
"ScriptManager1"
runat
=
"server"
>
</
asp:ScriptManager
>
<
div
id
=
"myDialog"
style
=
"display: none; overflow:hidden;"
>
<
table
>
<
tr
>
<
td
>
Value: </
td
>
<
td
>
<
telerik:RadColorPicker
ID
=
"RadColorPicker1"
ShowIcon
=
"true"
style
=
"z-index:5000"
runat
=
"server"
>
</
telerik:RadColorPicker
>
</
td
>
<
td
>
<
input
id
=
"Button1"
type
=
"button"
value
=
"Save"
onclick
=
"javascript:saveColor();"
/>
</
td
>
</
tr
>
</
table
>
</
div
>
<
div
id
=
"selectedColor"
></
div
>
<
input
id
=
"Button2"
type
=
"button"
value
=
"New color"
onclick
=
"javascript:openDialog();"
/>
</
form
>
</
body
>
<
script
src
=
"https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"
type
=
"text/javascript"
></
script
>
type
=
"text/javascript"
></
script
>
<
script
type
=
"text/javascript"
>
function saveColor() {
var c = $find("RadColorPicker1");
$("#selectedColor").html("Your selected color is: " + c.get_selectedColor());
$("#myDialog").dialog("close");
}
function openDialog() {
$("#myDialog").dialog({
title: 'Choose color',
width: '250',
draggable: false,
resizable: false,
show: 'slow',
hide: 'slow',
modal: true
});
}
$(document).ready(
function () {
//
}
);
</
script
>
</
html
>
Please solve this issue!
Thanks!