Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 0.75 KB  |  hits: 18  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. jqGrid Column Chooser dialog is resizable but when resized the inner contents are not stretched on resize
  2. $(this).jqGrid('columnChooser',
  3.     {width: 550, msel_opts: {dividerLocation: 0.5}});
  4. var columnChooser = $("#colchooser_" + $.jgrid.jqID(this.id));
  5. columnChooser.css('min-width', columnChooser.width() + 'px');
  6. var dialog = columnChooser.closest('div.ui-dialog');
  7. columnChooser.closest('div.ui-dialog').css('min-width', dialog.width() + 'px');
  8.  
  9. var div = columnChooser.children('div:has(div.ui-multiselect)');
  10. div.css('width', '100%');
  11.  
  12. var uiMultiselect = div.children('div.ui-multiselect');
  13. uiMultiselect.css('width', '100%');
  14. uiMultiselect.children('div.available').css({width: '49.9%'});
  15. uiMultiselect.children('div.selected').css('width', '49.9%');