RadGrid not opening popup editor when no records

4 posts, 0 answers
  1. Yosief
    Yosief avatar
    26 posts
    Member since:
    Mar 2008

    Posted 18 Nov 2013 Link to this post

    Hi All

    I've a radgrid displaying a list of customers. In the grid, I have a command button that's supposed to open a popup editor to add new customers. For some reason, the popup does not open. It shows a small flicker and nothing happens. Strangely enough, if I go into the database, manually add a customer record and refresh the grid, I'm able to open the editor.

    Any help is most welcome!

    Here is the grid definition in my ascx:
    <telerik:RadGrid ID="CustomerList" runat="server"
        GroupingEnabled="False" ShowStatusBar="True" OnPreRender="CustomerList_PreRender"
        OnItemCommand="CustomerList_ItemCommand" OnItemDataBound="CustomerList_ItemDataBound"
        OnInsertCommand="CustomerList_InsertCommand" OnItemInserted="CustomerList_ItemInserted"
        OnItemEvent="CustomerList_ItemEvent" >
        <MasterTableView DataKeyNames="CustomerId" DataSourceID="CustomerDataSource" 
            AllowPaging="true" AutoGenerateColumns="False"
            GridLines="None" EditMode="PopUp" ShowFooter="True"
            InsertItemDisplay="Bottom" CommandItemDisplay="TopAndBottom" >
            <CommandItemSettings  AddNewRecordText="Add Customer" />
                <telerik:GridBoundColumn DataField="CustomerId" DataType="System.Int32" FilterControlAltText="Filter CustomerId column" HeaderText="CustomerId" ReadOnly="True" SortExpression="CustomerId" UniqueName="CustomerId">
                        <ModelErrorMessage Text="" />
                <telerik:GridBoundColumn DataField="CustomerName" FilterControlAltText="Filter CustomerName column" HeaderText="CustomerName" SortExpression="CustomerName" UniqueName="CustomerName">
                        <ModelErrorMessage Text="" />
                <telerik:GridEditCommandColumn UniqueName="EditCommandColumn">
                    <ItemStyle Width="20px" Font-Underline="true" />
                No customers have been created yet.
            <EditFormSettings EditFormType="WebUserControl" CaptionDataField="CustomerName"
                <EditColumn UniqueName="EditCommandColumn" HeaderButtonType="TextButton">
                <PopUpSettings ScrollBars="None" Width="581"/>
            <PagerStyle Mode="NextPrevAndNumeric" Position="Bottom" />
  2. Viktor Tachev
    Viktor Tachev avatar
    2407 posts

    Posted 20 Nov 2013 Link to this post

    Hello Yosief,

    The behavior you describe seems rather strange. I tried reproducing the problem with the grid settings from your post, however it seems to work as expected on my end. Sample project with dummy data source is attached for illustration. Could you give it a try and let me know if it is working on your side?

    If I am missing something could you modify the project in a way that the issue is reproduced and send it back in a support ticket. This would enable us to investigate the problem locally and provide an appropriate solution.

    Viktor Tachev
    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.
  3. Carole
    Carole avatar
    11 posts
    Member since:
    Dec 2013

    Posted 31 Mar 2014 in reply to Yosief Link to this post

    Hi Yosief
    I hope you'll be able to save me ! I have this exact problem and tried to fix this the last three days !
    This happens on ONE server and working everywhere else, this is really strange !
    Did you manage to resolve this ?
    Thanks in advance.
  4. Viktor Tachev
    Viktor Tachev avatar
    2407 posts

    Posted 03 Apr 2014 Link to this post

    Hi Carole,

    The popup edit form could be prevented from opening if there are JavaScript errors on the page. Please ensure that there are no such errors.

    Also could you share your full markup with the related code-behind and describe what are the steps to reproduce the problem. This would allow us to try and replicate the issue locally and look for the cause.

    Viktor Tachev

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top