[Razor] How to show window

  1. #1

    [Razor] How to show window

    My code here
    @Html.X().ResourceManager()
    @Html.X().Button().Text("Click to show").OnClientClick("#{myWindow}.show();")
    @Html.X().Window().Title("My Window").ID("myWindow").Hidden(true).Width(500).Height(300)
    But when it show, It have error like here

    Click image for larger version. 

Name:	showwindowerror.gif 
Views:	128 
Size:	6.9 KB 
ID:	4896
  2. #2
    Hi,

    If using Ext.NET 2.0, the #{myWindow} syntax is not really going to work in MVC projects. There are some enhancements in the upcoming v2.1 release, although for now you can just expand to the full client-side path.

    You can replace #{myWindow}.show() with the following:

    Example

    App.myWindow.show()
    Hope this helps.
    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] Hide / Show columns in Grid - Razor
    By MTSI in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 30, 2012, 12:41 PM
  2. [CLOSED] [Razor] Summary column don't show sum
    By boris in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 10, 2012, 2:51 PM
  3. [CLOSED] Icons don't show [Razor]
    By boris in forum 2.x Legacy Premium Help
    Replies: 7
    Last Post: Apr 25, 2012, 2:38 PM
  4. Replies: 3
    Last Post: Mar 19, 2012, 12:35 PM
  5. Replies: 1
    Last Post: Jan 27, 2012, 11:32 AM

Posting Permissions