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
65
Dropdown in header of grid
posted

I need to put a dropdown into the header of a grid.

Any suggestions? 

Parents
  • 80
    posted

    Hi,

         Following code snippet attaching dropdownlist into header of the grid.

     

    <igtbl:UltraWebGrid ID="grdAssignments" Browser="Xml" runat="server" Width="100%" Height="400px" >

     

    <DisplayLayout AllowColSizingDefault="Free" AllowDeleteDefault="Yes"

    AllowSortingDefault="OnClient" HeaderClickActionDefault="NotSet" CellClickActionDefault="Edit" AllowUpdateDefault="Yes" BorderCollapseDefault= "NotSet"

    Name="grdAssignments" RowHeightDefault="26px" LoadOnDemand="Xml"

    RowSelectorsDefault="No" SelectTypeRowDefault="Extended" Version="4.00" AutoGenerateColumns="False" >

    <HeaderStyleDefault Font-Bold="true" HorizontalAlign="Left" BorderStyle="Solid" BorderWidth="1px"

    BorderColor="Silver" CssClass="rowHeaderstyle" Font-Size="Smaller" Width="100px" >

    </HeaderStyleDefault>

    <FrameStyle cssclass="ultraWebGrid" > </FrameStyle>

    <SelectedRowStyleDefault CssClass="HighlightRowStyle"></SelectedRowStyleDefault>

    <FooterStyleDefault font-bold="True" borderstyle="Double" CssClass ="rowFooterStyle"></FooterStyleDefault>

    <RowStyleDefault Font-Size="Medium" HorizontalAlign="Left" CssClass="rowStyle" Font-Bold="true" > </RowStyleDefault>

    <RowAlternateStyleDefault Font-Size="Medium" Font-Bold="true" CssClass="alternatingRowStyle"></RowAlternateStyleDefault>

    <FilterOptionsDefault>

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

    CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px"

    Width="200px">

    <Padding Left="2px" />

    </FilterDropDownStyle>

    <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">

    </FilterHighlightRowStyle>

    </FilterOptionsDefault>

    <ActivationObject BorderColor="" BorderWidth="">

    </ActivationObject>

     

    </DisplayLayout>

    <Bands>

    <igtbl:UltraGridBand AddButtonCaption="addAssignments" >

    <Columns >

    <igtbl:TemplatedColumn Type="DropDownList" Width="50px" AllowUpdate="yes" >

    <HeaderTemplate>

    <select> <option value ="volvo">Volvo</option> <option value ="saab">Saab</option> <option value ="opel">Opel</option> <option value ="audi">Audi</option></select>

    </HeaderTemplate>

    </igtbl:TemplatedColumn>

     

    <igtbl:UltraGridColumn AllowUpdate="No" Key="storejobassignmentno_pk" BaseColumnName="storejobassignmentno_pk" >

    <Header Caption="storejobassignment No">

    <RowLayoutColumnInfo OriginX="2" />

    </Header>

    <Footer>

    <RowLayoutColumnInfo OriginX="2" />

    </Footer>

    </igtbl:UltraGridColumn>

    <igtbl:UltraGridColumn AllowUpdate="No" Key="StoreJobNo_FK" BaseColumnName="StoreJobNo_FK" >

    <Header Caption="StoreJob No">

    <RowLayoutColumnInfo OriginX="2" />

    </Header>

    <Footer>

    <RowLayoutColumnInfo OriginX="2" />

    </Footer>

    </igtbl:UltraGridColumn>

    <igtbl:UltraGridColumn CellButtonDisplay="always" Key="ddlEmployee" Type="DropDownList" AllowUpdate="Yes" BaseColumnName="EmployeeNo_FK" >

    <Header Caption="Employee">

    <RowLayoutColumnInfo OriginX="2" />

    </Header>

    <Footer>

    <RowLayoutColumnInfo OriginX="2" />

    </Footer>

    </igtbl:UltraGridColumn>

     

    <igtbl:UltraGridColumn AllowUpdate="No" Key="status" BaseColumnName="status" >

    <Header Caption="Status">

    <RowLayoutColumnInfo OriginX="2" />

    </Header>

    <Footer>

    <RowLayoutColumnInfo OriginX="2" />

    </Footer>

    </igtbl:UltraGridColumn>

     

    <igtbl:UltraGridColumn AllowUpdate="No" Key="lead" BaseColumnName="lead" >

    <Header Caption="Lead">

    <RowLayoutColumnInfo OriginX="2" />

    </Header>

    <Footer>

    <RowLayoutColumnInfo OriginX="2" />

    </Footer>

    </igtbl:UltraGridColumn>

    </Columns>

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

    </AddNewRow>

    <FilterOptions AllString="" EmptyString="" NonEmptyString="">

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

    CustomRules="overflow:auto;" Font-Names="Verdana,Arial,Helvetica,sans-serif" Font-Size="11px"

    Width="200px">

    <Padding Left="2px" />

    </FilterDropDownStyle>

    <FilterHighlightRowStyle BackColor="#151C55" ForeColor="White">

    </FilterHighlightRowStyle>

    </FilterOptions>

    </igtbl:UltraGridBand>

    </Bands>

    </igtbl:UltraWebGrid>

     

     

Reply Children
No Data