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

[Solved] Grid popup window doesn't fire window events

5 Answers 162 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Eduardo
Top achievements
Rank 1
Eduardo asked on 08 Sep 2011, 06:34 PM
Hi,

I've a grid set in popup edit mode

.Editable(e => e.Mode(GridEditMode.PopUp).DefaultDataItem(new EntregaTalonario
        {
            FECHA_ENTREGA = DateTime.Now,
            NOMBRE_ENTREGA = User.Identity.Name
        }).Window(w => w.ClientEvents(ev => ev.OnLoad("settingSerie"))))

The problem is that event 'settingSerie' never fires. I'm using version 2011.2.902

Thanks

5 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 12 Sep 2011, 03:33 PM
Hi Eduardo,

Thank you for pointing this out. It has been fixed for future builds of the components, as well as in the attached one.

Greetings,
Alex Gyoshev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Eduardo
Top achievements
Rank 1
answered on 13 Sep 2011, 04:19 PM
I tested the hotfix, but the client events for the popup window still doesn't fire. I need this, because I'm using an EditorTemplate, and the popup  window doesn't show in center of the screen, maybe this is another issue. I'm solving this with the OnEdit event of the grid where I put 
$(e.form).closest(".t-window").data("tWindow").center();
 
and works

Thanks for your response
0
Serguei
Top achievements
Rank 1
answered on 19 Jan 2012, 02:03 PM

Hi Alex
I just got Q3 version and the problem still there. Do you have any plans to fix the issue or suggest the work around. I tried OnLoad, OnActivate, OnOpen events and none of them are triggered.
Any help would be appreciated
Thanks
Serguei

0
Wicky
Top achievements
Rank 1
answered on 20 Jan 2012, 10:14 AM
Hi,

I got same issue in latest release (2011.3), window event doesn't fire.
Could you check again?

Regards
0
Alex Gyoshev
Telerik team
answered on 20 Jan 2012, 01:09 PM

We attempted to add the desired functionality, but it turned out that it requires significant effort that was unplanned. You can use the approach that Eduardo described (i.e. binding to the OnEdit event and performing any necessary operations on the window).

Kind regards,
Alex Gyoshev
the Telerik team
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 Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now
Tags
Window
Asked by
Eduardo
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Eduardo
Top achievements
Rank 1
Serguei
Top achievements
Rank 1
Wicky
Top achievements
Rank 1
Share this question
or