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
1147
sorting on Template Column UltraWebGrid 9.1
posted

Hi,

I am not able to sort the two columns - Used Keys & Balace Keys - in the following ultrawebgrid.

  <igtbl:UltraWebGrid ID="InfraGrid_Keys" runat="server" EnableAppStyling="True" StyleSetName="Office2007Silver" OnInitializeRow="RowInitialize" Width="100%">
          <Bands>
            <igtbl:UltraGridBand>
              <Columns>
              <igtbl:UltraGridColumn BaseColumnName="Id" Key="Id" ServerOnly="True"> </igtbl:UltraGridColumn>
              <igtbl:UltraGridColumn BaseColumnName="PriceBand" Key="PBs">
                <Header Caption="PriceBand">
                  <RowLayoutColumnInfo OriginX="1" />
                </Header>
                <Footer>
                  <RowLayoutColumnInfo OriginX="1" />
                </Footer>
              </igtbl:UltraGridColumn>
              <igtbl:UltraGridColumn BaseColumnName="Products" Key="Products">
                <CellStyle Wrap="True"> </CellStyle>
                <Header Caption="Products">
                  <RowLayoutColumnInfo OriginX="2" />
                </Header>
                <Footer>
                  <RowLayoutColumnInfo OriginX="2" />
                </Footer>
              </igtbl:UltraGridColumn>   
             
               <igtbl:TemplatedColumn DataType="System.Int32" Type="Custom"  Key="Balance Keys">
               <CellTemplate>              
               <asp:LinkButton ID="Lnk_Btn" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>'  CommandName="BindUnused" Text='<%# DataBinder.Eval(Container.DataItem, "Balance Keys") %>' OnClick="Lnk_Btn_OnClick"  > </asp:LinkButton>
               </CellTemplate>
               <Header Caption="Balance Keys" Title="Balance Keys">
                   <RowLayoutColumnInfo OriginX="3" />
               </Header>
               <Footer>
                     <RowLayoutColumnInfo OriginX="3" />
               </Footer>
               </igtbl:TemplatedColumn>
             
               <igtbl:TemplatedColumn DataType="System.Int32" Type="Custom" Key="Used Keys">
               <CellTemplate>
                 <asp:LinkButton ID="Lnk_UsedKeys" runat="server" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "ID") %>' CommandName="BindUsed" Text='<%# DataBinder.Eval(Container.DataItem, "Used Keys") %>' OnClick="Lnk_UsedKeys_OnClick" > </asp:LinkButton>
                 </CellTemplate>
                <Header Caption="Used Keys" Title="Used Keys">
                    <RowLayoutColumnInfo OriginX="4" />
                </Header>
                    <Footer>
                        <RowLayoutColumnInfo OriginX="4" />
                    </Footer>
                </igtbl:TemplatedColumn>               
              </Columns>
             
          <AddNewRow View="NotSet" Visible="NotSet"> </AddNewRow>
          </igtbl:UltraGridBand>
          </Bands>
          <DisplayLayout AllowColumnMovingDefault="OnServer" ColWidthDefault="" GroupByColumnsHiddenDefault="No"
           IndentationDefault="20" Name="ctl02xInfraGridxKeys" RowHeightDefault="20px" RowSelectorsDefault="No" SelectTypeCellDefault="Single"
          SelectTypeColDefault="NotSet" SelectTypeRowDefault="Single" Version="3.00" AutoGenerateColumns="False" AllowSortingDefault="Yes" HeaderClickActionDefault="SortSingle">
            <FrameStyle Width="100%"> </FrameStyle>
            <SelectedRowStyleDefault BackColor="Silver"> </SelectedRowStyleDefault>
            <ActivationObject BorderColor="" BorderWidth=""> </ActivationObject>
            <FilterOptionsDefault  AllowRowFiltering="OnServer" FilterUIType="FilterRow"> </FilterOptionsDefault>
            <RowStyleDefault Font-Names="Verdana" Font-Size="8pt"> </RowStyleDefault>
          </DisplayLayout>
      </igtbl:UltraWebGrid>

can some one please help.