Tamamlanmış

Custom [login to view URL] sort function where cell has two values

I am using [url removed, login to view] and after the table is initialized in one column the cells "td" elements have the following html within.

<td>

<h4 data-pos="5">5</h4>

<span data-second="-4">-4</span>

</td>

I have a custom drop down in the table header with two buttons. Each button's click event is linked to this column and the associate data attributes. On click I would like the column to be sorted by either data-pos or data-second depending on the button clicked, when clicked again it will sort in ASC then DESC.

So you will need to write a function to get the data attributes and either re order the table or sort the table by these values.

You may find this helpful

[url removed, login to view]

[url removed, login to view]()

[url removed, login to view]()

My table builds from a JSON response from server. I would like you to use static data using my example above in jsfiddle and show your work.

Thank you

Beceriler: C# Programlama, HTML, Javascript, jQuery / Prototype, PHP

Daha fazlasını gör: datatables columns render, datatables columns vs columndefs, datatables columns data, datatables mrender, datatables render row index, datatables columns options, datatables render callback, datatables get column name, postgresql custom sort function, javascript custom sort function, best custom controls net, custom dot net nuke templates, autocomplete custom source net, net sort grid, net sort date

İşveren Hakkında:
( 10 değerlendirme ) Mount Sinai, United States

Proje NO: #15424917

Seçilen:

emreg

Hi there. I can do your datatable sorting project within a couple of hours. Thanks Relevant Skills and Experience javascript Proposed Milestones $25 USD - Final

%selectedBids___i_period_sub_7% gün içinde 25%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(182 Değerlendirme)
6.1

Bu iş için 5 freelancer ortalamada $32 teklif veriyor

leavetop

hello there,i have datatable experience.i can add sort functions thank you

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(25 Değerlendirme)
4.5
in %bids___i_period_sub_35% gün içinde50%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(15 Değerlendirme)
4.3
Mickelson

Hi Nice to meet you I have enough experience in datatable plugin I want know more details You can check my profile and reviews Best regards Stay tuned, I'm still working on this proposal.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(11 Değerlendirme)
3.8
syedhussaintaqvi

A proposal has not yet been provided

in %bids___i_period_sub_35% gün içinde30%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)
0.0