Hi,
I have two templates in my code.
If I check one then all the rows in that columns should select.
If I click on another Template then the 1st column should unselect along with the header check box and the current selection rows should be selected.
<igtbl:TemplatedColumn AllowUpdate="Yes" Key="ApproveAll" Type="CheckBox" HeaderClickAction="Select" BaseColumnName = "Sel">
<HeaderStyle Wrap="True" VerticalAlign = "Middle" />
<HeaderTemplate>
<asp:CheckBox ID="headerCheckboxA" runat="server" AutoPostBack="True" oncheckedchanged="headerCheckbox_CheckedChanged" />
</HeaderTemplate>
<Header Caption="ApproveAll">
<RowLayoutColumnInfo OriginX="0" />
</Header>
<Footer>
</Footer>
</igtbl:TemplatedColumn>
<igtbl:TemplatedColumn AllowUpdate="Yes" Key="DenyAll" Type="CheckBox" HeaderClickAction="Select" BaseColumnName = "select">
<asp:CheckBox ID="headerCheckboxD" runat = "server" Checked="false" AutoPostBack="True" oncheckedchanged="headerCheckboxDeny_CheckedChanged" />
<Header Caption="DenyAll">
<RowLayoutColumnInfo OriginX="1" />
current selector is ApproveAll
If I select DenyAll then the columns ApproveAll should be unselect along with the check box in the header and the DenyAll should be selected.
See the below Image.
One columns should be select at a time. If I select the 2nd column then the 1st column values should be deselect.
Kindly do the needful.
Hello Moulika,
I would suggest referring to the following thread for more information on manipulating UltraWebGrid templated columns and elements:
http://www.infragistics.com/community/forums/p/1540/31541.aspx
Please note that the UltraWebGrid control is now outdated and as of .NetAdvantage 2011 Volume 2 is no longer included in our product package. I would suggest that you consider switching to the WebDataGrid/WebHieararchicalDataGrid. More information regarding these controls is available at:http://help.infragistics.com/doc/ASPNET/2013.2/CLR4.0/?page=Web_WebDataGrid_WebDataGrid.htmlAdditional samples demonstrating the features of these grids can be found at:http://www.infragistics.com/products/aspnet/data-grid
Feel free to contact me if you have any questions.
Please feel free to contact me if you have any further questions regarding this matter.