#GridPanel
Explore tagged Tumblr posts
expertengineers · 4 years ago
Photo
Tumblr media
Electrical Control Panel  EXPERT ENGINEERS
#control_panel_manufacturers #expert_engineers #automation #electronics #control #manufacturer #panel #india #controlpanel Panel manufacturer
https://www.expertengineers.co.in/ https://www.indiamart.com/expertengineers-delhi/ Email: [email protected]
0 notes
artefexart01 · 3 years ago
Text
Select Your Custom Art Panel Like A Pro!
Panels of Art
The Panel is a well-known and historically significant painting structure. Artists painted on wood before canvas and linen. Artists can now create on wood, Gatorboard, Sintra, and a variety of other modern surfaces, each with its own distinct features.
The panel provides, among other things, a surface for any media.
A painting surface that is stiff enough to allow for scraping, pressing,
scratching, and the attachment of objects or relief materials.
An readily shaped structure that can be created to almost any shape (see
CUSTOM WORK).
A surface that can be easily and firmly affixed to with objects or relief
A ready-to-paint surface, or one that can be readily stretched and readied for canvas or
Panel Design
Create the perfect custom panel for your artwork in no time!
Let's start with the shape you're after. There are three basic shapes from which to Circle, square or rectangle you can choose from.
What kind of panel do you want?
We employ three different types of panels. 3mm ACM, 6mm Gridpanel, and 4mm CCM are all available. Your typical ACM panel is 3mm thick and can be used on any custom-sized panel up to 24" in length ". Our 6mm Grid panels are used to create larger panels, up to 120 inches wide "in any single direction.
What surface do you require?
There are numerous surfaces to pick from; consult the Artefex Panel Guide to choose which surface is best for you.
If you need, add your own customized, laser engraving on the back of the panel.
1 note · View note
jayseventz · 5 years ago
Photo
Tumblr media
1, 2 or 3 Grid Wall Panel is Available for Rent! . . Contact Us Today for Rental! . . #birthday #birthdayideas #rent #partyrental #fbf #props #enterpreneur #homesetup #hire #event #gridwall #pedestaltable #prophire #plinth #plinthsandpedestals #balloonbouquet #kidsparty #adultsevents #milestonebirthday #balloonbusiness #balloon #partydecoration #balloongarland #gridpanel #backdrop #2020birthday #quarantinebirthday #celebration . Balloon @jays_eventz Gridwall @jays_eventz Pedestal @jays_eventz Decal @customprintsbyaya Baby @joeboyofficial (at Baltimore County, Maryland) https://www.instagram.com/p/CEc67mSlMXH/?igshid=1pex9fgvirjr5
0 notes
naturalpigments · 7 years ago
Video
Circular GridPanel cones off before preparing or artist’s painting. (at Natural Pigments)
0 notes
senchainc-blog · 15 years ago
Video
vimeo
Jay Garcia has created this excellent screencast showing how to use data stores and GridPanels.
5 notes · View notes
extnet-blog · 13 years ago
Text
[Ext.Net]動態產生Portal、GridPanel(含store,Model,Field,ColumnModel)
以下範例是動態產生Portal及GridPanel
<%@ Page Language="C#" %>
<%@ Import Namespace="Ext.Net.Utilities" %>
<%@ Import Namespace="System.Data" %>
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!X.IsAjaxRequest)
        {
            RefreshPortal();
        }
    }
    protected void RefreshPortal()
    {
        Portal1.Items.Clear();
        //塞PortalColumn,最多四欄
        PortalColumn pc1 = this.GetPortalColumn("0.25");
        pc1.Items.Add(GetPortlet("test1", "G", ""));
        this.Portal1.Items.Add(pc1);
        PortalColumn pc2 = this.GetPortalColumn("0.25");
        pc2.Items.Add(GetPortlet("test2", "C", ""));
        this.Portal1.Items.Add(pc2);
        PortalColumn pc3 = this.GetPortalColumn("0.25");
        pc3.Items.Add(GetPortlet("test3", "L", "http://extnet.tumblr.com"));
        this.Portal1.Items.Add(pc3);
        PortalColumn pc4 = this.GetPortalColumn("0.25");
        pc4.Items.Add(GetPortlet("test4", "C", ""));
        this.Portal1.Items.Add(pc4);
        Portal1.Render();
    }
    private PortalColumn GetPortalColumn(string columnWidth)
    {
        PortalColumn pc = new PortalColumn();
        pc.Layout = "anchor";
        if (!(columnWidth == ""))
            pc.ColumnWidth = Convert.ToDouble(columnWidth);
        return pc;
    }
    private Portlet GetPortlet(string title, string type, string content)
    {
        Portlet p = new Portlet()
        {
            ID = title,
            Title = title,
            Height = 200,
        };
                 if (type == "G") //Grid
        {
            GridPanel gp = new GridPanel();
            Store st = new Store();
            Model md = new Model();
            DataTable dt = new DataTable();
            //.......這邊可從db將資料丟到dt......這裡省略,變數content可以傳sql,以帶入資料
            //
            //取出資料後,以下可帶出欄位名及資料
            foreach (DataColumn dc in dt.Columns)
            {
                md.Fields.Add(new ModelField() { Name = dc.ColumnName });
                gp.ColumnModel.Columns.Add(new Column() { DataIndex = dc.ColumnName, Text = dc.ColumnName });
            }
            if (dt != null)
            {
                object[] Data = new object[dt.Rows.Count];
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    object[] aa = new object[dt.Columns.Count];
                    for (int j = 0; j < dt.Columns.Count; j++)
                    {
                        aa.SetValue(dt.Rows[i][j].ToString(), j);
                    }
                    Data.SetValue(aa, i);
                }
                st.DataSource = Data;
                st.DataBind();
            }
            st.Model.Add(md);
            gp.Store.Add(st);
            p.Items.Add(gp);
        }
        else if (type == "C") //Chart
        {
        }
        else if (type == "L")  //Link
        {
            p.Height = 200;
            p.Loader = new ComponentLoader
            {
                Url = content,
                Mode = LoadMode.Frame,
                LoadMask =
                {
                    ShowMask = true,
                }
            };
        }
        return p;
    }
    protected void Add_Block(object sender, DirectEventArgs e)
    {
        //DO something
        w_Widget.Show();
    }
