x11 Posted January 24, 2021 Share Posted January 24, 2021 С помощью CustomCSS + config я нашел на форуме, как увеличить высоту строки TUnimDBGrid: http://forums.unigui.com/index.php?/topic/13329-change-rowheight-in-unimdbgrid/ UnimDBGrid.ClientEvents.UniEvents: function beforeInit(sender, config) { config.itemConfig = { height: 70 }; } CustomCSS: .x-big .x-gridcell { line-height: 0; word-wrap: break-word; white-space: pre-wrap; } а вот перенос слов не получается реализовать Quote Link to comment Share on other sites More sharing options...
Sherzod Posted January 24, 2021 Share Posted January 24, 2021 4 hours ago, x11 said: а вот перенос слов не получается реализовать Добрый вечер, Попробуйте такое решение: 1. UnimDBGrid -> LayoutConfig -> Cls = customItem 2. CustomCSS -> .customItem .x-gridcell-body-el { white-space: normal; } 1 Quote Link to comment Share on other sites More sharing options...
x11 Posted January 25, 2021 Author Share Posted January 25, 2021 Спасибо. Помогло. Еще хочу вернуться к вопросу о высоте строк. Можно ли высоту записей сетки сделать автоматической? Т.е. подогнать к количеству строк текста. Вот, например, взять компоненту unimDBLookupCombobox (картинка 2) - в выпадающем списке некоторые строки двойной высоты, чтобы уместился весь текст записи и это очень удобно. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.