This is a migrated thread and some comments may be shown as answers.

Grid's GridButtonColumn not firing ItemCommand event for some users

1 Answer 118 Views
Grid
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 13 Dec 2011, 03:06 PM
I have a grid that has a GridButtonColumn as the first column.  When the user clicks the button, the ItemCommand event is supposed to fire.  It does for some users but not all.  Everyone uses the same browser version & OS version (company configuration).

The grid is defined like this:
<t:RadGrid ID="rgTimeMaterial" runat="server" PageSize="200" AllowPaging="True" AllowSorting="True"
    AllowMultiRowSelection="true" AutoGenerateColumns="false" Height="510px" GridLines="Both"
    ShowFooter="False" CssClass="w980" ShowHeader="True" EnableViewState="true" >
    <HeaderStyle Wrap="false" />
    <MasterTableView EnableHeaderContextMenu="true" CellPadding="0" CellSpacing="0" AllowMultiColumnSorting="true"
        ClientDataKeyNames="Job_Number,EntityCode,AssignedTo" CssClass="w980">
        <Columns>
              . . .
        </Columns>                            
    </MasterTableView>
    <ItemStyle Font-Names="Arial,Helvetica,sans-serif" Font-Size="9pt" Wrap="false" />
    <ClientSettings ColumnsReorderMethod="Reorder" AllowColumnsReorder="True" AllowColumnHide="true"
        ReorderColumnsOnClient="True">
        <ClientEvents OnRowContextMenu="RowContextMenu" OnRowDblClick="OnRowDblClick" OnRowCreated="RadGrid1_RowCreated"
            OnRowSelected="RadGrid1_RowSelected" OnRowDeselected="RadGrid1_RowDeselected"
            OnRowSelecting="RadGrid1_RowSelecting" OnGridCreated="GridCreated" />
        <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
        <Scrolling SaveScrollPosition="true" AllowScroll="true" UseStaticHeaders="True">
        </Scrolling>
        <Resizing AllowColumnResize="true" EnableRealTimeResize="true" ShowRowIndicatorColumn="true"
            ClipCellContentOnResize="true" AllowResizeToFit="true" />
    </ClientSettings>
    <PagerStyle Position="Top" Mode="NextPrevAndNumeric" AlwaysVisible="true" />
</t:RadGrid>


I'm also using a RadAjaxManager object that is defined as follows:
<t:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="RadAjaxLoadingPanel1">
    <AjaxSettings>
        <t:AjaxSetting AjaxControlID="rgTimeMaterial">
            <UpdatedControls>
                <t:AjaxUpdatedControl ControlID="rgTimeMaterial" LoadingPanelID="RadAjaxLoadingPanel1" />
            </UpdatedControls>
        </t:AjaxSetting>
      </AjaxSettings>
    <ClientEvents OnResponseEnd="RequestEnd" />
</t:RadAjaxManager>

Everyone's browser settings should be the same as they are configured by IT from the same "image".  Any help would be really appreciated!

Thanks,
James

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 16 Dec 2011, 02:26 PM
Hi James,

This is a very weird problem, the event should be firing regardless of who uses the control. Furthermore, I do not see anything wrong in the code that you sent, so can you please paste the rest of the code related to the issue - the column declaration, the ItemCommand event handler and how you attach it, etc.

Best wishes,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Tags
Grid
Asked by
James
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or