Action not Firing

4 posts, 0 answers
  1. Arie
    Arie avatar
    20 posts
    Member since:
    Jun 2014

    Posted 15 Nov 2016 Link to this post

    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

  2. Rumen
    Admin
    Rumen avatar
    12949 posts

    Posted 16 Nov 2016 Link to this post

    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.
  3. Arie
    Arie avatar
    20 posts
    Member since:
    Jun 2014

    Posted 16 Nov 2016 in reply to Rumen Link to this post

    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

  4. Rumen
    Admin
    Rumen avatar
    12949 posts

    Posted 18 Nov 2016 Link to this post

    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.
Back to Top