jQuery UI Widgets › Forums › Grid › Grid for mobile
Tagged: font size, jqxgrid, mobile grid
This topic contains 5 replies, has 2 voices, and was last updated by Dimitar 11 years, 10 months ago.
-
AuthorGrid for mobile Posts
-
Hi,
I am new to using Jquery and Jqwidgets so I would like some advice about a couple of things.
I wish to create a “fluid” table to suit mobile devices.
I have tried to use the grid element, but I can’t seem to make the grid output fluid to suit different mobile devices.
Firstly is this possible and secondly if so how please?
Been scratching my head on this one, even looked at the mobile examples but am I missing the obvious?
Thanks in advance and I appreciate the hard work that has gone into creating Jqwidgets.
Welby
ps I am planning on using it for a searchable/filtered grid of karaoke tracks I hold in Mysql and CSV.
I also forgot that the Bind to CSV does not support the use of ” qualifiers so my data appears as:
my code is:
<!DOCTYPE html><html lang="en"><head> <title id='Description'>This example shows how to create a Grid from Comma-delimited text also known as comma-separated values (CSV).</title> <link rel="stylesheet" href="./jqwidgets/styles/jqx.base.css" type="text/css" /> <script type="text/javascript" src="./scripts/jquery-1.8.1.min.js"></script> <script type="text/javascript" src="./jqwidgets/jqxcore.js"></script> <script type="text/javascript" src="./jqwidgets/jqxdata.js"></script> <script type="text/javascript" src="./jqwidgets/jqxbuttons.js"></script> <script type="text/javascript" src="./jqwidgets/jqxscrollbar.js"></script> <script type="text/javascript" src="./jqwidgets/jqxmenu.js"></script> <script type="text/javascript" src="./jqwidgets/jqxgrid.js"></script> <script type="text/javascript" src="./jqwidgets/jqxgrid.selection.js"></script> <script type="text/javascript" src="./jqwidgets/jqxgrid.columnsresize.js"></script> <script type="text/javascript" src="./jqwidgets/jqxlistbox.js"></script> <script type="text/javascript" src="./jqwidgets/jqxdropdownlist.js"></script> <script type="text/javascript" src="./jqwidgets/jqxgrid.filter.js"></script> <script type="text/javascript" src="./scripts/gettheme.js"></script> <script type="text/javascript"> $(document).ready(function () { var theme = getTheme(); var url = './karaoke.txt'; var source = { datatype: "csv", datafields: [ { name: 'Artist', type: 'float' }, { name: 'Title', type: 'float' }, { name: 'ID', type: 'float' } ], url: url }; var dataAdapter = new $.jqx.dataAdapter(source); $("#jqxgrid").jqxGrid( { width: 800, source: dataAdapter, theme: theme, columnsresize: true, filterable: true, autoshowfiltericon:false, columns: [ { text: 'Artist', datafield: 'Artist', width: 300}, { text: 'Title', datafield: 'Title', width: 300}, { text: 'ID', datafield: 'ID', width: 200} ] }); }); </script></head><body class='default'> <div id='jqxWidget'> <div id="jqxgrid"></div> </div></body></html>
Hello welby,
Please check out the source code of the mobile jqxGrid demo.
As you can see, the width and height of the grid are set to 100%.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/hi,
great thanks – worked that one out! 🙂
Is it possible to adjust the font size without editing the style CSS?
Hello welby,
The only way to adjust the font size of a widget is through CSS.
Best Regards,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.