Is there a built in method or function similar to the #master_checkbox for the select? I have a coro column that i would like to have a select in the header and allow users to make a selection in it and cause all the selects in that column of the grid to change to that selection.
Unfortunately there is no such select.
But you may add any custom html-content to your header with the required logic.
Thank you for the reply Sematik.
Here is my code to produce a master_select in a Grid header. It works the same as the #master_checkbox and works accross all pages if paging is enabled.
myGrid.attachHeader("#master_checkbox,<div id='master_select' style='width:100%;text-align:center;'></div>);
document.getElementById('master_select').innerHTML="<select onChange='mSel(value)'><option value=1>Option 1</option><option value=2>Option 2</option><option value=3>Option 3</option></selection>";
// #master_select function
function mSel(value){
myGrid.forEachRowA(function(id){
myGrid.cells(id,columnID*).setValue(value);
});
}
*column ID of input selects
This is the good solution if the options of the select are known before the loading the data to the grid.