Flexigrid - Lightweight but rich data grid |
[eluser]eRic.Net[/eluser]
flexigrid is great!! I'm using flexigrid in asp.net,but it doesn't work. Response Content: Code: {page :1,total:2,rows:[{id:'1',cell:[{'1','Map_A','M',''}]},{id:'2',cell:[{'2','Map_B','N',''}]}]} Code: $(document).ready(function() Code: string JSON = "";
[eluser]eRic.Net[/eluser]
Got it. Response Content should be like this: Code: {page :1, total:2, rows:[{id:'1',cell:['1','Map_A','M','']}, :-)
[eluser]eRic.Net[/eluser]
put all images into one file will be better, i think.
[eluser]Unknown[/eluser]
[quote author="Armorfist" date="1207857464"]Open the file "system/application/controller/flexigrid.php", go to line 44 and change: Code: $grid_js = build_grid_js('flex1','ajax/',$colModel,$buttons,'id','asc','auto','400',$this->config->item('fg_per_page')); to Code: $grid_js = build_grid_js('flex1','/jf/index.php/ajax/index',$colModel,$buttons,'id','asc','auto','400',$this->config->item('fg_per_page')); I think the first one should work, but lets see if that solves the problem. The second function parameter is the URL which the data is retrieved. In this case the "ajax" controller. To see what the other arguments represent open the "system/application/helpers/flexigrid_helper" file and read the function comments.[/quote] Hi I have the same problem with wish_bear and tried what you suggested and i still cant get it to load I even placed "exit;" on ajax.php just to see if it goes there and nothing happens... i'm stuck with this for a while now... pls help =) EDIT: ok i found the problem, it was not the build_grid_js('flex1','/jf/index.php/ajax/index'.... etc i missed a line of code <table id="flex1" style="display:none"></table> which prevented the grid from displaying =/
[eluser]Dan Decker[/eluser]
paulo, this is awesome! I'm just getting my feet wet with jQuery, and this is by far the best looking table manipulator out there. I am having some issues that don't seem to make much sense. When I look at your examples, and other examples based on flexigrid, things look fantastic! But when I view my own code in Safar 3.1.1, the bars for resizing columns don't show correctly (they are "off the mark"), and the menu and image for show/hide columns appears in the middle of the column's heading. Here's the Code: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" I've attached a screenshot of the issue. TIA,
[eluser]Dan Decker[/eluser]
OK, so egg on my face here, but if you set each < th > element's width attribute to match the width option in the flexigrid params, problem solved. :red: EDIT: Apparently it was a fluke, I'm still having the issue. :-(
[eluser]Kevin Kietel[/eluser]
[quote author="Roberto Miguez" date="1209204323"]Trying the example made by Kevin Kietel at http://sanderkorvemaker.nl/test/flexigrid/ I saw that the search based on letters doesn't work. This is a great functionality. Can anyone help me to solve this issue? I tried but I don't know what to do.[/quote] @Roberto: I've updated the example on http://sanderkorvemaker.nl/test/flexigrid/ (the zip file is also updated) The search based on letters is functional now. You can use the letters on the top of the grid to find items that start with a certain letter. The search criteria are set by the select box in the quick search bar. So when the quick search bar is set to 'name', and you press the letter F, the MySQL query will be like: Code: SELECT id,iso,name,printable_name,iso3,numcode FROM country WHERE `name` LIKE 'F%' When you want to see all numerical items, the MySQL query will be: Code: SELECT id,iso,name,printable_name,iso3,numcode FROM country WHERE `name` REGEXP '[[:digit:]]' Hope this will help you and other users!
[eluser]noon[/eluser]
What I am going for is a true flexi flexigrid. I want my widths/heights fluid to fill an entire browser window regardless of the size. Anyone think its possible? Did it already? Want to help?
[eluser]noon[/eluser]
IE6 bug -- setting width to 'auto' results in the pagination display to disappear when you hover over any of the column names or buttons. |
Welcome Guest, Not a member yet? Register Sign In |