Completed
Last Updated: 16 Feb 2016 10:00 by Imported User
ADMIN
Vessy
Created on: 19 Jan 2016 15:43
Category: UI for ASP.NET AJAX
Type: Bug Report
1
The CommandName and CommandArgument of RadButton are not available in the ClientClicking eventargs
The CommandArgument value of RadButton is not available in the ClientClicking eventargs of RadButton. The get_commandName() method of the event arguments always returns null.


The issue is introduced in Q1 2016 release.

Steps to reproduce:
Run the following code and click the button.

    <script type="text/javascript">
        function btnEdit_Clicking(sender, eventArgs) {
            alert(eventArgs.get_commandArgument());
        }
    </script>
    <telerik:RadButton ID="RadButton2" AutoPostBack="false"
        runat="server" Text="Click Me"
        OnClientClicking="btnEdit_Clicking"
        CommandArgument="Name">
    </telerik:RadButton>
2 comments
Imported User
Posted on: 16 Feb 2016 10:00
1) Either get the information from the internal properties of the arguments - args._commandArgument; args._commandName;
Does not work.

Only 2) and sender._commandName and sender_commandArgument seem to work.
ADMIN
Danail Vasilev
Posted on: 20 Jan 2016 09:05
For the time being you can:
1) Either get the information from the internal properties of the arguments - args._commandArgument; args._commandName;
2) Or obtain the information from the sender -  sender.get_commandArgument(); sender.get_commandName();