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
131
Select All Checkbox Template Second Band
posted

Anyone can help on the following post?

Hello I have a Hierarchial UltraWebGrid with the second Band containing TemplatedColumn - with checkboxes. I'm trying to check all the checkboxes in the rows when the header checkbox is cheked.

can anyone help with the client side code.

i tried using the following :

 

function SelectAll(colIndex) { 

//Selects all checkboxes in the grid

 

//var checked = cbSelectAll.checked;

for (i = 0; i < oGrid.Rows.length; i++) { true);

 

alert(oGrid.Row.getRow(i));

oGrid.Rows.getRow(i).getCell(colIndex).setValue(

but I feel like i;m not geting the child rows.

Thanks,

Genti

<igtbl:UltraWebGrid ID="grdData" runat="server" Browser="Xml" CaptionAlign="Top" Height="610px" Width="918px">

<Bands>

<igtbl:UltraGridBand AllowSorting="No" Indentation="0" IndentationType="Indented" RowSelectors="No" RowSizing ="Free">

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

</igtbl:UltraGridBand>

<igtbl:UltraGridBand>

 

<Columns>

 

<igtbl:TemplatedColumn Key="selItem" Type="CheckBox" AllowUpdate="Yes"> 

<HeaderTemplate>

     <input id="cbSelectAll" name="cbSelectAll" type="checkbox" onclick="SelectAll(1)" /> 

</HeaderTemplate>

 <

/igtbl:TemplatedColumn>

 

</Columns> 

</igtbl:UltraGridBand>

</Bands>