Anyone using this event?
I saw it from an example at
http://www.telerik.com/community/code-library/aspnet-ajax/grid/adding-custom-column-dynamically.aspx
For adding columns dynamically.
I need to provide editing for a PivotTable-like data structure.
I will have varying columns and rows, and I wanted to provide a grid full of textboxes for the user to do mass edit.
I'll iterate through the rows and columns to do a save on a button click.
The problem is, in my grid, the debugger never hits on the ColumnCreating event.
It will only hit on the ColumnCreated event.
here is the grid definition.
| <telerik:RadGrid ID="gridEvil" runat="server" GridLines="None" OnColumnCreating="gridEvil_ColumnCreating"> |
| <MasterTableView> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px"></HeaderStyle> |
| </ExpandCollapseColumn> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </FilterMenu> |
| </telerik:RadGrid> |
| |
It's pretty basic. Please note that I get the same result with or without the OnColumnCreating="gridEvil_ColumnCreating" in the declaration
It also does not matter if I define the signature of the sub with or without Handles gridEvil.ColumnCreating
Do I have to do something special to get this event to fire?