Odd issue w/ commanditemdisplay

2 posts, 0 answers
  1. ToltingColtAcres
    ToltingColtAcres avatar
    86 posts
    Member since:
    Nov 2010

    Posted 21 Sep 2013 Link to this post

    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">
  2. Antonio Stoilkov
    Antonio Stoilkov avatar
    530 posts

    Posted 25 Sep 2013 Link to this post

    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.
Back to Top