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
1284
Disable sorting when Checkbox on ColumnHeader is changed
posted

Hi

  I am working on a .NET 1.1 application using Ultraweb grid. I have a checkbox on the columnHeader of a column. When i check the check box in the ColumnHeader, all the check boxes in that column should be checked.

I want to disable sorting when i check/uncheck the checkbox in the header. Sorting should only happen when i click the columnHeader.

 

How to do Disable sorting when i check/Uncheck the checkbox in the columnHeader?

Code:

<igtbl:UltraGridBand>
          <columns>
           

<igtbl:TemplatedColumn AllowUpdate="Yes"  SortIndicator="Disabled"  Key="chkDel" 

Type="CheckBox" width=100%>
            

<HeaderTemplate>
            
            

<Table vAlign="top" border="0" cellspacing="0" cellpadding="0" >
            

<tr>
            

<td vAlign="top" style="FONT-WEIGHT: bold;FONT-SIZE: 12px; FONT-FAMILY: Verdana"

width=100% >&nbsp;Delete&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            

</tr>
            

<tr >
            

<td vAlign="top"  style="FONT-WEIGHT: bold;FONT-SIZE: 8px; FONT-FAMILY: Verdana"

width=100%>
            

 <input type="checkbox" runat="server"  id="chkDel1"

onclick="CheckBoxSelection(this);"
            

  NAME="chkDel1" />Select All &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            

</td>
            

     
            

</tr>
            

</Table>   
            

</HeaderTemplate>
            

<Header Caption="DeleteAll"  >
            

 <RowLayoutColumnInfo OriginX="8" />
            

</Header>
            

<Footer>
            

 <RowLayoutColumnInfo OriginX="8" />
            

</Footer>
           

</igtbl:TemplatedColumn>
          </columns>
         

</igtbl:UltraGridBand>
         

Thanks

Ashok