DNN 如何创建具有多个控件的复杂模块
我的目标是创建一个模块,其中包含带有 xml 文件条目的列表视图。 xml 文件只是某个对象的序列化数组。以国家/地区{代码,名称,URL}为例。
当单击一个条目时,另一个控件应该显示某种项目控件中的所有项目,并具有基于类型的样式(该想法来自 WPF)。我认为可以为可能的项目类型创建某种样式/规则,在上面的例子中是“国家/地区”。 (欢迎任何关于如何实现这一目标的想法/建议)。
现在,在样式项列表中,人们应该能够选择所需的项,并将其导出到基于新类型 SelectedContries{Code,Name,Url, Params} 的新 XML 文件。然后,用户需要在新列表中添加额外的参数并导出(序列化)。
我现在的问题是,做这样的模块什么是正确的方法。 1 个模块带 3 个控件。我是模块开发的新手,所以请深入解释。我是否在模块内创建 Asxc 文件作为我的控件?
根据我上面解释的目标,任何可能对此有好处的指南链接都很好,并且也欢迎任何一般性建议。谢谢。
My goal are to create a module that holds a listview with entries of xml files. The xml files are just serialized arrays of some object. Country{Code,Name,URL} as an example.
When an entry is clicked another control should show all the items in some kind of item control with styling based on the type(The idea are from WPF). I assume its possible to create some kind of style/rules for possible item types, in above case Country. (any ideas/advises on how to achieve this is welcome).
Now in the list of styled items, one should be able to select wanted items, and export this to a new XML file based on a new type SelectedContries{Code,Name,Url, Params}. The user will then need to add in the extra params in the new list and export(serialize).
My question is now, to do such module what would be the proper way. One module with 3 controls. I am new to module development so please explain deeply. Do i create Asxc files within the module as my controls?
Based on my explained goal above, any links to guides that might be good for exactly this would be nice and any general advises are also welcome. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我没猜错的话,您希望在模块上有一个网格,显示从 xml 文件中读出的所有国家/地区条目。
用户可以编辑或向这些条目添加一些详细信息,然后将其再次导出(序列化)到 xml 中。
我将使用实现的 Telerik Grid RadGrid(DNN 包装器称为“dnnGrid”)来显示模块上网格中的所有 xml 项目。
然后,我会根据您的特殊需求增强网格,添加一些新列或编辑现有列(不确切知道您要在此网格中编辑什么)。
最后一步是再次序列化条目,这应该通过调用序列化方法的额外按钮来完成。
这些是我的基本想法。我是一名 dnn 模块开发人员,我想如果您向我详细解释一下,向我展示一些 xml 文件等等,我想我可以更好地帮助您。
最好的问候,没有人
if I got you right, that you want to have a grid on your module showing all your country entries read out from a xml file.
The user can edit or add some detail information to those entries and export (serialize) it again into xml.
I would use the implemented Telerik Grid RadGrid (DNN wrapper is called "dnnGrid") to show all xml items in a grid on your module.
Then I would enhance the grid for your special needs adding some new columns or edit the existing (dont know exactly what you want to edit in this grid).
The last step is to serialize the entries again this should be done with a extra button calling the serialize method.
These are rly basic ideas from me. Iam a dnn module developer I think I could help you better if you explain it to me a lil detailed, show me a bit of the xml file and so on.
best regards, noone