Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
UltraWebGrid & WebCombo DefaultRowHeight Lost?
posted

I created a simple master/detail page using a webcombo and webgrid.  Everything worked fine, until I added a WARP to the mix.

Now, when I select something in the webcombo, both it and the grid lose their defaultrowheight setting, and the row sizes jump back to the Infragistics default.  I'm a bit confused as to what I could possibly have done to cause this...this is way to simple a page to have problems.

Any advice apprecietd

My aspx:

<igcmbo:WebCombo ID="WebCombo1" runat="server" Version="4.00" DataValueField="VehicleID" OnSelectedRowChanged="WebCombo1_SelectedRowChanged">

<Columns>

<igtbl:UltraGridColumn BaseColumnName="SerialNumber">

<Header Caption="Serial #"></Header>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="ColorText">

<Header Caption="Color"> <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>

</Header>

<Footer> <RowLayoutColumnInfo OriginX="1"></RowLayoutColumnInfo>

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="ModelYear">

<Header Caption="Year"> <RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>

</Header>

<Footer> <RowLayoutColumnInfo OriginX="2"></RowLayoutColumnInfo>

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="VehicleMakeText">

<Header Caption="Make"> <RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>

</Header>

<Footer> <RowLayoutColumnInfo OriginX="3"></RowLayoutColumnInfo>

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="VehicleModelText">

<Header Caption="Model"> <RowLayoutColumnInfo OriginX="4"></RowLayoutColumnInfo>

</Header>

<Footer> <RowLayoutColumnInfo OriginX="4"></RowLayoutColumnInfo>

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="VehicleStyleText">

<Header Caption="Style"> <RowLayoutColumnInfo OriginX="5"></RowLayoutColumnInfo>

</Header>

<Footer> <RowLayoutColumnInfo OriginX="5"></RowLayoutColumnInfo>

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="VehicleTypeText">

<Header Caption="Type"> <RowLayoutColumnInfo OriginX="6"></RowLayoutColumnInfo>

</Header>

<Footer> <RowLayoutColumnInfo OriginX="6"></RowLayoutColumnInfo>

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="MVIVehicleID" Hidden="True" Key="VehicleID">

<Header> <RowLayoutColumnInfo OriginX="7"></RowLayoutColumnInfo>

</Header>

<Footer> <RowLayoutColumnInfo OriginX="7"></RowLayoutColumnInfo>

</Footer>

</igtbl:UltraGridColumn>

</Columns>

<ExpandEffects ShadowColor="LightGray" Type="Fade" />

<DropDownLayout AutoGenerateColumns="False" DropdownHeight="" DropdownWidth="" RowHeightDefault="15px"

Version="4.00">

</DropDownLayout>

</igcmbo:WebCombo>

<br />

<igmisc:WebAsyncRefreshPanel ID="WebAsyncRefreshPanel1" runat="server" Height="20px"

TriggerControlIDs="WebCombo1" Width="80px">

<igtbl:UltraWebGrid ID="gvOwner" runat="server" DataKeyField="MVIOwnerID" EnableAppStyling="True" Browser="Xml">

<Bands>

<igtbl:UltraGridBand DataKeyField="MVIOwnerID">

<Columns>

<igtbl:UltraGridColumn BaseColumnName="MVIOwnerID" Hidden="True">

<Header Caption="MVIOwnerID">

</Header>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="MNIIdentityID">

<Header Caption="Identity ID">

<RowLayoutColumnInfo OriginX="1" />

</Header>

<Footer>

<RowLayoutColumnInfo OriginX="1" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="MBIBusinessID">

<Header Caption="Business ID">

<RowLayoutColumnInfo OriginX="2" />

</Header>

<Footer>

<RowLayoutColumnInfo OriginX="2" />

</Footer>

</igtbl:UltraGridColumn>

<igtbl:UltraGridColumn BaseColumnName="DateObserved">

<Header Caption="Date Observed">

<RowLayoutColumnInfo OriginX="3" />

</Header>

<Footer>

<RowLayoutColumnInfo OriginX="3" />

</Footer>

</igtbl:UltraGridColumn>

</Columns>

<AddNewRow View="NotSet" Visible="NotSet">

</AddNewRow>

</igtbl:UltraGridBand>

</Bands>

<DisplayLayout AutoGenerateColumns="False" BorderCollapseDefault="Separate" CellClickActionDefault="RowSelect"

Name="gvOwner" ReadOnly="LevelZero" RowHeightDefault="15px" RowSelectorsDefault="No"

SelectTypeRowDefault="Single" Version="4.00">

<RowStyleDefault Height="15px">

</RowStyleDefault>

<ActivationObject BorderColor="" BorderWidth="">

</ActivationObject>

</DisplayLayout>

</igtbl:UltraWebGrid></igmisc:WebAsyncRefreshPanel>

Codebehind:

public partial class _Default : System.Web.UI.Page

{

protected void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack) {

WebCombo1.DataSource = DAL.MVI.Vehicle.GetAll();

WebCombo1.DataBind();

}

}

protected void WebCombo1_SelectedRowChanged(object sender, Infragistics.WebUI.WebCombo.SelectedRowChangedEventArgs e) {

Infragistics.WebUI.WebCombo.WebCombo c = (Infragistics.WebUI.WebCombo.WebCombo)sender;

gvOwner.DataSource = DAL.MVI.Owner.GetListByMVIVehicle((int)c.DataValue);

gvOwner.DataBind();

}

Parents
No Data
Reply
  • 130
    posted

    Hi,

    I was wondering if you ever managed to solve this?  I am having a similar problem - I surrounded my webgrid and a label control with a WARP control in order to update the label each time a cell is clicked.  This works fine, but now when a cell is clicked the grid loses some of the styles that have been set on it, for example, the horizontal alignment of the columns.

     Thanks.

Children
No Data