[CLOSED] Delphi TwebBrowser error formating datetime gridpanel when using format

  1. #1

    [CLOSED] Delphi TwebBrowser error formating datetime gridpanel when using format

    I have an application written in Delphi using TWebBrowser that allow users to log into a web site written using ext.net.
    When I run a page that displays date information withing a GridPanel using a dateColumn and format="dd-MM-yyyy" I get weird info displayed, like NaN/NaN/0NaN.
    If I run then some page using IE 10 installed on same machine data comes out formatted well.

    Can you give me a hint if possible?
    Last edited by Baidaly; Nov 12, 2013 at 2:49 PM. Reason: [CLOSED]
  2. #2
    Hello!

    Can you provide the code of this Login Window and what version of IE is installed by default on the machine where it doesn't work?

    Probably, it happens due to old IE version or compatibility mode of IE because TWebBrowser uses the installed version of IE.
  3. #3

    Got the solution

    It seems the TWebBrowser object always starts in IE7 compatibility mode. Making some changes to registry for IE8 and above compatible mode fix the problem. I have just modified my Delphi application to do so when loaded. Everything works fine now.

    You can also set compatibility mode on server side by setting the X-UA-Compatible meta tag.

    You can close the thread now.

    Thank you very much.

Similar Threads

  1. [CLOSED] DateTime format renderer in GridPanel
    By speedstepmem4 in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Oct 25, 2013, 1:56 PM
  2. [CLOSED] datetime format in ModelField?
    By hdsoso in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 18, 2013, 12:20 PM
  3. DateTime conversion error
    By HexElffilter in forum 1.x Help
    Replies: 6
    Last Post: Feb 21, 2012, 11:29 AM
  4. [CLOSED] DateTime format on Grid problem
    By caha76 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 18, 2011, 7:47 PM
  5. GridPanel Row Formating based on Data
    By vivekrane1986 in forum 1.x Help
    Replies: 0
    Last Post: Jun 08, 2010, 7:15 AM

Tags for this Thread

Posting Permissions