ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: necatiozbek on August 23, 2024, 02:07:32 pm

Title: Row Height Wrapping Canceling
Post by: necatiozbek on August 23, 2024, 02:07:32 pm
Hi;
I have a cell that contains very long text. Even though the wrapping is false in my object, the cell height increases.
How do I set a height that cuts the text inside

I want normal cell height that Cuts Text

var grid_chnotlari_obj = {
                    width: "auto",
                    height: "200",
                    showHeader: true,
                    selectionModel: { type: 'row', mode: 'block' },
                    wrap: false,
                    hwrap:false,
                    scrollModel: { autoFit: true },
                    collapsed: false,
                    colModel: [
                        {
                            dataIndx: "CREDATE", title: "Not.Tarihi", dataType: "date", format: 'dd.mm.yy',
                            width: "10%",
                        },
                       
                        {
                            title: "Not Başlık", dataIndx: "NOT_BASLIK"
                        },
                        {
                            title: "Not", dataIndx: "NOT_ACIKLAMA"
                        },

                        {
                            title: "Oluşturan", dataIndx: "CREUSER", width: 500, editable: false,
                            width: "10%",
                        },
                    ],
                    dataModel: {
                        data: []
                    },
                   
                };
Title: Re: Row Height Wrapping Canceling
Post by: paramvir on August 23, 2024, 03:25:20 pm
cell wrapping works only in case of single line of text.

In order to set fixed height of rows irrespective of content, you can set autoRow to false.

https://paramquery.com/pro/api#option-autoRow