More Information Required

  1. #1

    More Information Required

    You may have been directed to this thread because you have provided insufficient information and your technical support issue cannot be diagnosed properly.


    Your first step is to review the Forum Posting Guidelines.

    After reviewing and accepting the Forum Posting Guidelines, the following tips can also be helpful:

    1. Code Sample Required

      Further below you will find three different .aspx code sample templates to help get you started. Your goal is to demonstrate in code how to reproduce the issue in question.

      The helper should be able to copy + paste your code sample into their local Visual Studio test Project without having to make modifications to your code.

      Please remove ALL unrelated code from your sample. Your code sample should demonstrate how to reproduce the issue, with the minimum amount of code necessary.

      Tips for creating simplified code samples

      Please wrap your code samples in [CODE][/ CODE] or [HTML][/ HTML] tags. <-- remove extra space in closing tag.

      Your code samples should be provided inline within a forum post. Please do not link to a .zip file. We do not open .zip files and will remove any links that point to a .zip file.

      We do not accept sample projects sent by email.

      NOTE: Any unsolicited code sent by email will not be viewed and will be deleted immediately.
      .
    2. Screen Capture or Mockup Required

      A visual clue demonstrating your request is required.

      At times when requesting new features, functionality or style revisions, the idea is best demonstrated using a modified screen capture or mockup.

      Please feel free to annotate the screen capture or mockup with notes, arrows and/or any other visual clues that will help others fully understand your request.
      .
    3. Code Sample is Unreadable or Missing [CODE] tags

      Please EDIT your [CODE] or [HTML] sample and re-format.

      Please do not repost the same code block in a new post... just Edit your original post.

      You might have to first copy/paste your code sample into a text editor (such as Sublime or Visual Studio Code), and then back into the forum WYSIWYG editor. Pasting from a text editor should help retain the proper character indentation and line spacing.

      The jsbeautifier can be helpful with formatting your JavaScript code.

      Properly formatted code will enable the helper to spot defects quicker which will result in your posts being answered quickly. And, it just helps keep things looking tidy. ;)

      Please wrap your code samples in [CODE][/ CODE] or [HTML][/ HTML] tags. <-- remove extra space in closing tags.

      As a general rule, forums posts with code samples missing [CODE] or [HTML] tags will NOT get a response.
      .
    4. "Please reply ASAP"

      We understand that almost all forum requests are a priority, and our priority is to answer as many as quickly as possible.

      Unfortunately, adding "Please reply ASAP" or something similar to a post will not speed up the process. Typically it will have the opposite affect intended by the original author.

      If you add "Please reply ASAP" to a forum post, and feel you are not getting a timely response, please edit your forum post to remove the "Please reply ASAP" statement, then post a follow-up including additional information regarding your original question.

      The best way to help ensure you receive a fast and accurate response is to ensure you provide sufficient information in the original post. Providing as many of the following details will help ensure you receive a reply ASAP:
      - An accurate description
      - Any relevant error messages
      - A screen capture/mockup
      - A simplified [CODE] sample demonstrating how to reproduce the problem
      - MORE TIPS



    Code Sample Templates

    A. Basic

    <%@ Page Language="C#" %>
    
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            // Your Code Here
        }
        
        protected void DirectEvent_Stub(object sender, DirectEventArgs e)
        {
            
        }
    </script>
    
    <!DOCTYPE html>
        
    <html>
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            // Your Components Here
        </form>
    </body>
    </html>
    B. Button with DirectEvent

    <%@ Page Language="C#" %>
    
    <%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
    
    <script runat="server">
        protected void Button1_Click(object sender, DirectEventArgs e)
        {
            X.Msg.Notify("Message", this.TextField1.Text).Show();
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Example</title>
    </head>
    <body>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            
            <ext:Window 
                runat="server" 
                Title="Example"
                Padding="5"
                Height="215"
                Width="350">
                <Items>
                    <ext:TextField ID="TextField1" runat="server" FieldLabel="Item 1" />
                </Items>
                <Buttons>
                    <ext:Button runat="server" Text="Submit" OnDirectClick="Button1_Click" />
                </Buttons>
            </ext:Window>
        </form>
    </body>
    </html>
    C. GridPanel with Data

    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!X.IsAjaxRequest)
            {
                this.Store1.DataSource = this.Data;
                this.Store1.DataBind();
            }
        }
    
        private object[] Data
        {
            get
            {
                return new object[]
                {
                    new object[] { "3m Co", 71.72, 0.02, 0.03, "9/1 12:00am" },
                    new object[] { "Alcoa Inc", 29.01, 0.42, 1.47, "9/1 12:00am" },
                    new object[] { "Altria Group Inc", 83.81, 0.28, 0.34, "9/1 12:00am" },
                    new object[] { "American Express Company", 52.55, 0.01, 0.02, "9/1 12:00am" },
                    new object[] { "American International Group, Inc.", 64.13, 0.31, 0.49, "9/1 12:00am" },
                    new object[] { "AT&T Inc.", 31.61, -0.48, -1.54, "9/1 12:00am" },
                    new object[] { "Boeing Co.", 75.43, 0.53, 0.71, "9/1 12:00am" },
                    new object[] { "Caterpillar Inc.", 67.27, 0.92, 1.39, "9/1 12:00am" },
                    new object[] { "Citigroup, Inc.", 49.37, 0.02, 0.04, "9/1 12:00am" },
                    new object[] { "E.I. du Pont de Nemours and Company", 40.48, 0.51, 1.28, "9/1 12:00am" }
                };
            }
        }
    </script>
    
    <!DOCTYPE html>
    
    <html>
    <head runat="server">
        <title>Ext.NET Examples</title>
    
        <script type="text/javascript">
            var template = '<span style="color:{0};">{1}</span>';
    
            var change = function (value) {
                return String.format(template, (value > 0) ? "green" : "red", value);
            };
    
            var pctChange = function (value) {
                return String.format(template, (value > 0) ? "green" : "red", value + "%");
            };
        </script>
    </head>
    <body>
        <ext:ResourceManager runat="server" />
        
        <h1>Simple Array Grid</h1>
        
        <ext:GridPanel 
            ID="GridPanel1"
            runat="server" 
            StripeRows="true"
            Title="Array Grid" 
            TrackMouseOver="true"
            Width="600" 
            Height="350"
            AutoExpandColumn="company">
            <Store>
                <ext:Store ID="Store1" runat="server">
                    <Reader>
                        <ext:ArrayReader>
                            <Fields>
                                <ext:RecordField Name="company" />
                                <ext:RecordField Name="price" Type="Float" />
                                <ext:RecordField Name="change" Type="Float" />
                                <ext:RecordField Name="pctChange" Type="Float" />
                                <ext:RecordField Name="lastChange" Type="Date" DateFormat="M/d hh:mmtt" />
                            </Fields>
                        </ext:ArrayReader>
                    </Reader>
                </ext:Store>
            </Store>
            <ColumnModel runat="server">
                <Columns>
                    <ext:Column ColumnID="Company" Header="Company" DataIndex="company" />
                    <ext:Column Header="Price" DataIndex="price">                  
                        <Renderer Format="UsMoney" />
                    </ext:Column>
                    <ext:Column ColumnID="Change" Header="Change" DataIndex="change">
                        <Renderer Fn="change" />
                    </ext:Column>
                    <ext:Column Header="Change" DataIndex="pctChange">
                        <Renderer Fn="pctChange" />
                    </ext:Column>
                    <ext:DateColumn Header="Last Updated" DataIndex="lastChange" />
                </Columns>
            </ColumnModel>
            <SelectionModel>
                <ext:RowSelectionModel runat="server" SingleSelect="true" />
            </SelectionModel>
        </ext:GridPanel>          
    </body>
    </html>
    More information regarding posting in the forums is available in the Forum Posting Guidelines.
    Last edited by geoffrey.mcgill; Jun 02, 2016 at 9:25 PM.

Similar Threads

  1. Get Users Information
    By rsaldanhabr in forum 1.x Help
    Replies: 6
    Last Post: Mar 13, 2013, 4:32 PM
  2. DragDrop item information from TreePanel
    By Dominik in forum 2.x Help
    Replies: 1
    Last Post: Jun 01, 2012, 9:31 AM
  3. Problem With Internet Information Service(IIS).
    By nadiepornadie in forum 1.x Help
    Replies: 2
    Last Post: Jan 18, 2011, 12:01 AM
  4. Need information about AjaxEventConfirmation
    By jjmanuel in forum 1.x Help
    Replies: 1
    Last Post: May 05, 2009, 2:14 PM
  5. Replies: 0
    Last Post: Oct 30, 2008, 10:12 PM

Posting Permissions