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
105
Ultra web grid Header click
posted

The columns in the ultrawebgrid are


                     <igtbl:TemplatedColumn Key="Checked12" Type="CheckBox"  >
                            <HeaderTemplate>
                
                     <input type="checkbox"   id="headercheck"    />
                            </HeaderTemplate>
                            <CellTemplate>
                       <asp:CheckBox ID="CheckBox1"  runat="server"  Checked="true"  />
                            </CellTemplate>
                            <Header Caption="Header">
                            </Header>
                        </igtbl:TemplatedColumn>
                        <igtbl:UltraGridColumn BaseColumnName="LOCN_CODE" IsBound="True" Key="LOCN_CODE">
                            <Header Caption="LOCN_CODE">
                                <RowLayoutColumnInfo OriginX="1" />
                            </Header>
                            <Footer>
                                <RowLayoutColumnInfo OriginX="1" />
                            </Footer>
                        </igtbl:UltraGridColumn>
..
..
...

 

 <ClientSideEvents ColumnHeaderClickHandler="UltraWebGrid1_ColumnHeaderClickHandler" />


The javascript for the header click event is

 

 

 

 

 

 

 

 

 

 

function

 

UltraWebGrid1_ColumnHeaderClickHandler(gridName, columnId, button)

{

 

 

//Add code to handle your event here.

 

 

 

var

myCol = igtbl_getColumnById(columnId);

 

 

if (myCol.Key == "Checked12")

 

{

 

 

 

var myGrid = igtbl_getGridById(gridName);

 

 

 

 

for (i = 0; i < myGrid.Rows.length; i++)

{

 

 

 

myGrid.Rows.getRow(i).getCellFromKey(

"Checked12").setValue(1);

 

 

;

}

}

}

 

 

 

 

The above code is used. when i click the Header it does not show any action. let me know if there is any error

   It is not showing any action. It reamins the same.

 

Thanks and regards

Venu.