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

Grid/Editing/Dialog Editing - Change dialog box title


Hi

Dialog Editing - grid - edit detail dialog box title change, how can i change dialog box title? 

please find he attachment 

Thanks
Pratheep

Attachment: title_e7045275.rar

3 Replies

BM Balaji Marimuthu Syncfusion Team August 25, 2015 09:34 AM UTC

Hi Pratheep, 

Thanks for using Syncfusion Products.

By using the ActionComplete event in Grid, you can change the title of Dialog Box. Please refer the sample and code example as below,
Sample: Sample_(2)

<div>

        <ej:Grid ID="FlatGrid" runat="server" AllowSorting="True" AllowPaging="True">

            <ClientSideEvents ActionComplete="complete" />


             . . . .


            <EditSettings AllowEditing="True" AllowAdding="True" AllowDeleting="True" EditMode="Dialog"></EditSettings>

            <ToolbarSettings ShowToolbar="True" ToolbarItems="add,edit,delete,update,cancel"></ToolbarSettings>

        </ej:Grid>

    </div>



    <script type="text/javascript">

       function complete(args) {

            if (args.requestType == "beginedit" || args.requestType == "add")

                $('#'+this._id+'_dialogEdit').ejDialog("option", "title", "Dialog Editing"); //change dialog title
        }
    </script>


By using the Dialog title property, we have set Title to the Dialog Box in Grid ActionComplete event. Please refer the following Help document, 
http://helpjs.syncfusion.com/js/api/ejdialog#members:title

The ActionComplete event triggers for every Grid action’s success event. So, we have changed the Dialog Box title while adding and editing the records to Grid by checking the requestType as add and beginedit.

Please refer the Help document:
Document: http://helpjs.syncfusion.com/js/api/ejgrid#events:actioncomplete

Please get back to us if you need any further assistance.

Regards,
Balaji Marimuthu


PR Pratheep August 25, 2015 12:29 PM UTC

Hi  Balaji 

Thanks, it's working fine 

Regards
Pratheep



PK Prasanna Kumar Viswanathan Syncfusion Team August 26, 2015 05:34 AM UTC

Hi Pratheep,

Thanks for the update.

Please let us know if you need any further assistance.

Regards,
Prasanna Kumar N.S.V

Loader.
Live Chat Icon For mobile
Up arrow icon