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

Refactoring of On Click Events

3 Answers 56 Views
Refactorings
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Randy
Top achievements
Rank 1
Randy asked on 11 Dec 2009, 05:41 PM
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

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Tsviatko Yovtchev
Telerik team
answered on 14 Dec 2009, 09:44 AM
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.
0
Randy
Top achievements
Rank 1
answered on 14 Dec 2009, 02:21 PM
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
0
Tsviatko Yovtchev
Telerik team
answered on 15 Dec 2009, 10:22 AM
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.
Tags
Refactorings
Asked by
Randy
Top achievements
Rank 1
Answers by
Tsviatko Yovtchev
Telerik team
Randy
Top achievements
Rank 1
Share this question
or