<div id="ygrps-yiv-281256326ygrp-text"> <p>
// **************************************************
// Custom code for IssueMaterialForm
// Created: 7/22/2015 7:33:39 AM
// **************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.UI;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
using Infragistics.Win.UltraWinGrid;
public class Script
{
// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
// Begin Wizard Added Module Level Variables **
// End Wizard Added Module Level Variables **
// Add Custom Module Level Variables Here **
private Erp.UI.Controls.Combos.JobMtlSearchCombo ctrl;
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
ctrl = (Erp.UI.Controls.Combos.JobMtlSearchCombo)csm.GetNativeControlReference("3c29bb2b-cc78-4cab-80c8-f004923fdbae");
this.ctrl.BeforeDropDown += new System.ComponentModel.CancelEventHandler(this.ctrl_BeforeDropDown);
this.ctrl.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.ctrl_InitializeLayout);
// End Wizard Added Custom Method Calls
}
public void DestroyCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
// Begin Wizard Added Object Disposal
this.ctrl.BeforeDropDown -= new System.ComponentModel.CancelEventHandler(this.ctrl_BeforeDropDown);
this.ctrl.InitializeLayout -= new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.ctrl_InitializeLayout);
// End Wizard Added Object Disposal
// Begin Custom Code Disposal
ctrl = null;
// End Custom Code Disposal
}
private void IssueMaterialForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
}
private void ctrl_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)
{
// ** Place Event Handling Code Here **
ctrl.DisplayLayout.Bands[0].Columns[0].Width = 20;
ctrl.DisplayLayout.Bands[0].Columns[1].Width = 100;
}
private void ctrl_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args)
{
// ** Place Event Handling Code Here **
args.Layout.Override.AllowColSizing = AllowColSizing.Free;
args.Layout.PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand,true);
}
}
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, July 22, 2015 2:55 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: E10 Adjust Combo dropdown Width
Can you provide an example of how you did this?
Thanks,
Tanner
</div> <div style="color:#fff;height:0;"></div>
Before re-inventing the wheel.....
On the Issue Material screen, the Mtl Seq dropdown has 3 columns.
Mtl Seq, PartNum, Description.
The Mtl Seq Column is too wide, The PartNum column is too narrow. I have tried various combinations of the Native AutoWidth and AutoWidthOption in the property sheet with no effect.
Does anyone have an example of how to auto resize the columns to fit their contents on a Native Erp.UI.Controls.Combos.JobMtlSearchCombo ?
Reinvention complete
Disregard original message
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, July 22, 2015 7:29 AM
To: vantage@yahoogroups.com
Subject: [Vantage] E10 Adjust Combo dropdown Width
Before re-inventing the wheel.....
On the Issue Material screen, the Mtl Seq dropdown has 3 columns.
Mtl Seq, PartNum, Description.
The Mtl Seq Column is too wide, The PartNum column is too narrow. I have tried various combinations of the Native AutoWidth and AutoWidthOption in the property sheet with no effect.
Does anyone have an example of how to auto resize the columns to fit their contents on a Native Erp.UI.Controls.Combos.JobMtlSearchCombo ?
Can you provide an example of how you did this?
Thanks,
Tanner
// **************************************************
// Custom code for IssueMaterialForm
// Created: 7/22/2015 7:33:39 AM
// **************************************************
using System;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Windows.Forms;
using Erp.UI;
using Ice.Lib.Customization;
using Ice.Lib.ExtendedProps;
using Ice.Lib.Framework;
using Ice.Lib.Searches;
using Ice.UI.FormFunctions;
using Infragistics.Win.UltraWinGrid;
public class Script
{
// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
// Begin Wizard Added Module Level Variables **
// End Wizard Added Module Level Variables **
// Add Custom Module Level Variables Here **
private Erp.UI.Controls.Combos.JobMtlSearchCombo ctrl;
public void InitializeCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
// Begin Wizard Added Variable Initialization
// End Wizard Added Variable Initialization
// Begin Wizard Added Custom Method Calls
ctrl = (Erp.UI.Controls.Combos.JobMtlSearchCombo)csm.GetNativeControlReference("3c29bb2b-cc78-4cab-80c8-f004923fdbae");
this.ctrl.BeforeDropDown += new System.ComponentModel.CancelEventHandler(this.ctrl_BeforeDropDown);
this.ctrl.InitializeLayout += new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.ctrl_InitializeLayout);
// End Wizard Added Custom Method Calls
}
public void DestroyCustomCode()
{
// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
// Begin Wizard Added Object Disposal
this.ctrl.BeforeDropDown -= new System.ComponentModel.CancelEventHandler(this.ctrl_BeforeDropDown);
this.ctrl.InitializeLayout -= new Infragistics.Win.UltraWinGrid.InitializeLayoutEventHandler(this.ctrl_InitializeLayout);
// End Wizard Added Object Disposal
// Begin Custom Code Disposal
ctrl = null;
// End Custom Code Disposal
}
private void IssueMaterialForm_Load(object sender, EventArgs args)
{
// Add Event Handler Code
}
private void ctrl_BeforeDropDown(object sender, System.ComponentModel.CancelEventArgs args)
{
// ** Place Event Handling Code Here **
ctrl.DisplayLayout.Bands[0].Columns[0].Width = 20;
ctrl.DisplayLayout.Bands[0].Columns[1].Width = 100;
}
private void ctrl_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs args)
{
// ** Place Event Handling Code Here **
args.Layout.Override.AllowColSizing = AllowColSizing.Free;
args.Layout.PerformAutoResizeColumns(true, PerformAutoSizeType.AllRowsInBand,true);
}
}
From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Wednesday, July 22, 2015 2:55 PM
To: vantage@yahoogroups.com
Subject: [Vantage] Re: E10 Adjust Combo dropdown Width
Can you provide an example of how you did this?
Thanks,
Tanner