PopUp Insert Form not shown unless editing another record

4 posts, 0 answers
  1. Dimitrios
    Dimitrios avatar
    45 posts
    Member since:
    Jun 2014

    Posted 07 Jul 2015 Link to this post

    Hello all,

    I have a radgrid in PopUp edit mode.

    I use the normal GridEditCommandColumn button for editing and when clicked the popup screen (webusercontrol) popups correctly and everything is normal.

    I have an external button for adding new records and it's click command does a grdManuf.MasterTableView.InsertItem().

    When I click the add button the insert popup screen is not shown, but if the next step is to click the edit button for any other record the edit popup screen is shown and the insert popup screen is exactly behind it.

    I can drug the edit form and I can see the insert form behind (see the attached screen). Both screens are operational.

    The radgrid and the add button belong to the same update panel.

    It's obvious that I on post back I must add some coding, but ...where and what? 

    I would appreciate any help on where to look for a mistake which prevents the insert screen to initially be hidden.

     

     

     

  2. Eyup
    Admin
    Eyup avatar
    3690 posts

    Posted 10 Jul 2015 Link to this post

    Hi Dimitrios,

    Could you temporarily disable any AJAX on the page and add grid.Rebind() method after your logic to see whether this resolves the problem. Alternatively, you can replace the current logic by using the FireCommandEvent and force an InitInsert command:
    http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/control-lifecycle/how-to-fire-command-events

    Looking forward to your reply.

    Regards,
    Eyup
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  3. Dimitrios
    Dimitrios avatar
    45 posts
    Member since:
    Jun 2014

    Posted 10 Jul 2015 in reply to Eyup Link to this post

    Hello Eyup's

     Yep. If I temporarily disable the AJAX on that page the PopUp form for inserting is also shown.

    I could not try your second suggestion, since as I said, the button for inserting is outside the grid and I don't have access to the GridEditableItem (...or do I?)

    Anyways, I do need the AJAX, so I would appreciate any further attempt to make it work as needed.

     Thanks

     

  4. Eyup
    Admin
    Eyup avatar
    3690 posts

    Posted 15 Jul 2015 Link to this post

    Hi Dimitrios,

    Could you share your AJAX settings so we can check and test them on your side?

    Regards,
    Eyup
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top