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

Odd issue w/ commanditemdisplay

1 Answer 7 Views
This is a migrated thread and some comments may be shown as answers.
Top achievements
Rank 2
ToltingColtAcres asked on 22 Sep 2013, 12:16 AM
I have a RadGrid definition as defined below (column definitions snipped for brevity).

I have an odd issue w/ the "Add New Record" button in the CommandItemDisplay 'disappearing' randomly.

What I mean, simply, is for random people at random periods of time for some inexplicable reason, when the RadGrid is displayed to the user, there will be no "Add New Record" option at the bottom of the grid. Two people side-by-side can be using the app, one will get the button, the other won't. Once someone doesn't get the button, it will not immediately come back, but, if they wait long enough and go back into the application, it will mysteriously reappear. Stopping the application pool and restarting it will usually 'clear' up the problem "immediately", but, that has the unfortunate side-effect of knocking everyone else out too.

I've looked through the IIS logs, and I do not see any unusual "errors" (no 4xx or 5xx status codes) associated w/ the user when it does happen. The application is compiled and deployed. Also, for what its worth, I do not recall this problem occurring before the application was precompiled for deploy.

I don't really expect an "answer" to this issue here, since it isn't reproducible at a whim. Instead, I was hoping someone might give me some insight as to where the data for the CommandItemDisplay line originates from (WebResource.axd file?) and maybe, just maybe, someone else has encountered this issue and discovered what they did wrong or had to change within IIS to resolve it. It sure would be helpful since I get at least 6 calls a day about this issue.

FWIW, I'm using the latest version of the controls, ASP.NET AJAX, IIS server running on 2008r2, with a .NET 4.0 application.

                <telerik:RadGrid    ID="RadGrid_Details"
                                    onprerender="RadGrid_Details_PreRender" >
                    <ClientSettings AllowDragToGroup="True">
                    <MasterTableView DataSourceID="SqlDataSource_Details"
                                     editmode="InPlace" ShowFooter="true"
                                     horizontalalign="NotSet" AllowPaging="True" DataKeyNames="Detail_GUID" >
(column telerik:control definitions)
                            <EditColumn UniqueName="EditCommandColumn1">

1 Answer, 1 is accepted

Sort by
Antonio Stoilkov
Telerik team
answered on 25 Sep 2013, 08:02 AM
Hello Michael,

Based on your description I would suggest going through the server side code and look if somewhere the CommandItemDisplay is set programatically and try to remove that logic. Another thing that you could try is to set the CommandItemDisplay to TopAndBottom and test if both the top and bottom items will disappear together. Additionally, you could check if the item is not rendered at all or hidden because of some CSS styles.

Antonio Stoilkov
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 the blog feed now.
Asked by
Top achievements
Rank 2
Answers by
Antonio Stoilkov
Telerik team
Share this question