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.
myCol = igtbl_getColumnById(columnId);
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.
Check to make sure the event is registered in the ClientSideEvents code in the aspx file...like this:
<ClientSideEvents ColumnHeaderClickHandler="UltraWebGrid1_ ColumnHeaderClickHandler" />
I find that sometimes I add events but the ClientSideEvents declaration does not get updated and the event therefore doesn't fire...
I had registered in the client side events. have you go through my code.
i have this line
is there is any other way to register client side events