Inheritance: Ext.Net.AbstractDataView, IXPostBackDataHandler
Esempio n. 1
0
        private DataView GetDataView()
        {
            DataView view = new DataView()
                {
                    ID = "DataView1"
                };

            XTemplate tpl = new XTemplate()
                {
                    ID = "XTemplate1"
                };

            tpl.Html = "<tpl for=\".\">" +
                              "<div class=\"item\">" +
                                  "<tpl if=\"!Ext.isIE6\">" +
                                      "<img src=\"../../Shared/images/touch-icons/{thumb}\" />" +
                                  "</tpl>" +
                                  "<tpl if=\"Ext.isIE6\">" +
                                      "<div style=\"position:relative;width:74px;height:74px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\"../../Shared/images/touch-icons/{thumb}\")></div>" +
                                  "</tpl>" +
                                  "<h3>{name}</h3>" +
                              "</div>" +
                          "</tpl>";

            view.Tpl = tpl;

            view.Plugins.Add(new DataViewAnimated());
            view.ItemSelector = "div.item";
            view.Store.Add(this.GetStore());

            return view;
        }