Checkbox in the header how to keep values on sort and how to make it not moving

Not Answered This post has 0 verified answers | 0 Replies | 1 Follower Thread's RSS feed.

zhorakiev
Points 65
Replied On: Thu, Aug 20 2009 3:50 PM Reply

I am trying to implement ultrawebgrid and I have problem. I have checkbox at the last column in the datagrid. First I would like all the columns in the grid to be able to move, sort and filter, but I want to prevent that checkbox column from moving, I want it to stay at the last position, kind of like pinned column but without moving it to the first row. I am experiencing few problems.

I can't remove that pin icon, filter icon from header and if I try to make it as stationary column using quick design, it moves it to the first.

 I also lose checked values when user is sorting data in the grid.

  <igtbl:TemplatedColumn BaseColumnName="Showed Up?" Key="Showed Up?"
        Width="150px">
        <CellTemplate>
            <asp:CheckBox ID="chkShowedup"  runat="server" EnableViewState="true" />
        </CellTemplate>
        <HeaderStyle VerticalAlign="Middle" HorizontalAlign="Center">
            <BorderDetails ColorTop="Black" WidthTop="1px" />
        </HeaderStyle>
        <CellStyle ForeColor="Blue" HorizontalAlign="Center">
        </CellStyle>
        <Header Caption="Showed Up?">                              
            <RowLayoutColumnInfo OriginX="3" />
        </Header>
        <Footer>
            <RowLayoutColumnInfo OriginX="3" />
        </Footer>
         <HeaderTemplate>
         <table><tr><td>Showed Up?</td></tr>
         <tr><td>
        <table><tr><td>
        <asp:CheckBox ID="chkSelectAll" AutoPostBack="true" TextAlign="left" EnableViewState="true" runat="server" OnCheckedChanged="chkSelectAll_CheckedChanged" /></td>
        <td><font size="-1">Select all</font></td></tr></table>                            
         </td></tr></table>                               
         </HeaderTemplate>
    </igtbl:TemplatedColumn>     

 

  • Post Points: 5
Page 1 of 1 (1 items) | RSS