チェンジセット 1684 (default)


以下の違いを無視:
日時:
2024/09/03 12:06:53 (5週前)
更新者:
hizuya@…
ログメッセージ:
  • SelectField のテンプレートに配置したチェックボックスが無効の場合、全体のチェックボックスで操作されないように修正。
場所:
framework/trunk
ファイル:
2個の更新

凡例:

未変更
追加
削除
  • framework/trunk/WebApplication/UI/WebControls/SelectFieldTemplatePage.aspx

    r1652 r1684  
    4848                                <asp:PlaceHolder runat="server" 
    4949                                    Visible='<%# Eval("is_small") %>'> 
    50                                     [ <asp:CheckBox runat="server"/> ] 
     50                                    [ <asp:CheckBox runat="server" Enabled='<%# CommonDbDataSource101GridView.PageIndex < 1 %>'/> ] 
    5151                                </asp:PlaceHolder> 
    5252                                <asp:PlaceHolder runat="server" 
    5353                                    Visible='<%# !(bool)Eval("is_small") %>'> 
    54                                     x <asp:CheckBox runat="server"/> x 
     54                                    x <asp:CheckBox runat="server" Enabled='<%# CommonDbDataSource101GridView.PageIndex != 2 %>'/> x 
    5555                                </asp:PlaceHolder> 
    5656                            </ItemTemplate> 
  • framework/trunk/WebLibrary/Sources/UI/WebControls/SelectField.cs

    r1652 r1684  
    775775        { 
    776776            System.Web.UI.WebControls.CheckBox checkBox = (System.Web.UI.WebControls.CheckBox)sender; 
     777            if (!WebUtility.IsEnabled(checkBox)) 
     778            { 
     779                return; 
     780            } 
     781 
    777782            checkBox.InputAttributes["class"] 
    778783                = StyleUtility.MergeCssClass( 
詳しい使い方は TracChangeset を参照してください。