</script>
<!DOCTYPE html>
<html>
<head id="Head1" runat="server">
    <title>Portal in TabPanel - Ext.NET Examples</title>
    <link href="/resources/css/examples.css" rel="stylesheet" type="text/css" /> 
         <style type="text/css">
        .x-column-padding{
            padding : 10px 0px 10px 10px;
        }
                 .x-column-padding1{
            padding : 10px;
        }
    </style>  
</head>
<body>
    <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
                 <ext:Viewport ID="Viewport1" runat="server" Layout="BorderLayout">
            <Items>               
                <ext:TabPanel ID="TabPanel1" 
                    runat="server" 
                    Region="Center"
                    ActiveTabIndex="0" 
                    Title="TabPanel"
                    MarginsSummary="5 5 5 0">
                    <Items>
                        <ext:Panel ID="Panel4" runat="server" Title="Tab 1" Layout="Fit" >
                            <TabMenu>
                                <ext:Menu ID="Menu1" runat="server">
                                    <Items>
                                        <ext:MenuItem ID="MenuItem1" runat="server" Text="_Widget_Setting" Icon="BorderAll" >
                                            <DirectEvents>
                                                <Click OnEvent="Add_Block" >
                                                    <EventMask ShowMask="true" />
                                                </Click>
                                            </DirectEvents>
                                        </ext:MenuItem>
                                    </Items>
                                </ext:Menu>
                            </TabMenu>  
                            <Items>
                                <ext:Portal ID="Portal1" runat="server" Border="false">
                                    <Items>
                                        <ext:PortalColumn ID="PortalColumn1" 
                                            runat="server"
                                            Cls="x-column-padding">
                                            <Items>
                                                <ext:Portlet ID="Portlet1" runat="server" Title="Another Panel 1" Icon="Accept" />
                                            </Items>
                                        </ext:PortalColumn>
                                        <ext:PortalColumn ID="PortalColumn2" 
                                            runat="server" 
                                            Cls="x-column-padding">
                                            <Items>
                                                <ext:Portlet ID="Portlet2" runat="server" Title="Panel 2" />
                                                <ext:Portlet ID="Portlet3" runat="server" Title="Another Panel 2" />
                                            </Items>
                                        </ext:PortalColumn>
                                        <ext:PortalColumn ID="PortalColumn3" 
                                            runat="server" 
                                            Cls="x-column-padding1">
                                            <Items>
                                                <ext:Portlet ID="Portlet4" runat="server" Title="Panel 3" />
                                                <ext:Portlet ID="Portlet5" runat="server" Title="Another Panel 3" />
                                            </Items>
                                        </ext:PortalColumn>
                                    </Items>
                                </ext:Portal>
                            </Items>
                        </ext:Panel>                       
                    </Items>
                </ext:TabPanel> 
            </Items>
        </ext:Viewport>
        <ext:Window 
            ID="w_Widget" 
            runat="server"
            Resizable="false"
            Height="150" 
            Icon="BorderAll" 
            Title="_Widget_Setting"
            Draggable="false"
            Width="350"
            Modal="True"
            Padding="5"           
            AutoDestroy="False" Layout = "FormLayout" Hidden="True" >
            <Items>
                <ext:FormPanel ID="FormPanel2" runat="server" Height="120" Width="340" Padding="5" Layout="AbsoluteLayout">
                    <Items>
                       <ext:ComboBox ID="cbWedgit_Type" runat="server" FieldLabel="_Wedgit_Type" X="10" Y="10">
                            <Items>
                                <ext:ListItem Text="_One_Column" Value="1" />
                                <ext:ListItem Text="_Two_Column" Value="2" />
                                <ext:ListItem Text="_Three_Column" Value="3" />
                                <ext:ListItem Text="_1_Large_2_Small" Value="4" />
                            </Items>
                       </ext:ComboBox>
                        <ext:ComboBox ID="cb_Widget" runat="server" FieldLabel="_Widget_Add" Width="200" X="10" Y="40">
                            <Items>
                                <ext:ListItem Text="test5" Value="test5" />
                                <ext:ListItem Text="test6" Value="test6" />
                                <ext:ListItem Text="test7" Value="test7" />
                                <ext:ListItem Text="test8" Value="test8" />
                            </Items>
                        </ext:ComboBox>                          
                    </Items>
                    <Buttons>
                        <ext:Button ID="Button1" runat="server" Text="_Close" Icon="Door" >
                            <Listeners>
                                <Click Handler="#{w_Widget}.hide();" />
                            </Listeners>
                        </ext:Button>
                    </Buttons>
                </ext:FormPanel>                
            </Items>            
        </ext:Window>
    </form>
