Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bU794-00089b-EW for pgadmin-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 06:56:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1bU793-00034X-SB for pgadmin-hackers@arkaria.postgresql.org; Mon, 01 Aug 2016 06:56:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1bU793-00034Q-23 for pgadmin-hackers@postgresql.org; Mon, 01 Aug 2016 06:56:13 +0000 Received: from mail-oi0-x22b.google.com ([2607:f8b0:4003:c06::22b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.84_2) (envelope-from ) id 1bU78z-0001UN-G3 for pgadmin-hackers@postgresql.org; Mon, 01 Aug 2016 06:56:11 +0000 Received: by mail-oi0-x22b.google.com with SMTP id w18so180846330oiw.3 for ; Sun, 31 Jul 2016 23:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=rlM03IwF7XbMhtcEB7hBWMHmR5Ps8UDk+e6FHWRKLHo=; b=gXY+gsXJK24i2/orMSGWFH8K/wAnPsOVJxE4etcCPk3baYsSyYYKv4yRGUHTFFkW+7 1GYcfz0ZxUHY7q7GfXha2Z4z/biazL/YwqlV/YaJ9j401q0QJtPk/lTdl/0cmbv+TU5d JU6zV/OcihAnJl4FUXY/HfNdRNutSwpSGAYsLubH2gg77GIzYcOQBtkNG92thQBYD48i BkqTlW24dtyB2xD1ukj/YZ4ks/CkPSGNQMC7yLD94C7BiIZLEYzZqeUHG7Gwq2GKayMA ywbWMxGX3WOUENvu2DJk7l1HSEvREhvf61wsRYZNF4DBg9nYuMsp+GF7DzPb/cBd9jsM NRoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=rlM03IwF7XbMhtcEB7hBWMHmR5Ps8UDk+e6FHWRKLHo=; b=ZxUkaRyyLit6sYJ/YOrx9Vos25oN2JKxU2/dSdbzKtZjfLEvq8R1AS8EUG8yBM/PPq 45cf+7gHdGbWoCh3rv6IQOLfjP1NaiUEvDqkP3FyZyGlAqEyITlYb6O3d5Z2KxTUUYHr PQ7x0qNMm1cUskwxj1Fu3NsviKqIrltxUToo1RhpPo6H7W4SIppS6ZaeJDgxCExbG3IQ 5XFOXhBzrbXo9pXXKGx2nbniqoC7PEY07ynCwMV7EV/s+CA2ivzJ3r4oPOw18/6dbtWa DvTA4f8GtXviw4M3rA6rLUnvvefwiQHI8Q94N5N9ANCG764HdMRJrGr8RjqFubbaQJKi /vNg== X-Gm-Message-State: AEkoouutZmiIUBrpZVfcFpSBLMHY1//hWCOf5J/WPcv22LQ9d/eKWErYTWJZ1A4Hdf49tYc/B35vSpf1Lz1WsXqQ X-Received: by 10.157.51.86 with SMTP id u22mr34514914otd.74.1470034568136; Sun, 31 Jul 2016 23:56:08 -0700 (PDT) MIME-Version: 1.0 Received: by 10.202.193.130 with HTTP; Sun, 31 Jul 2016 23:56:07 -0700 (PDT) From: Akshay Joshi Date: Mon, 1 Aug 2016 12:26:07 +0530 Message-ID: Subject: Customisable delete row message To: pgadmin-hackers Content-Type: multipart/mixed; boundary=001a11414f303dfc8b0538fd1853 X-Pg-Spam-Score: -1.0 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgadmin-hackers Precedence: bulk Sender: pgadmin-hackers-owner@postgresql.org --001a11414f303dfc8b0538fd1853 Content-Type: multipart/alternative; boundary=001a11414f303dfc830538fd1851 --001a11414f303dfc830538fd1851 Content-Type: text/plain; charset=UTF-8 Hi All With current implementation message for delete row is hard coded 'Are you sure you wish to delete this row?' in DeleteCell control. I have modified this behaviour and make it customisable. User of this control can set their own delete message. Attached is the patch file, please review it and let me know the review comments if any. -- *Akshay Joshi* *Principal Software Engineer * *Phone: +91 20-3058-9517Mobile: +91 976-788-8246* --001a11414f303dfc830538fd1851 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi All=C2=A0

With current implementatio= n message for delete row is hard coded 'Are you sure you wish to delete= this row?' in DeleteCel= l control. I have modified this behaviour and make it customisable. User of this control = can set their own delete message.=C2=A0

Attached i= s the patch file, please review it and let me know the review comments if a= ny.

--
Akshay Joshi<= /span>
Principal Software Engineer=C2=A0


Phone: +91 20-3058-9517
Mobil= e: +91 976-788-8246
--001a11414f303dfc830538fd1851-- --001a11414f303dfc8b0538fd1853 Content-Type: application/octet-stream; name="custom_delete_msg.patch" Content-Disposition: attachment; filename="custom_delete_msg.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_irbolg2x0 ZGlmZiAtLWdpdCBhL3dlYi9wZ2FkbWluL3N0YXRpYy9qcy9iYWNrZ3JpZC9i YWNrZ3JpZC5wZ2FkbWluLmpzIGIvd2ViL3BnYWRtaW4vc3RhdGljL2pzL2Jh Y2tncmlkL2JhY2tncmlkLnBnYWRtaW4uanMKaW5kZXggNDllZGQ5OS4uOGU3 MzdjNCAxMDA2NDQKLS0tIGEvd2ViL3BnYWRtaW4vc3RhdGljL2pzL2JhY2tn cmlkL2JhY2tncmlkLnBnYWRtaW4uanMKKysrIGIvd2ViL3BnYWRtaW4vc3Rh dGljL2pzL2JhY2tncmlkL2JhY2tncmlkLnBnYWRtaW4uanMKQEAgLTI1Miw2 ICsyNTIsMTAgQEAKICAgfSk7CiAKICAgdmFyIERlbGV0ZUNlbGwgPSBCYWNr Z3JpZC5FeHRlbnNpb24uRGVsZXRlQ2VsbCA9IEJhY2tncmlkLkNl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pOwogICAgICAgICAgICAgfSwK --001a11414f303dfc8b0538fd1853 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgadmin-hackers mailing list (pgadmin-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgadmin-hackers --001a11414f303dfc8b0538fd1853--