Hi Cloudream,

Thanks a lot that piece of code did the magic.
Now i am able to retain the state of the controls after sorting.....

With Thanks and Regards

Balaji


On Dec 12, 11:15 pm, Cloudream <[email protected]> wrote:
> Bind sortStart function to save status and sortEnd function to
> restore.
>
> e.g.
>
> var ids = [];
>
> TheTable.tablesorter().bind("sortStart",function(){
> // call before sort
> $(":checked").each(function(){
> ids.push($(this).attr("id"));});
> }).bind("sortEnd",function(){
>
> // call after sort
> $("#"+ids.join(",#")).attr("checked","checked");
>
> });
>
> On Dec 12, 1:32 pm, balajiv164 <[email protected]> wrote:
>
>
>
> > Hi team,
>
> > I had implemented the Table sorter plugin (created by Christian Bach)
> > in my application. Every thing works fine except one thing.
>
> > My grid view has the option to select the required row through check
> > box and radio button. But the problem is after selecting some thing
> > from the grid view and If i sort the grid, the selection goes off.
>
> > Is there any way to maintain the state of the checkboxes and the radio
> > buttons in the grid view after sorting?
>
> > Note: I have a HTML control (checkbox) in the header through which i
> > am invoking the function to select all the rows in the grid and after
> > if i sort the grid, the state is lost.
> > I need to retain the state after sorting.
>
> > Can you help me in this regard?
>
> > Thanks
> > Balaji- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to