4 Replies - 132 Views - Last Post: 11 June 2018 - 08:24 PM

#1 sagrawal003   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-June 18

How to make row static in table sorter by maintaining its position

Posted 11 June 2018 - 04:33 AM

I have a requirement in table sorter with Tree Tables. See the example at http://keyboarddrumm...tree-table.html

It sorts at the parent level and then inside the respective parents, it shorts child rows within that parent which is great.

My requirement is for making a row static so that row should not sort and maintain its index within the parent.

There is static row widget: https://mottie.githu...static-row.html But it will lock the static row in its position/index in the table including parent index.

So suppose, if I mark 'Ca´ro'(index=2, row=3) as static inside 'Africa -> Egypt' then on sorting, above widget will show 'Ca´ro' on row 3rd only and hence 'Africa -> Egypt' will not have 'Ca´ro' so 'Ca´ro' moves out from parent.

And my requirement with above example is that, 'Ca´ro' position/index should be maintained at index 0 inside Africa -> Egypt.

So after sorting as per 2.png screen Attached Image, 'Ca´ro' should be at index 0 and should be ignored in sorting and 'Luxor' should be sorted from index 1 onwards with rest of the rows(if present).

If anyone can help me on this, it would save my day. :)/>

Thanks.

Attached image(s)

  • Attached Image


Is This A Good Question/Topic? 0
  • +

Replies To: How to make row static in table sorter by maintaining its position

#2 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2029
  • View blog
  • Posts: 6,193
  • Joined: 15-January 14

Re: How to make row static in table sorter by maintaining its position

Posted 11 June 2018 - 10:47 AM

If you want to use that library, it sounds like you need to make a new widget or plugin to do that if you don't find an existing one.
Was This Post Helpful? 0
  • +
  • -

#3 sagrawal003   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-June 18

Re: How to make row static in table sorter by maintaining its position

Posted 11 June 2018 - 11:09 AM

View PostArtificialSoldier, on 11 June 2018 - 10:47 AM, said:

If you want to use that library, it sounds like you need to make a new widget or plugin to do that if you don't find an existing one.


OK. I did not find any existing one. Do you know any other library or plugin for this ?
Was This Post Helpful? 0
  • +
  • -

#4 ArtificialSoldier   User is offline

  • D.I.C Lover
  • member icon

Reputation: 2029
  • View blog
  • Posts: 6,193
  • Joined: 15-January 14

Re: How to make row static in table sorter by maintaining its position

Posted 11 June 2018 - 12:34 PM

Not off the top of my head, no.
Was This Post Helpful? 0
  • +
  • -

#5 sagrawal003   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 11-June 18

Re: How to make row static in table sorter by maintaining its position

Posted 11 June 2018 - 08:24 PM

View PostArtificialSoldier, on 11 June 2018 - 12:34 PM, said:

Not off the top of my head, no.


Ok.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1