How to make element sizes to fill cell sizes and increase font in free jqgrid inline and form editing

Andrus

jqgrid font size is increasing according to answer from How to change the font size in jqGrid?

using

.ui-jqgrid tr.jqgrow td {
    font-size: 1.2em;
}

Unfortunately this does not change inline and form editing element font sizes.

I'm looking for a wayto occupy whole cell contents in free jqgrid inline editing and increase font sizes in both form and inline editing.

According to https://github.com/free-jqgrid/jqGrid/issues/52 I created style

.jqgrid-inlineedit-element {
    font-size: 1em !important;
    box-sizing: border-box;
    height: 100%;
    width: 100%
}

and added this style to input and select elements using

class = "ui-widget-content jqgrid-inlineedit-element"

in colmodel. Inline editing now has nice bigger elements.

Hovewer jqgrid applies this class automatically to form editing also and this causes too wide and too small height fields in form editing (see below). How to fix this so that

height: 100%;
width: 100%

does not apply to form editing and font size applies to both?

I tried to fix this by removing width and height from classes and adding them in colmodel using

                        style = "width:100%;height:100%",

but jqgrid applies this also in form editing so form editing is still corrupted. Maybe some css selector can used to apply jqgrid-inlineedit-element style only in inline editing.

Oleg

What I mean is the usage of the settings for inline editing or cell editing only. You will have no changes in form editing. So the CSS rule could be like

.jqgrow > td input.editable,
.jqgrow > td select.editable,
.jqgrow > td textarea.editable {
    height: auto;
    width: 100%;
    font-size: 1em;
    box-sizing: border-box;
}

You can add

.jqgrow > td select.editable,
    height: 100%;
}

if you prefer to show <select> with the 100% height. You can consider to remove .editable part in the above rules. The class editable will be added only for inline editing elements

The last remark: I modified all CSS settings from ui.jqgrid.css in free jqGrid so that there are exist almost no !important inside (the excepton is overwriting CSS rule defined in jQuery UI CSS). So you can modify the settings without have to use !important.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to make element sizes to fill cell sizes and increase font in free jqgrid inline and form editing

From Dev

How to increase font size and element height if free jqgrid form edit

From Dev

jqGrid - how to focus cell inline editing

From Dev

How to set font sizes for different iPhone sizes?

From Dev

PHPExcel - How to simplify setting a single cell with 2 font sizes

From Dev

HTML - How to make an image fill table cells of various sizes

From Dev

How to set row id value after form editing in free jqgrid

From Dev

How to make Outlook font sizes bigger in the reading pane?

From Dev

How can I make my form responsive on all sizes

From Dev

How to increase VM HDD and RAM sizes?

From Dev

How to make font sizes in app to not get effected by changing Settings Font size

From Dev

How to avoid nested font sizes with CKEditor?

From Dev

How to add custom font sizes to QuillJS editor

From Dev

How to render one font in different sizes?

From Dev

how to implement autocomplete dropdownlist in inline JqGrid editing

From Dev

how to implement autocomplete dropdownlist in inline JqGrid editing

From Dev

How to improve performance of UICollectionView with custom cell sizes?

From Dev

jqGrid - Select selected cell's text while inline editing

From Dev

JQGrid remove cell value from custom error message in inline editing

From Dev

How to use native date picker in both form and row editing in free jqgrid

From Dev

How to make two different font sizes sit on one line using Unsemantic

From Dev

How to make two different font sizes sit on one line using Unsemantic

From Dev

Label with different font sizes

From Dev

Trouble with quill font sizes

From Dev

jqGrid: How to add a row in "cell editing" model?

From Dev

Android - GridLayout cell sizes

From Dev

UICollectionView with different cell sizes

From Dev

UICollectionView with different cell sizes

From Dev

How to make different pages of a QStackedWidget of different sizes?

Related Related

  1. 1

    How to make element sizes to fill cell sizes and increase font in free jqgrid inline and form editing

  2. 2

    How to increase font size and element height if free jqgrid form edit

  3. 3

    jqGrid - how to focus cell inline editing

  4. 4

    How to set font sizes for different iPhone sizes?

  5. 5

    PHPExcel - How to simplify setting a single cell with 2 font sizes

  6. 6

    HTML - How to make an image fill table cells of various sizes

  7. 7

    How to set row id value after form editing in free jqgrid

  8. 8

    How to make Outlook font sizes bigger in the reading pane?

  9. 9

    How can I make my form responsive on all sizes

  10. 10

    How to increase VM HDD and RAM sizes?

  11. 11

    How to make font sizes in app to not get effected by changing Settings Font size

  12. 12

    How to avoid nested font sizes with CKEditor?

  13. 13

    How to add custom font sizes to QuillJS editor

  14. 14

    How to render one font in different sizes?

  15. 15

    how to implement autocomplete dropdownlist in inline JqGrid editing

  16. 16

    how to implement autocomplete dropdownlist in inline JqGrid editing

  17. 17

    How to improve performance of UICollectionView with custom cell sizes?

  18. 18

    jqGrid - Select selected cell's text while inline editing

  19. 19

    JQGrid remove cell value from custom error message in inline editing

  20. 20

    How to use native date picker in both form and row editing in free jqgrid

  21. 21

    How to make two different font sizes sit on one line using Unsemantic

  22. 22

    How to make two different font sizes sit on one line using Unsemantic

  23. 23

    Label with different font sizes

  24. 24

    Trouble with quill font sizes

  25. 25

    jqGrid: How to add a row in "cell editing" model?

  26. 26

    Android - GridLayout cell sizes

  27. 27

    UICollectionView with different cell sizes

  28. 28

    UICollectionView with different cell sizes

  29. 29

    How to make different pages of a QStackedWidget of different sizes?

HotTag

Archive