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.
Hi Venu,
I'm also facing the same problem. Did u find any other alternate solution for this issue?
You can set it programmatically, but that line is all you should need...
Have you set any Alert('hi'); type statements or set breakpoints in Visual Studio to see if the function is actually being called...debugging is likely your best bet at this point...
I had registered in the client side events. have you go through my code.
i have this line
<ClientSideEvents ColumnHeaderClickHandler="UltraWebGrid1_ ColumnHeaderClickHandler" />
is there is any other way to register client side events
Check to make sure the event is registered in the ClientSideEvents code in the aspx file...like this:
I find that sometimes I add events but the ClientSideEvents declaration does not get updated and the event therefore doesn't fire...