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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Grid/Editing/Dialog Editing - Change dialog box title

Thread ID:

Created:

Updated:

Platform:

Replies:

120025 Aug 24,2015 07:45 PM UTC Aug 26,2015 05:34 AM UTC ASP.NET Web Forms 3
loading
Tags: Grid
Pratheep
Asked On August 24, 2015 07:45 PM UTC


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

Balaji Marimuthu [Syncfusion]
Replied On 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

Pratheep
Replied On August 25, 2015 12:29 PM UTC

Hi  Balaji 

Thanks, it's working fine 

Regards
Pratheep


Prasanna Kumar Viswanathan [Syncfusion]
Replied On 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

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;