Sample Application on MVC 4 with Ext.Net

  1. #1

    Sample Application on MVC 4 (aspx view) with Ext.Net

    Hi,

    I am quite new to Ext.Net controls, can anyone send me a sample application on MVC 4(aspx view) with Ext.net controls like text field, combobox or grid panel

    i jus added the textfield control, it was not displaying on the View page

    Can anyone help me

    Thanks in advance
    G Suresh
    Last edited by sundarsureshin; Jun 23, 2014 at 4:13 PM.
  2. #2
    Hi @sundarsureshin,

    Welcome to the Ext.NET forums!

    There is the MVC Examples Explorer online.
    http://mvc.ext.net/

    Also you can download Ext.NET with the full sources of the MVC Examples Explorer.
    http://www.ext.net/download/
  3. #3

    How to get the value from View page to the controller using button click (direct event) below is my code attached

    View Page
    ==================
    @Html.X().ResourceManager()
    
        
    
        <div>
            
            Name : @Html.TextBoxFor(model => model.Name, new { @class = "x-form-field", style = "width:300px;" })<br />
            Address : @Html.TextBoxFor(model => model.Address, new { @class = "x-form-field", style = "width:300px;" })<br />
            City : @Html.TextBoxFor(model => model.City, new { @class = "x-form-field", style = "width:300px;" })<br />
            Country : @Html.TextBoxFor(model => model.Country, new { @class = "x-form-field", style = "width:300px;" })<br />
        </div>
        <div>
            @( Html.X().Button() .Text("Submit")
            
            .DirectEvents(de => {
                                    de.Click.Url = Url.Action("DirectEventSubmit");
                                    de.Click.EventMask.ShowMask = true;
                                })
                                )
        </div>
    =======================================
    Controller
    =======================================

    public ActionResult DirectEventSubmit()
      {
    return this.Direct();
    }
    =======================================
    Model
    =======================================
    public class Enquiry
        {
            DbFactory ObjDbfactory;
            protected void InitializeDB()
            {
                ObjDbfactory = new DbFactory(DataBaseType.SQLServer, ConfigurationManager.ConnectionStrings["DatabaseConnection"].ConnectionString);
            }
    
    public string Mode { get; set; }
            public string Name { get; set; }
            public string Address { get; set; }
            public string City { get; set; }
            public string Country { get; set; }
    }
    i had tried calling the model in the view page, it displays only the null value, please give me solution, how to get the value passed from the view page to the controller.

    Thanks in advance,
    Suresh G
    Last edited by Daniil; Jun 30, 2014 at 1:51 PM. Reason: Please use [CODE] tags
  4. #4
    Here is a related thread.
    http://forums.ext.net/showthread.php?38411

Similar Threads

  1. Replies: 4
    Last Post: Mar 07, 2012, 4:27 PM
  2. [CLOSED] Coolite MVC Sample Application Not Accessible
    By P2E in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Aug 04, 2010, 6:27 PM
  3. MVC Sample
    By BGeorge in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 12, 2008, 12:56 PM
  4. more sample please!
    By bruce in forum Examples and Extras
    Replies: 0
    Last Post: Oct 24, 2008, 4:58 AM
  5. Looking for asp.net sample pages
    By pkellner in forum Open Discussions
    Replies: 1
    Last Post: Sep 17, 2008, 4:24 PM

Posting Permissions