
Intermittently, after clicking the "Open" button (on either the Organization or the Contacts page), the OnItemCommand will not fire. The page remains on the original page and the RadGrid just appears with every other row looking blank.
I don't know if this is relevant, but it almost always happens if I have to scroll down the RadGrid to select a row.
Please help.
3 Answers, 1 is accepted
Could you please elaborate a little bit more on your application? Does any javascript fire OnItemComand? Also, if you can provide the code for theOnItemComand event handle in your case, we can check it and turn back to you with our findings.Additionally, it would be of great help in finding the source of the problem if you open a regular support ticket and send us a sample project illustrating you scenario and the issue. Thus we could debug it locally and turn back to you with a proper resolution.
Best wishes,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.

I have two pages, a Contacts and an Organization page. Both pages have the RadGrid control. On the Contacts page, I have an Open GridButtonColumn that is supposed to redirect to the Organizations page for that Organization listed in the RadGrid. On the Organizations page, I have an Open GridButtonColumn that is supposed to redirect to the Contacts page for that Contact listed in the RadGrid. Also, both pages have an Edit GridEditCommandColumn.
Both pages have other controls which allow the user to add rows to the RadGrid.
Intermittently, the Open or Edit buttons will not fire. Sometimes the Open button will work and sometimes it won't. We have noticed that when we are on the Contacts page and scroll down the RadGrid, click on the Open button for an Organization, we will be redirected to the Organizations page. But, when we then click on the Open button on the Organizations page to be redirected to the Contacts page, we are not redirected to the Contacts page, we remain on the Organizations page, and every other row on the RadGrid appears blank.
Since the data on these pages are not saved to the database until the user clicks on a Save button, the DataSource for these RadGrids are session variables.
I tried to add the MasterTableView DataSourcePersistenceMode="NoPersistence" property, which seemed to solve the Open button problem (it seemed to always fire). I had to add code to assign the DataSource for the RadGrid to the session varialble and then couldn't get the Edit button to work, I couldn't get it to save the user's changes before the post back.
Here is a portion of the Contacts page:
<!-- <div class="clsFormattedDIVfor4RowGrid"> -->
<radG:RadGrid ID="RadGrid_Addresses" runat="server" AllowSorting="True" GridLines="None" Skin="WebBlue" Width="100%"
OnItemCommand="RadGrid_Addresses_OnItemCommand"
OnNeedDataSource="RadGrid_Addresses_NeedDataSource"
OnUpdateCommand="RadGrid_Addresses_OnUpdateCommand"
OnDeleteCommand="RadGrid_Addresses_DeleteCommand"
OnItemCreated = "RadGrid_Addresses_OnItemCreated"
OnItemDataBound="RadGrid_Addresses_OnItemDataBound"
TabIndex="33"
EnableViewState="true"
OnEditCommand="RadGrid_Addresses_EditCommand" EnableAJAX="true" EnableAJAXLoadingTemplate="true"
LoadingTemplateTransparency="20">
<ClientSettings><Scrolling AllowScroll="true" SaveScrollPosition="false" /></ClientSettings>
<PagerStyle Mode="NextPrevAndNumeric" />
<MasterTableView AutoGenerateColumns="False" DataKeyNames="ContactAddressID,ContactID,OrganizationID,OrganizationContactID,AddressTypeID">
<Columns>
<radG:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" HeaderText="Delete"
ImageUrl="~/RadControls/Grid/Skins/WebBlue/Delete.gif" Text="Delete" UniqueName="DeleteCommandColumn"
ConfirmText ="Are you sure you want to delete the Address?">
<HeaderStyle HorizontalAlign="Center" Width="2px" />
<ItemStyle HorizontalAlign="Center" CssClass="clsGridSmallImageButtonColumnItemStyle" />
</radG:GridButtonColumn>
<radG:GridButtonColumn ButtonType="ImageButton" CommandName="Open" HeaderText="Open"
ImageUrl="~/RadControls/Grid/Skins/WebBlue/SelectedRow.gif" Text="Open" UniqueName="OpenCommandColumn">
<HeaderStyle HorizontalAlign="Center" />
<ItemStyle HorizontalAlign="Center" CssClass="clsGridSmallImageButtonColumnItemStyle" />
</radG:GridButtonColumn>
<radG:GridEditCommandColumn ButtonType="ImageButton" HeaderText="Edit">
<HeaderStyle HorizontalAlign="Center" Width="2px" />
<ItemStyle HorizontalAlign="Center" CssClass="clsGridSmallImageButtonColumnItemStyle" />
</radG:GridEditCommandColumn>
...
From the provided information I’m not able to determine what exactly could cause the described behavior. Please let me know what do you mean by "Since the data on these pages are not saved to the database until the user clicks on a Save button..."? Are you trying to add data on the client for the RadGrid? Also please let me know what action is attached to the buttons in the GridButtonColumns.
It will be very helpful if you could open a regular support ticket and send us runnable application to replicate the issue. This local investigation will help us provide more to-the-point solution.
Greetings,
Maria Ilieva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.