Author Topic: Row Height Wrapping Canceling  (Read 196 times)

necatiozbek

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 19
    • View Profile
Row Height Wrapping Canceling
« 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: []
                    },
                   
                };

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6307
    • View Profile
Re: Row Height Wrapping Canceling
« Reply #1 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