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

PopUp Insert Form not shown unless editing another record

3 Answers 49 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dimitrios
Top achievements
Rank 1
Dimitrios asked on 07 Jul 2015, 05:43 AM

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.

 

 

 

3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 10 Jul 2015, 05:42 AM
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
0
Dimitrios
Top achievements
Rank 1
answered on 10 Jul 2015, 08:04 AM

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

 

0
Eyup
Telerik team
answered on 15 Jul 2015, 07:04 AM
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
Tags
Grid
Asked by
Dimitrios
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Dimitrios
Top achievements
Rank 1
Share this question
or