[CLOSED] [MVC] Use Devexpress component inside Ext.Net

  1. #1

    [CLOSED] [MVC] Use Devexpress component inside Ext.Net

    Hi guys,

    I have the last version of ext.net MVC and the last version of devExpress MVC.

    I want add devexpress component in devexpress but currently, the devexpress component is add on top of ext

    View.cshtml
    
    @Html.X().ResourceManager(ViewBag.ManagerConfig as MvcResourceManagerConfig)
    @(
     Html.X().Panel()
            .ID("Panel")
            .Width(500)
            .Height(300)
            .Html
            (
                Html.DevExpress().ComboBox(
                            settings =>
                            {
                                settings.Name = string.Format("Combo");
                                settings.Width = 400;
                                settings.Properties.IncrementalFilteringMode = DevExpress.Web.ASPxEditors.IncrementalFilteringMode.Contains;
                                settings.Properties.DropDownStyle = DevExpress.Web.ASPxEditors.DropDownStyle.DropDownList;
                                settings.Properties.ValueType = typeof(int);
                                settings.Properties.TextField = "Name";
                                settings.Properties.ValueField = "Id";
                            }
                        ).GetHtml().ToHtmlString()
             )
    )
    I try also ItemFromPartial but the result is the same.

    Click image for larger version. 

Name:	DevExpressWithExtMVC.png 
Views:	10 
Size:	1.4 KB 
ID:	6788

    Regards
    Last edited by Daniil; Aug 21, 2013 at 2:06 PM. Reason: [CLOSED]
  2. #2
    Hi @Tactem,

    Could you post what the .ToHtmlString() call does return?

    Quote Originally Posted by Tactem View Post
    I try also ItemFromPartial but the result is the same.
    The ItemsFromPartial thing expects Ext.NET components within a partial view. You can try with ContentFromPartial.
  3. #3
    Try this
    .Content(@<text>
            @(
               Html.DevExpress().ComboBox(....)
             )
    </text>)
  4. #4
    Thank you Danniil, it's work with content partial.

    @vladimir : your solution doesn't work

    Thanks

Similar Threads

  1. Replies: 4
    Last Post: Oct 16, 2012, 12:04 AM
  2. How to use devexpress control inside EXT.NET control
    By bilgibilisim in forum 2.x Help
    Replies: 5
    Last Post: Sep 06, 2012, 5:27 PM
  3. Replies: 2
    Last Post: Apr 21, 2012, 10:15 AM
  4. Window component inside desktop control
    By Shuaib in forum 1.x Help
    Replies: 0
    Last Post: Apr 20, 2012, 3:30 PM
  5. [CLOSED] Radio component inside window hidden=true
    By jeybonnet in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Dec 10, 2010, 8:52 PM

Tags for this Thread

Posting Permissions