简体   繁体   English

创建带有列表框的复选框列表

[英]Creating checkboxlist with a list box

I have an requirement to create a list type structure and that will be the options kind of thing.So, when user check the checkboxes or in other words select the options, I have an box equally opposite to it which will show the seleceted options. 我需要创建一个列表类型结构,这将是选项类型的事情。因此,当用户选中复选框或换句话说选择选项时,我有一个与之相对的框将显示选择的选项。 for eg 例如

The first box contains this:: 第一个框包含以下内容:

checkbox Investemnt-1102 复选框Investemnt-1102
checkbox credit-rt11 复选框credit-rt11
checkbox debit -2390 复选框借方-2390

the seocond box will list all the items that are selected from first box seocond框将列出从第一个框中选择的所有项目

as I am new to MVC, I am confused for the first thing that I am not using any third party control.I need to do it custom .so, How can I make it possible. 因为我是MVC的新手,所以我对我没有使用任何第三方控件的第一件事感到困惑。我需要自定义.so,如何使之成为可能。 Please suggest. 请提出建议。

You can always create custom Helpher extended controls in MVC. 您始终可以在MVC中创建自定义Helpher扩展控件。 This is the beauty of MVC. 这就是MVC的美。

Do you want something like this? 你想要这样的东西吗? MvcCheckBoxList MvcCheckBoxList

You can play around with your logics easily. 您可以轻松地运用自己的逻辑。

Here is the detailed description of above extension http://www.codeproject.com/Articles/292050/CheckBoxList-For-A-missing-MVC-extension 这是上述扩展的详细说明http://www.codeproject.com/Articles/292050/CheckBoxList-For-A-missing-MVC-extension

Do google and read about Extensions 谷歌和阅读有关扩展

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM