誰かが助けてくれることを願っています。
JQWidgets Grid (JqxGrid) を JQueryUI タブ ウィジェットにロードする際に少し問題があります。グリッド幅をパーセンテージ値に設定すると、ピクセル値に変更されるようです。たとえば、100% の幅は 100px に変換されます。以前のバージョンの JqxGrid と JqxTab コンポーネントにも同様の問題があり、解決されたことがわかりましたが、残念ながら、現時点でタブ ウィジェットを変更する立場にはありません。誰かがこの問題を回避する方法を知っている場合は、あなたの助けに感謝します.
ありがとう
これが私のコードです:
$("#studentgrid").jqxGrid({
width: '100%',
source: studentAdapter,
theme: theme,
filterable: true,
sortable: true,
pageable: true,
autoheight: true,
altrows: true,
enabletooltips: true,
autoshowfiltericon: true,
groupable: true,
columns: [
{text: 'Programme / Unit', datafield: 'student_unit', width: '30%'},
{text: "Involvement Type", datafield: 'student_type', width: '30%' },
{text: 'Student Count', datafield: 'student_count', width: '20%' },
{text: 'Student Level', datafield: 'student_level', width: '20%' }
]
});