Refactoring of On Click Events

4 posts, 0 answers
  1. Randy
    Randy avatar
    72 posts
    Member since:
    Jan 2009

    Posted 11 Dec 2009 Link to this post

    If you refactor the JavaScript function name should it pickup the client on click events?

    For example I refactored radWinRecurringBilling_Edit_OnClientBeforeClose to add an underscore between Recurring and Billing as shown below.

    function

    radWinRecurring_Billing_Edit_OnClientBeforeClose(sender, eventArgs) {

    var ajaxManager = $find('<%= RadAjaxPanel1.ClientID %>');

    ajaxManager.ajaxRequest("Refresh_Recurring_Billing");

    return false;

    }

    In the OnClientBeforeClose tag, it wasn't refactored.

    <telerik:RadWindow ID="radWinRecurringBilling_Edit" runat="server" Modal="True" Width="710" Height="580" DestroyOnClose="false" InitialBehaviors="Reload"

    ShowContentDuringLoad="false" ReloadOnShow="true"

     

     

     

     

     

    OnClientBeforeClose="radWinRecurringBilling_Edit_OnClientBeforeClose">

     

     

     

     

    </telerik:RadWindow>

     

     

     

     

    Don't know if this is a bug, or planned.

    Great Product by the way.

    Thanks
    Randy Miller
    TransGuardian

     

     

     

     

  2. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 14 Dec 2009 Link to this post

    Hi Randy,

     Is the radWinRecurring_Billing_Edit_OnClientBeforeClose function defined in the same file where the <telerik:RadWindow ID="radWinRecurringBilling_Edit"....  is ? Currently, only support for that scenario is intended. We are gonna support them being in different files, too but that's yet to come. So, do you have them in the same file?


    Regards,
    Tsviatko
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. DevCraft banner
  4. Randy
    Randy avatar
    72 posts
    Member since:
    Jan 2009

    Posted 14 Dec 2009 Link to this post

    Yes they are in the same file. I can send you the ASPX and VB file if you like, but would prefer not to do it in the open forum.

    Randy Miller
    TransGuardian
  5. Tsviatko Yovtchev
    Admin
    Tsviatko Yovtchev avatar
    408 posts

    Posted 15 Dec 2009 Link to this post

    Yep, I'd like to check them out. I started a ticket for you so you could send them there. Thanks a bunch for your help.

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Back to Top