</body>
</html>
0 notes
extnet-blog · 13 years ago
Text
[Ext.Net]GridPanel 最前面加上CheckBox
以下引用
Ext.net 2.0的example http://examples.ext.net/#/GridPanel/Selection_Models/Row_Selection/
Tumblr media
如果我想要在前面改用CheckBox,該如何控制
之前因為Ext.net沒有很熟,所以在這邊找了很久
卡住最久的點是,我將資料打出後,要勾出資料庫已選的資料時要怎麼做?
sm.SelectedRows.Add(new SelectedRow(1));  //這個我會
sm.UpdateSelection();  //這行是重點,沒下到就是不會作用。。
只要在 SelectionModel的地方,將原本RowSelectionModel 改成CheckboxSelectionModel,就可以了
Tumblr media
如下原始碼:
<%@ Page Language="C#" %>
<%@ Import Namespace="System.Xml" %>
<%@ Import Namespace="System.Collections.Generic" %>
<%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
<!DOCTYPE html>
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
     {
         this.Store1.DataSource = new List<Company> 
         { 
             new Company("3m Co", 71.72, 0.02, 0.03),
             new Company("Alcoa Inc", 29.01, 0.42, 1.47),
             new Company("Altria Group Inc", 83.81, 0.28, 0.34),
             new Company("American Express Company", 52.55, 0.01, 0.02),
             new Company("American International Group, Inc.", 64.13, 0.31, 0.49),
             new Company("AT&T Inc.", 31.61, -0.48, -1.54),
             new Company("Boeing Co.", 75.43, 0.53, 0.71),
             new Company("Caterpillar Inc.", 67.27, 0.92, 1.39),
             new Company("Citigroup, Inc.", 49.37, 0.02, 0.04),
             new Company("E.I. du Pont de Nemours and Company", 40.48, 0.51, 1.28),
             new Company("Exxon Mobil Corp", 68.1, -0.43, -0.64),
             new Company("General Electric Company", 34.14, -0.08, -0.23),
             new Company("General Motors Corporation", 30.27, 1.09, 3.74),
             new Company("Hewlett-Packard Co.", 36.53, -0.03, -0.08),
             new Company("Honeywell Intl Inc", 38.77, 0.05, 0.13),
             new Company("Intel Corporation", 19.88, 0.31, 1.58),
             new Company("International Business Machines", 81.41, 0.44, 0.54),
             new Company("Johnson & Johnson", 64.72, 0.06, 0.09),
             new Company("JP Morgan & Chase & Co", 45.73, 0.07, 0.15),
             new Company("McDonald\"s Corporation", 36.76, 0.86, 2.40),
             new Company("Merck & Co., Inc.", 40.96, 0.41, 1.01),
             new Company("Microsoft Corporation", 25.84, 0.14, 0.54),
             new Company("Pfizer Inc", 27.96, 0.4, 1.45),
             new Company("The Coca-Cola Company", 45.07, 0.26, 0.58),
             new Company("The Home Depot, Inc.", 34.64, 0.35, 1.02),
             new Company("The Procter & Gamble Company", 61.91, 0.01, 0.02),
             new Company("United Technologies Corporation", 63.26, 0.55, 0.88),
             new Company("Verizon Communications", 35.57, 0.39, 1.11),
             new Company("Wal-Mart Stores, Inc.", 45.45, 0.73, 1.63)
         };
        if (!X.IsAjaxRequest)
        {
            this.Store1.DataBind();
            RowSelectionModel sm = this.GridPanel1.GetSelectionModel() as RowSelectionModel;
            sm.SelectedRows.Add(new SelectedRow(1));
            sm.SelectedRows.Add(new SelectedRow("Caterpillar Inc."));
        }
    }
    protected void Button1_Click(object sender, DirectEventArgs e)
    {
        RowSelectionModel sm = this.GridPanel1.GetSelectionModel() as RowSelectionModel;
        StringBuilder sb = new StringBuilder();
        foreach (SelectedRow row in sm.SelectedRows)
        {
            sb.AppendFormat("RecordID: {0}    Row index: {1}<br/>", row.RecordID, row.RowIndex);
        }
        this.Label1.Html = sb.ToString();
    }
    protected void Clear_Click(object sender, DirectEventArgs e)
    {
        RowSelectionModel sm = this.GridPanel1.GetSelectionModel() as RowSelectionModel;
        sm.ClearSelection();
    }
    protected void Add_Click(object sender, DirectEventArgs e)
    {
        RowSelectionModel sm = this.GridPanel1.GetSelectionModel() as RowSelectionModel;
        sm.SelectedRows.Add(new SelectedRow("Boeing Co."));
        sm.UpdateSelection();
    }
    protected void SubmitSelection(object sender, DirectEventArgs e)
    {
        string json = e.ExtraParams["Values"];
        Dictionary<string, string>[] companies = JSON.Deserialize<Dictionary<string, string>[]>(json);
        StringBuilder sb = new StringBuilder();
        sb.Append("<table  cellspacing='15'>");
        bool addHeader = true;
                 foreach (Dictionary<string, string> row in companies)
        {
            if (addHeader)
            {
                sb.Append("<tr>");
                foreach (KeyValuePair<string, string> keyValuePair in row)
                {
                    sb.Append("<td style='white-space:nowrap;font-weight:bold;padding:5px;'>");
                    sb.Append(keyValuePair.Key);
                    sb.Append("</td>");
                }
                sb.Append("</tr>");
                addHeader = false;
            }
                         sb.Append("<tr>");
            foreach (KeyValuePair<string, string> keyValuePair in row)
            {
                sb.Append("<td style='white-space:nowrap;padding:5px;'>");
                sb.Append(keyValuePair.Value);
                sb.Append("</td>");
            }
            sb.Append("</tr>");
        }
        sb.Append("</table>");
        this.Label1.Html = sb.ToString();
    }
    public class Company
    {
        public Company(string name, double price, double change, double pctChange)
        {
            this.Name = name;
            this.Price = price;
            this.Change = change;
            this.PctChange = pctChange;
        }
        public Company()
        {
        }
        public string Name { get;set; }
        public double Price { get;set; }
        public double Change { get;set; }
        public double PctChange { get;set; }
    }
