I want to pass selected dropdown text (ddlTime) in commandArgument of button.
Note: Dropdown's Autopostback = false.
Code- Aspx -
<asp:DropDownList ID="ddlTime" runat="server" AutoPostBack="false" Width="70">
</asp:DropDownList>
<telerik:RadButton ID="btnViewSun" runat="server" Text="View" CommandArgument="-pass selected value here-"
OnClientClicked="OnClientClicked_ViewAssignedCust" ButtonType="LinkButton" BorderStyle="None" />
I hv wrote a JS function ("OnClientClicked_ViewAssignedCust") to catch arguments. Please give me some hint.
It is hard to know your requirement with the small amount of information you have given.
But from my vision, you can try this:
Use JQuery to get the selected value in the javascript event like below:
The CommandArgument parameter can be retrieved in the server code only.