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
404
Webdatechooser as an editor in WebGrid Thrown off by WebGroupbybox?
posted

I am posting this not only in hopes of getting an answer, but hopefully to save someone else the madness

this issue drove me to.  The scenario is this:

  • Using version Version 8.3.20083.1009
  • Created a web form using the WebGroupBox Control
  • Underneath the WebgroupBox control was a UltraWebGrid
  • One of the Columns of the grid used a WebDateChooser as an editor.  Note: Both the Gride and the date chooser are outside the GroupByBox
  • Run the page, the Date Chooser editor in the grid acts strange, takes multiple clicks to open, when open won't stay open etc
  • Spent a long tome debugging the grid, no joy  To simplify things put the grid/date choser code in a new clean page, now the datchooser editor works just fine!
  • Start adding in controls from my original page, as soon as WebGroupBox added (and nothing inside the GroupBy, not even the template tag) webdatechooser editor in grid becomes "wacky" again

Anyone wlse seen this behavior?  Workaround or fix?  At the very least I hope I can prevent someone else going nuts with this.

  • 404
    posted

    O.K.  Did somemore sleuthing and found the answer as screw as it is:  I had the width atribute of the WebGroupBy set to 100%.  As soon as I removed the width attribute the DateChooser editor in the Ultrawebgris began to work again.(!?)

    Here is a simple test page I wrote up, this recreates the problem.  Pull the width attribute and problem goes away

    ASP Form

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    <

     

     

    head runat

    ="server">

     

     

    <title>Untitled Page</title

    >

    </

     

     

    head

    >

    <

     

     

    body

    >

     

     

    <form id="form1" runat

    ="server">

     

     

    <div

    >

     

     

    <asp:Label id="lblTitle" runat="server" ForeColor="Navy" Font-Size="X-Large" Font-Names="Georgia" Font-Bold="True" Text="Labor Order Details"></asp:Label

    >

     

     

    <asp:Label ID="lblError" runat="server" Font-Bold="True" Font-Italic="True" Font-Size

    ="X-Large"

     

     

    ForeColor="Red"></asp:Label

    >

     

     

    <br

    />

     

     

     

    <igmisc:WebGroupBox ID="WebGroupBox1" runat="server" Text="Exhibit Information" Width

    ="100%">

     

     

    </igmisc:WebGroupBox

    >

     

     

     

    <br

    />

     

     

     

     

     

    <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server" Height="200px" Width

    ="325px">

     

     

    <Bands

    >

     

     

    <igtbl:UltraGridBand

    >

     

     

    <AddNewRow View="NotSet" Visible

    ="NotSet">

     

     

    </AddNewRow

    >

     

     

    </igtbl:UltraGridBand

    >

     

     

    </Bands

    >

     

     

    <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowDeleteDefault

    ="Yes"

     

     

    AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" BorderCollapseDefault

    ="Separate"

     

     

    HeaderClickActionDefault="SortMulti" Name="UltraWebGrid1" RowHeightDefault

    ="20px"

     

     

    RowSelectorsDefault="No" SelectTypeRowDefault="Extended" StationaryMargins

    ="Header"

     

     

    StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" ViewType

    ="OutlookGroupBy">

     

     

    <FrameStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle

    ="Solid"

     

     

    BorderWidth="1px" Font-Names="Microsoft Sans Serif" Font-Size="8.25pt" Height

    ="200px"

     

     

    Width

    ="325px">

     

     

    </FrameStyle

    >

     

     

    <Pager MinimumPagesForDisplay

    ="2">

     

     

    <PagerStyle BackColor="LightGray" BorderStyle="Solid" BorderWidth

    ="1px">

     

     

    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

    />

     

     

    </PagerStyle

    >

     

     

    </Pager

    >

     

     

    <EditCellStyleDefault BorderStyle="None" BorderWidth

    ="0px">

     

     

    </EditCellStyleDefault

    >

     

     

    <FooterStyleDefault BackColor="LightGray" BorderStyle="Solid" BorderWidth

    ="1px">

     

     

    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

    />

     

     

    </FooterStyleDefault

    >

     

     

    <HeaderStyleDefault BackColor="LightGray" BorderStyle="Solid" HorizontalAlign

    ="Left">

     

     

    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

    />

     

     

    </HeaderStyleDefault

    >

     

     

    <RowStyleDefault BackColor="Window" BorderColor="Silver" BorderStyle="Solid" BorderWidth

    ="1px"

     

     

    Font-Names="Microsoft Sans Serif" Font-Size

    ="8.25pt">

     

     

    <Padding Left="3px"

    />

     

     

    <BorderDetails ColorLeft="Window" ColorTop="Window"

    />

     

     

    </RowStyleDefault

    >

     

     

    <GroupByRowStyleDefault BackColor="Control" BorderColor

    ="Window">

     

     

    </GroupByRowStyleDefault

    >

     

     

    <GroupByBox

    >

     

     

    <BoxStyle BackColor="ActiveBorder" BorderColor

    ="Window">

     

     

    </BoxStyle

    >

     

     

    </GroupByBox

    >

     

     

    <AddNewBox Hidden

    ="False">

     

     

    <BoxStyle BackColor="Window" BorderColor="InactiveCaption" BorderStyle="Solid" BorderWidth

    ="1px">

     

     

    <BorderDetails ColorLeft="White" ColorTop="White" WidthLeft="1px" WidthTop="1px"

    />

     

     

    </BoxStyle

    >

     

     

    </AddNewBox

    >

     

     

    <ActivationObject BorderColor="" BorderWidth

    ="">

     

     

    </ActivationObject

    >

     

     

    <FilterOptionsDefault

    >

     

     

    <FilterDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle="Solid" BorderWidth

    ="1px"

     

     

    CustomRules="overflow:auto;" Font-Names

    ="Verdana,Arial,Helvetica,sans-serif"

     

     

    Font-Size="11px" Height="300px" Width

    ="200px">

     

     

    <Padding Left="2px"

    />

     

     

    </FilterDropDownStyle

    >

     

     

    <FilterHighlightRowStyle BackColor="#151C55" ForeColor

    ="White">

     

     

    </FilterHighlightRowStyle

    >

     

     

    <FilterOperandDropDownStyle BackColor="White" BorderColor="Silver" BorderStyle

    ="Solid"

     

     

    BorderWidth="1px" CustomRules="overflow:auto;" Font-Names

    ="Verdana,Arial,Helvetica,sans-serif"

     

     

    Font-Size

    ="11px">

     

     

    <Padding Left="2px"

    />

     

     

    </FilterOperandDropDownStyle

    >

     

     

    </FilterOptionsDefault

    >

     

     

    </DisplayLayout

    >

     

     

    </igtbl:UltraWebGrid></div

    >

     

     

    <igsch:WebDateChooser ID="DateEdit" runat="server" BorderWidth

    ="0px">

     

     

    <CalendarLayout DayNameFormat="FirstLetter" FooterFormat="" ShowFooter="False" ShowNextPrevMonth

    ="False"

     

     

    ShowTitle

    ="False">

     

     

    <CalendarStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" Font-Strikeout

    ="False"

     

     

    Font-Underline

    ="False">

     

     

    </CalendarStyle

    >

     

     

    <DayHeaderStyle BackColor="#7A96DF" ForeColor="White"

    />

     

     

    <DayStyle BackColor="White" Font-Names="Arial" Font-Size="9pt"

    />

     

     

    <OtherMonthDayStyle ForeColor="#ACA899"

    />

     

     

    <SelectedDayStyle BackColor="#0054E3"

    />

     

     

    <TitleStyle BackColor="#9EBEF5"

    />

     

     

    </CalendarLayout

    >

     

     

    </igsch:WebDateChooser

    >

     

     

    </form

    >

    </

     

     

    body

    >

    </

     

     

    html

    >

     Code Behind

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    using

     

     

    System;

    using

     

     

    System.Data;

    using

     

     

    System.Configuration;

    using

     

     

    System.Collections;

    using

     

     

    System.Web;

    using

     

     

    System.Web.Security;

    using

     

     

    System.Web.UI;

    using

     

     

    System.Web.UI.WebControls;

    using

     

     

    System.Web.UI.WebControls.WebParts;

    using

     

     

    System.Web.UI.HtmlControls;

    using

     

     

    Infragistics.WebUI.UltraWebGrid;

    public

     

     

    partial class LaborOrder_LaborOrderDetails : System.Web.UI.

    Page

    {

     

     

    protected void Page_Load(object sender, EventArgs

    e)

    {

    FormatGrid();

    }

     

     

    protected void

    FormatGrid()

    {

    UltraWebGrid1.DisplayLayout.AutoGenerateColumns =

     

    false

    ;

    UltraWebGrid1.DisplayLayout.AllowAddNewDefault=

     

    AllowAddNew

    .Yes;

    UltraWebGrid1.DisplayLayout.AllowUpdateDefault =

     

    AllowUpdate

    .Yes;

    UltraWebGrid1.DisplayLayout.RowSizingDefault =

     

    AllowSizing

    .Free;

    UltraWebGrid1.DisplayLayout.AllowColSizingDefault =

     

    AllowSizing

    .Free;

    UltraWebGrid1.DisplayLayout.SelectTypeCellDefault =

     

    SelectType

    .None;

    UltraWebGrid1.DisplayLayout.SelectTypeRowDefault =

     

    SelectType

    .None;

    UltraWebGrid1.DisplayLayout.CellClickActionDefault =

     

    CellClickAction

    .Edit;

    UltraWebGrid1.DisplayLayout.AddNewRowDefault.Visible=

     

    AddNewRowVisible

    .Yes;

    UltraWebGrid1.DisplayLayout.AddNewBox.Hidden =

     

    true

    ;

     

    UltraWebGrid1.Columns.Add(

     

    "pkey", "pkey"

    );

    UltraWebGrid1.Columns.Add(

     

    "Activity", ""

    );

    UltraWebGrid1.Columns.Add(

     

    "Date", "Date"

    );

    UltraWebGrid1.Columns.Add(

     

    "Time", "Time"

    );

    UltraWebGrid1.Columns.Add(

     

    "Number", "Number Workers"

    );

    UltraWebGrid1.Columns.Add(

     

    "Hours", "Est. Hours Per"

    );

    UltraWebGrid1.Columns.Add(

     

    "Notes", "Additional Show Notes"

    );

    UltraWebGrid1.Columns.FromKey(

     

    "Date").DataType = "System.DateTime"

    ;

    UltraWebGrid1.Columns.FromKey(

     

    "Date").Format = "M/dd/yyyy"

    ;

    UltraWebGrid1.Columns.FromKey(

     

    "Date").Type = ColumnType

    .Custom;

    UltraWebGrid1.Columns.FromKey(

     

    "Date").EditorControlID = "DateEdit"

    ;