我在datagrid的html里添加一个模板列,增加radiobuttonlist项。
代码:
<asp:TemplateColumn HeaderText=" 权限">
<ItemTemplate>
<asp:RadioButtonList ID="x" Runat="server" RepeatDirection="Horizontal" >
<asp:ListItem Value="3" Text="x1"></asp:ListItem>
<asp:ListItem Value="2" Text="x2"></asp:ListItem>
</asp:RadioButtonList>
</ItemTemplate>
</asp:TemplateColumn>问题1:在客户端,给一个RadioButtonList的item选择值(x1或者x2)后,不能不选择了。我的意思是它应该像checkboxlist一样,点一次为“选择”,再点一次为“放弃”,即"都不选择"。请问怎么办?
问题2:要引发RadioButtonList的change事件,怎么引发?