I am trying to get the key for the column that is clicked to be used in a custom data sort. When I click the header the server side ultrawebgrid_sortcolumn event fires but the client side header click event never fires. I have made sure allowsorting onclient is set and the clientsideevent is registered with the control.
Javascript:
<script type="text/javascript" id="igClientScript">function grdviewSearch_ColumnHeaderClickHandler(gridName, columnId, button){ document.getElementById('mhidstrCurrentColumnClicked').value = igtbl_getColumnById(columnId).Key alert("hi")}</script>
GridObject:
<igtbl:ultrawebgrid id="grdviewSearch" style="Z-INDEX: 100; LEFT: 8px; POSITION: absolute; TOP: 271px; width: 100%;" runat="server" Height="338px" EnableViewState="False" Width="100%"> <DisplayLayout AllowColSizingDefault="Free" AllowColumnMovingDefault="OnServer" AllowDeleteDefault="Yes" AllowSortingDefault="OnClient" AllowUpdateDefault="Yes" BorderCollapseDefault="Separate" HeaderClickActionDefault="SortSingle" Name="UltraWebGrid1" RowHeightDefault="20px" RowSelectorsDefault="No" SelectTypeRowDefault="Extended" StationaryMarginsOutlookGroupBy="True" TableLayout="Fixed" Version="4.00" CellClickActionDefault="RowSelect" SelectTypeColDefault="Single"> <FrameStyle BackColor="White" BorderColor="#6600FF" BorderStyle="Outset" BorderWidth="1px" Font-Names="Trebuchet MS,Verdana,Arial,sans-serif" Font-Size="X-Small" Height="338px" Width="100%"></FrameStyle><Images><CollapseImage Url="/ig_common/images/Themes/Aero/ig_treeArrowMinus.png" /><ExpandImage Url="/ig_common/images/Themes/Aero/ig_treeArrowPlus.png" /><CurrentRowImage Url="/ig_common/images/Themes/Aero/ig_CurrentRow.gif" /><FixedHeaderOffImage Url="/ig_common/images/Themes/Aero/ig_tblFixedOff.gif" /><FixedHeaderOnImage Url="/ig_common/images/Themes/Aero/ig_tblFixedOn.gif" /></Images> <ClientSideEvents ColumnHeaderClickHandler="grdviewSearch_ColumnHeaderClickHandler" />
Nevermind I resolved my issue. The readonly attribute was set to
.ReadOnly = Infragistics.WebUI.UltraWebGrid.[ReadOnly].LevelTwo