I have a listview and each row has a RadButton in a column. I need to identify which row's button was clicked on the click event. The row describes a specific row in my database and I need to set a disable/enable column based upon the button clicked. Here is my item template for my ListView. I just need to figure out which row the button belongs on to get the ID. Thanks.
<ItemTemplate> <tr class="rlvI"> <td> <asp:Label ID="IDLabel" runat="server" Text='<%# Eval("ID") %>' /> </td> <td> <asp:Label ID="TASK_NAMELabel" runat="server" Text='<%# Eval("TASK_NAME") %>' /> </td> <td> <asp:Label ID="NEXT_RUNLabel" runat="server" Text='<%# Eval("NEXT_RUN") %>' /> </td> <td> <asp:Label ID="FREQUENCYLabel" runat="server" Text='<%# Eval("FREQUENCY") %>' /> </td> <td> <telerik:RadButton ID="ENABLEDToggle" runat="server" Width=75 ButtonType="StandardButton" ToggleType="CustomToggle" Checked='<%# Enabled_Converter(Eval("ENABLED")) %>' OnCheckedChanged="TaskStateChange_Clicked"> <ToggleStates> <telerik:RadButtonToggleState Text="Enabled" /> <telerik:RadButtonToggleState Text="Disabled" /> </ToggleStates> </telerik:RadButton> </td> </tr></ItemTemplate>