We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Dialog setValue In ColorPicker

I have created a nice ejDialog i have put an asp: Label, asp:TextBox and ejColorPicker when selecting a row of grid it appears me a lovely ejDialog with the data of the row, but when I want to save changes in the controls there is no data, ok , Null Value
But when I add terget to ejDialog I can not setValue to ColorPicker.

function openDialog(args) {




var colorObj = $("#AdminContent_dialog_ColoRicker").ejColorPicker().data("ejColorPicker");



3 Replies

SS Selvamani Sankarappan Syncfusion Team August 14, 2017 09:06 AM UTC

Hi Tomasz, 
Thanks for contacting Syncfusion support. 
We have checked your requirement and we were unable to reproduce the reported issue at our end while using the target of dialog. Please refer to the following sample: 
<div id="content"> 
        <ej:Grid ID="OrdersGrid" runat="server" AllowPaging="false" AllowSelection="true" Selectiontype="Single"> 
            <ClientSideEvents RowSelected="rowSelected" /> 
            <SelectionSettings SelectionMode="row" /> 
                <ej:Column Field="StId" /> 
                <ej:Column Field="RoomStatus" /> 
                <ej:Column Field="StatusColor" /> 
        <ej:Dialog ID="basicDialog" runat="server" Title="Dialog" ShowOnInit="false" Target="#content"> 
                <asp:Label ID="label" runat="server"></asp:Label> 
                <asp:TextBox ID="textbox" runat="server"></asp:TextBox> 
                <ej:ColorPicker ID="colorpicker" runat="server"></ej:ColorPicker> 
function rowSelected(args) { 
            var dialogObj = $("#<%=basicDialog.ClientID%>").data("ejDialog"); 
            var colorObj = $("#<%=colorpicker.ClientID%>").data("ejColorPicker"); 
We have prepared the sample based on your requirement. Please refer to the following sample: 
If the above does not meet your requirement, kindly share modified sample based on your application to check and provide an appropriate solution at the earliest. 
Selvamani S. 

TO Tomasz August 14, 2017 09:26 AM UTC

Hi Selvamani

Again my fault, writing name of target i forgot add "#" to the name. - Target="target" instead Target="#target".
Thank You

SS Selvamani Sankarappan Syncfusion Team August 15, 2017 06:20 AM UTC

Hi Tomasz, 
Thanks for the update. 
Let us know if you need any further assistance. 
Selvamani S. 

Live Chat Icon For mobile
Up arrow icon