Page 1 of 1

Requirements to run projects with CGDevTools components

PostPosted: 23 Apr 2014 15:04
by Alexander Bulei
Summary: If you get the unexpected behavior in your browser, you should check the below requirements!

Some unexpected behaviors:
  • Default style of elements in browser
  • Clicks and/or other events are not executed
  • Javascript errors in browser
  • JQGrid component doesn't fills with data

Requirements:

  1. In your project OutputFolder, where the EXE/DLL will be generated, you need to have the typical wwwroot folder, and you must have the subfolders jq, ui-themes and css. These subfolders should be copied from the instalation path \ Files folder.
    The easiest way to do this, for your Rad Studio project, is click in IDE's

    Code: Select all
    CgDevTools menu - Selected Project - Synchronize wwwroot Folder.


    Note

    You should also synchronize on every cgdevtools updates to update the javascript and css files!


    Note

    You should also refresh the browser cache (CTRL+F5)



  2. You should set either ServerController or each IWForm StyleSheet property
    • By FileName (Files\ui-themes\ThemeFolder\jquery-ui.css)
    • By Url (ui-themes/black-tie/jquery-ui.css), check wwwroot's ui-theme folder child folders .
    • Alternativelly, you can drop a TIWCGJQThemeSwitcher to each form, visible if you want the user to change the Theme.
  3. ServerController.ComInitialization must be ciNormal or ciMultiThreaded, never ciNone!

  4. You have to set a DocType in ServerController. We recommend using DocType for HTML 5:
    Code: Select all
    <!doctype html>

Addition Information:

Note

Note: Make sure, you've included your license key (IWCGLicenseKey) in dpr to avoid the DEMO message.



Best Regards.