Dear Syncfusion-Team,
is there a simple way to adjust the size of the Excel-Filter popup dialog of a MVC-grid?
I could not find any property to set the height or width of the popup in the FilterSettings Properties.
Kind Regards
Markus
|
function actionBegin (args) {
if (args.requestType == 'filterchoicerequest') {
args.filterModel.dlg.style.height = '500px'; // set the height of the dialog
args.filterModel.dlg.style.width = '300px'; // set the width of the dialog
args.filterModel.dlg.querySelector('.e-checkboxlist.e-fields').style.height = '240px'; // set the height of the dialog content
}
}
|
Hi Rajapandiyan,
thank you for your reply.
Howerver, my question was concerning MVC (Classic/jquery).
Your solution can be adapted to EJ2 and does not work for MVC (Classic)
Would you mind providing a solution for MVC (Classic) ?
Nevertheless, I tried to adapt your solution in a different project with EJ2.
Enlarging the width and height will result in a corrupted dialog. (see attached screenshot)
The top part of the filter dialog does not adapt to the new dialog width.
The dropdown entries width does not adapt to the new width resulting in a word wrap of the item texts.
Besides: would it be possible to have MVC-Helper Properties to set the filter dialog height and width and let your component figure out the sizes of the child elements instead of getting this b in JS?
Kind Regards
Markus