[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)
{
$('#flex1').flexOptions({newp:1, params:[{name:'letter_pressed', value: com}]});
$("#flex1").flexReload();
}