Trying to bind a value to a radbutton that sits in my detailtable commantiemtemplate. Code works but no values are ever put through, checekd to make sure there is data and the database returns a value but when I click on button and alert nothing comes through the event_args. If I put on the main grid table it all works just fine but not on detail table.
<DetailTables> <telerik:GridTableView AutoGenerateColumns="false" Font-Size="9" Name="LeaseDates" BorderWidth="2px" DataKeyNames="intLeaseDateId" Width="30%" CommandItemDisplay="Top" > <ItemStyle HorizontalAlign="Center" BorderWidth="2px" /><AlternatingItemStyle BackColor="#B0C4DE" HorizontalAlign="Center" /><HeaderStyle HorizontalAlign="Center" /> <CommandItemStyle Height="25px" HorizontalAlign="Left" Font-Underline="true" /> <CommandItemTemplate> <telerik:RadButton ID="btnDates" runat="server" ButtonType="SkinnedButton" Text="Manage Dates" AutoPostBack="false" OnClientClicked="LoadDates" CommandArgument='<%# Bind("intLeaseID")%>'></telerik:RadButton> </CommandItemTemplate> <Columns> <telerik:GridBoundColumn HeaderText="Start Date" DataField="dtStartDate" UniqueName="Start" /> <telerik:GridBoundColumn HeaderText="End Date" DataField="dtEndDate" UniqueName="End" /> </Columns> Protected Sub myradGrid_DetailTableDataBind(sender As Object, e As GridDetailTableDataBindEventArgs) Handles myradGrid.DetailTableDataBind sql = "Select intleaseDateId, intLeaseID, dtstartDate, dtEndDate from vw_LeaseDates where intLeaseID = " & e.DetailTableView.ParentItem.GetDataKeyValue("intLeaseID") & "" e.DetailTableView.DataSource = getReader(sql) End Sub function LoadDates(sender, eventargs) { var radLease = $find("<%= radLease.ClientID%>"); var LeaseId = sender.get_commandArgument(); alert(LeaseId); radLease.setUrl("../TaccAdmin/Dates.aspx?Lease=" + LeaseId); radLease.set_width("700"); radLease.set_height("400"); radLease.show(); }