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

Action not Firing

3 Answers 99 Views
Dialog
This is a migrated thread and some comments may be shown as answers.
Arie
Top achievements
Rank 1
Arie asked on 15 Nov 2016, 08:52 PM

We have a set up where we have a grid in a dialog and are trying to fire a simple action ...

So the end configuration on the dialog looks like this ..

.Actions(actions =>
{
actions.Add().Text("Cancel");
actions.Add().Text("OK").Primary(true).Action("onActionOK");
})

 

the function is a pretty simple one right now.. just trying to make sure it is hit

function onActionOK(e) {
console.log("actionOK event");

}

 

But this is never hit and there are no messages in the console.... is there an alternate way that I should be defining the action?

 

Thanks
AJ

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 16 Nov 2016, 01:40 PM
Hi AJ,

The code that you use is OK and it works as expected on my end as you can see in the following video: http://screencast.com/t/8qrzO77Ma.

For your convenience I have attached my test page. You can compere it with your own and find the reason for the problem.

Best regards,
Rumen
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Arie
Top achievements
Rank 1
answered on 17 Nov 2016, 12:10 AM

The problem is actually related to the dialog control being inside of a tabstrip control. Essentially, we were using the dialog as a search box for a form field that was within  a tabstrip..

With the dialog inside of the tabstrip = no events

outside of the tabstrip =  events!

So it looks like there are some conflicts that you will need to have your dev team address in relation to nested controls and events.

 

Thanks
AJ

0
Rumen
Telerik team
answered on 18 Nov 2016, 02:33 PM
Hi Arie,

I placed the dialog declaration inside the tabstrip but again was unable to reproduce the issue: http://screencast.com/t/eSAbVwaRWIc9.

Am I missing something? Can you please isolate the issue in a simple working project and send it for examination on our end?

Thank you!

Best regards,
Rumen
Telerik by Progress
Telerik UI for ASP.NET MVC is ready for Visual Studio 2017 RC! Learn more.
Tags
Dialog
Asked by
Arie
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Arie
Top achievements
Rank 1
Share this question
or