jquery-easyui

EasyUI - How to add a new Item of Accordion on the top?

99封情书 提交于 2019-12-04 21:51:30
I'm having an application using jquery-easyui using an Accordion on the Web page. The HTML Code of Accordion is: <div id="taskAccordion" class="easyui-accordion" data-options="multiple:false" style="width:500px; height:300px;"> <div title="Java" style="padding:10px;"> <p>This is Java.</p> </div> <div title="PHP" style="padding:10px;"> <p>This is PHP.</p> </div> <div title="JS" style="padding:10px;"> <p>This is JS.</p> </div> </div> I want ao add a new Item into Accordion with JS in runtime. The JS-function for adding is: function addItem(){ $('#taskAccordion').accordion('add',{ title: 'Perl',

Export datagrid to excel using Jquery Easyui

人走茶凉 提交于 2019-11-30 02:32:24
I am new in json. I generated jason data from mysql table using php and want to export the generated json to .xls format. examexport.php <?php include 'conn.php'; $page = isset($_POST['page']) ? intval($_POST['page']) : 1; $rows = isset($_POST['rows']) ? intval($_POST['rows']) : 10; $semester = isset($_POST['semester']) ? mysql_real_escape_string($_POST['semester']) : ''; $entry = isset($_POST['entry']) ? mysql_real_escape_string($_POST['entry']) : ''; $batch = isset($_POST['batch']) ? mysql_real_escape_string($_POST['batch']) : ''; //phpexcel things go here ?> My php generated json: {"total":

jqGrid Column Group

ぃ、小莉子 提交于 2019-11-28 07:06:27
can I implement a column group in jqGrid like the jQuery EasyUI library does? You can figure out what I mean by going on the jQuery EasyUI demo web site, and choose Datagrid then Column Group from the left menu. Thanks for helping Oleg Your question is not new. Many times the corresponding feature request was asked in trirand forum or on the stackoverflow. I give another answer on the close question some time before. Now after reading of your question I do decided don't make a perfect solution supporting all jqGrid features (which is too difficult at once). Instead of that I decide to create a