</script>
<html>
<head id="Head1" runat="server">
    <title>Row Selection Model</title>
         <link href="/resources/css/examples.css" rel="stylesheet" type="text/css" />
</head>
<body>
     <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" />
             <ext:Store ID="Store1" runat="server">
            <Model>
                <ext:Model ID="Model1" runat="server" IDProperty="Name">
                    <Fields>
                        <ext:ModelField Name="Name" />
                        <ext:ModelField Name="Price" />
                        <ext:ModelField Name="Change" />
                        <ext:ModelField Name="PctChange" />
                    </Fields>
                </ext:Model>
            </Model>
        </ext:Store>
             <ext:GridPanel 
            ID="GridPanel1" 
            runat="server" 
            StoreID="Store1"
            Title="Company List"
            Collapsible="true"
            Width="600"
            Height="350">
            <ColumnModel ID="ColumnModel1" runat="server">
           <Columns>
                    <ext:Column ID="Column1" runat="server" Text="Company" DataIndex="Name" Flex="1" />
                    <ext:Column ID="Column2" runat="server" Text="Price" Width="75" DataIndex="Price">
                        <Renderer Format="UsMoney" />
                    </ext:Column>
                    <ext:Column ID="Column3" runat="server" Text="Change" Width="75" DataIndex="Change" />
                    <ext:Column ID="Column4" runat="server" Text="Change" Width="75" DataIndex="PctChange" />
           </Columns>
            </ColumnModel>
            <SelectionModel>
                <ext:CheckboxSelectionModel ID="RowSelectionModel1" runat="server" Mode="Multi" />
            </SelectionModel>           
            <Buttons>
                <ext:Button ID="Button1" runat="server" Text="Submit">
                    <DirectEvents>
                        <Click OnEvent="Button1_Click" />
                    </DirectEvents>
                </ext:Button>
                             <ext:Button ID="Button2" runat="server" Text="Submit with values">
                    <DirectEvents>
                        <Click OnEvent="SubmitSelection">
                            <ExtraParams>
                                <ext:Parameter Name="Values" Value="Ext.encode(#{GridPanel1}.getRowsValues({selectedOnly:true}))" Mode="Raw" />
                            </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button>
                             <ext:Button ID="Button3" runat="server" Text="Clear">
                    <DirectEvents>
                        <Click OnEvent="Clear_Click" />
                    </DirectEvents>
                </ext:Button>
                             <ext:Button ID="Button4" runat="server" Text="Add 'Boeing Co.' to selection ">
                    <DirectEvents>
                        <Click OnEvent="Add_Click" />
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:GridPanel>
              <div style="width:590px; border:1px solid gray; padding:5px;">
            <ext:Label ID="Label1" runat="server" />
        </div>    
         </form>
</body>
</html>
0 notes