Flexigrid - Lightweight but rich data grid |
[eluser]paulopmx[/eluser]
[quote author="Xiomay" date="1208380778"]Hi people, i have a simple question actually. I want to swap some columns not with drag and drop but with a script function. Can i access the method switchCol(x,y) in the flexigrid with javascript ? like this one? Code: $.fn.switchX = function(p,p1){ //create a new method to access switchCol and then with a href i would like to operate the switchX(x,y) method. like this: Code: <a href="[removed]$('#table-2').switchX(7,5);">Swap Columns</a> thanks a lot![/quote] Hi Xiomay this will be highly experimental and untested, but you maybe able to access the grid API directly like so: Code: var flex = $('#flex1').flexigrid({ parameters set here }); Hope it works out.
[eluser]paulopmx[/eluser]
[quote author="davgino" date="1208283021"][quote author="paulopmx" date="1208149431"][quote author="davgino" date="1208003435"]Hi Paulo When new next realese ?? David O.[/quote] Hi David, Ok i'm putting a nail on my schedule to make it stick :-). I'm planning to make a new release on the 28th of April. I'm still addressing some of the concerns and request that I was made aware of. So if anyone has any last minute request, let me know. Paulo[/quote] 1.Maybe you succeeded in createing a new method for adding a new row ? 2.Did you succeed in adding an Editable rows features ? Pls let me know.[/quote] Hi davigno, 1. Not yet. 2. Also not yet, it might not be until 1.5. But i believe someone in this forum was able to use jEditable successfully.
[eluser]paulopmx[/eluser]
[quote author="zebrahat" date="1208317541"][quote author="paulopmx" date="1208149431"] Ok i'm putting a nail on my schedule to make it stick :-). I'm planning to make a new release on the 28th of April. I'm still addressing some of the concerns and request that I was made aware of. So if anyone has any last minute request, let me know. Paulo[/quote] Would it be possible to create "locked columns"? i.e. columns on the left that do not scroll as you scroll the rest of the dataset horizontally. That would be awesome! Not that your grid isn't already awesome. It is![/quote] Hi zebrahat, I think that would be cool too, but thats a lot of work on my already full schedule. I will think about it and maybe add it to a roadmap. But for reference sake, I believe another grid framework is already doing this.
[eluser]paulopmx[/eluser]
[quote author="Synergiq" date="1207943044"]I've just noticed when I run it in ie7 I get an error saying Line: 403 'id is null or not an object'. Any idea what would cause this?[/quote] Hi synergiq, I answered this question here : http://ellislab.com/forums/viewreply/385467/
[eluser]paulopmx[/eluser]
[quote author="Kevin Kietel" date="1208276649"][quote author="paulopmx" date="1208149431"][quote author="davgino" date="1208003435"]Hi Paulo When new next realese ?? David O.[/quote] Hi David, Ok i'm putting a nail on my schedule to make it stick :-). I'm planning to make a new release on the 28th of April. I'm still addressing some of the concerns and request that I was made aware of. So if anyone has any last minute request, let me know. Paulo[/quote] So if anyone has any last minute request, let me know. >>>> how about something like this?? http://www.isocra.com/2008/02/table-drag...ry-plugin/ (I've tried to get it running, but no success..... :-S )[/quote] Hi Kevin, That's cool Kevin, I will test this if its feasible in my schedule.
[eluser]Balaji ASP[/eluser]
[quote author="paulopmx" date="1208402076"][quote author="Balaji ASP" date="1208373956"]Nice, very nice. Thx my friend...!! i used this query for my applications it's works good... I’ve just noticed when I run it in ie7 server 2003: I get an error saying Line: 402 ‘id is null or not an object’. xp: I get an error saying Line: 403 ‘id is null or not an object’. here is the link http://synergiq.co.uk/test/flexigrid/ plz help me my friend... ASAP...[/quote] Hi Balaji, Here is your problem at the last part of asp file that generates the JSON FILE Code: {id:'245', cell:['245', 'collin','sharples','green','200','sleepy','70','female','76 water terrace','15 rue des begognas','76 water terrace','45 rue de la liberte','london bridge (right under it)','Australia','Bourgogne','1']}, as you can see there is a comma after "'Bourgogne','1']}" what happens is that IE is expecting another array object, but the truth is there isn't anymore. Firefox tries to fix this automatically, but IE requires you to fix it and follow proper array format.[/quote] Thx Thx Thx my friend... for your valuable replay!! :-) now it's working fine... in IE7,Mozilla and other browsers here is the code i used with your suggestion Code: <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%> Thx once again my friend... :-)
[eluser]Xiomay[/eluser]
thanks for the quick reply but it unfortunately doesnt work. what kind of parameters i should so set within this brackets? Code: var flex = $('#table-1').flexigrid({set parameters here}); and this code brings error: Code: flex.grid.switchCol(7,5); this method Code: switchCol: function(cdrag,cdrop) { //switch columns is to swap the columns table, am i right?
[eluser]Xiomay[/eluser]
[quote author="Xiomay" date="1208441282"]thanks for the quick reply but it unfortunately doesnt work. what kind of parameters i should so set within this brackets? Code: var flex = $('#table-1').flexigrid({set parameters here}); and this code brings error: Code: flex.grid.switchCol(7,5); this method Code: switchCol: function(cdrag,cdrop) { //switch columns is to swap the columns table, am i right?[/quote] Now i did it .. but i can only mov the <tbody>, the <thead> still remains at the same position its like this: Code: function swapCol(id){
[eluser]dah[/eluser]
[quote author="paulopmx" date="1208402339"][quote author="dah" date="1208387721"]Thanks! Flexigrid is great. I have been working with it for a while now. I added buttons across the top for each letter of the alphabet to allow users to quickly jump to that record set. Works well except for one issue I am working with... it holds the page number when you click a new letter. So, if you were on page 3 of the records that start with "S" and then click the "A" record set, it starts on page 3 of the "A" set. Get it? I wish I could just show you but currently all the code is behind the firewall. Soon tho. Any ideas on how to reset that page when I click a new letter sorting option? Thanks again for the great code![/quote] Hi dah, Yes you just set the new page in the parameters before reloading flexigrid like so: Code: $('#flex1').flexOptions({newp:1}); Have fun.[/quote] Code: function sortAlpha(com) that seemed to do it!
[eluser]paulopmx[/eluser]
[quote author="Xiomay" date="1208458167"][quote author="Xiomay" date="1208441282"]thanks for the quick reply but it unfortunately doesnt work. what kind of parameters i should so set within this brackets? Code: var flex = $('#table-1').flexigrid({set parameters here}); and this code brings error: Code: flex.grid.switchCol(7,5); this method Code: switchCol: function(cdrag,cdrop) { //switch columns is to swap the columns table, am i right?[/quote] Now i did it .. but i can only mov the <tbody>, the <thead> still remains at the same position its like this: Code: function swapCol(id){ Great Effort Xiomay! Try adding this: Code: $.fn.moveColumn = function(c1,c2) { // function to test |
Welcome Guest, Not a member yet? Register Sign In |