Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arun 141 posts 404 karma points
    Aug 06, 2024 @ 04:28
    Arun
    0

    Limit in allowedDocTypes?

    Hi Team,

    Is there any minimum count set for the allowedDocTypes in the grid.editor.config.json file.

    I have encountered some errors when the count exceeds 50. Below is the configuration I used:

    {
        "name": "Create new Media module",
        "alias": "docType",
        "view": "/App_Plugins/DocTypeGridEditor/Views/doctypegrideditor.html",
        "render": "/App_Plugins/DocTypeGridEditor/Render/DocTypeGridEditor.cshtml",
        "icon": "icon-item-arrangement",
        "config": {
            "allowedDocTypes": ["mediaGallery", "mediaItem", "mediaContentWithText"],
            "nameTemplate": "",
            "enablePreview": false,
            "viewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/",
            "previewViewPath": "/Views/Partials/Grid/Editors/DocTypeGridEditor/Previews/",
            "previewCssFilePath": "",
            "previewJsFilePath": ""
        }
    }
    

    Could anyone provide some directions on this matter? Thank you for your assistance.

    Best regards,
    -Arun

  • Arun 141 posts 404 karma points
    Aug 06, 2024 @ 05:22
    Arun
    100

    I'm glad that I was able to resolve this issue.

    When we try to add contents in the Doc Type Grid Editor field, a POST request is made. When the contents in allowedTypes increases, this request is broken!

    What I did was increase the maxQueryStringLength in the httpRuntime section of the web.config

    <httpRuntime requestValidationMode="2.0" fcnMode="Single" maxRequestLength="51200" maxQueryStringLength="4098"/>
    

    And maxQueryString value in requestLimits of web.config

    <security>
      <requestFiltering>  
        <requestLimits maxQueryString="4096" />
      </requestFiltering>
    </security>
    
Please Sign in or register to post replies

Write your reply to:

Draft