嵌套如果Else Kendo UI

时间:2016-08-18 12:20:11

标签: kendo-ui kendo-grid

我正在写Nested如果else如下: 代码有什么问题:

#if(item.ATTACHMENTS == 'Aftermarket'){#
                    #if(item.IS_ATT_AM_UPDATED == 'Y'){#
                        <img id="AftermarketBlueCircle" src="@Url.Content("~/Content/Images/BlueCircle.png")" /> 
                    #}
                    else{#
                           <img id="AftermarketHalfCircle" src="@Url.Content("~/Content/Images/HalfBlueCircle.jpg")" /> +
                    #}#
           else{#
                 #if(item.IS_ATT_TS_UPDATED == 'Y'){#
                        <img id="AftermarketBlueCircle" src="@Url.Content("~/Content/Images/BlueCircle.png")" /> 
                    #}
                    else{#
                           <img id="AftermarketHalfCircle" src="@Url.Content("~/Content/Images/HalfBlueCircle.jpg")" /> +
                    #}#    
                #}#

请建议

提前致谢!!!

1 个答案:

答案 0 :(得分:0)

#if(item.ATTACHMENTS == 'Aftermarket'){#
                    #if(item.IS_ATT_AM_UPDATED == 'Y'){#
                        <img id="AftermarketBlueCircle" src="@Url.Content("~/Content/Images/BlueCircle.png")" /> 
                    #}
                    else{#
                        <img id="AftermarketHalfCircle" src="@Url.Content("~/Content/Images/HalfBlueCircle.jpg")" /> 
                    #}#
           #}
            else{#
                    #if(item.IS_ATT_TS_UPDATED == 'Y'){#
                        <img id="AftermarketBlueCircle" src="@Url.Content("~/Content/Images/BlueCircle.png")" /> 
                    #}
                    else{#
                        <img id="AftermarketHalfCircle" src="@Url.Content("~/Content/Images/HalfBlueCircle.jpg")" /> 
                    #}#    
            #}#