1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
| var totRowIndex = tf_Tag(tf_Id('tableau'),"tr").length;
var tf_table2_Props = {
sort: false,
filters_row_index: 1, //position liste déroulante
remember_grid_values: true,
remember_page_number: false,
remember_page_length: false, // Se souvenir du dernier tri
alternate_rows: true,
paging: false,
results_per_page: ['Résultats par page',[30,40,50,120]],
rows_counter: true,
rows_counter_text: "Nombre de lignes : ",
tot_rows_css_class: 'bandeau_tableau',
loader: true,
loader_css_class: "myLoader",
loader_html: '<img src="./js/img/loader.gif" alt="" style="vertical-align:middle; margin-right:5px;" />Chargement du tableau...',
status_bar: false,
btn_reset: true,
btn_reset_text: "Réinitialiser",
btn_reset_css_class: "bandeau_tableau",
fixed_headers: true,
tbody_height: 600,
col_operation: {
id: ["Tot1"],//id pour le résultat
col: [8],//Numéro des colonnes à sommer
operation: ["sum"],
write_method: ["innerHTML"],
decimal_precision: [0,0]//Nombre de chiffre après la virgule.
},
sort_select: true,
col_0: "select",
col_1: "select",
col_2: "select",
col_3: "select",
col_4: "select",
col_5: "select",
col_6: "select",
col_7: "select",
col_8: "select",
col_9: "select",
col_10: "select",
inf_div_css_class: "inf",
display_all_text: "--Tous--"
}
setFilterGrid("tableau",tf_table2_Props); |
Partager