How To Get Window's New Title After JS: window1.setTitle("newTitle") ?

  1. #1

    How To Get Window's New Title After JS: window1.setTitle("newTitle") ?

    How To Get Window's New Title with C# After Client JS: window1.setTitle("newTitle") ?
  2. #2
    Hi @alucardg,

    Welcome to the Ext.NET forums!

    In this case you should submit a Window's Title manually via, for example, a DirectEvent's extra parameter.

    <%@ Page Language="C#" %>
    <script runat="server">
        protected void GetTitle(object sender, DirectEventArgs e)
            X.Msg.Alert("GetTitle", e.ExtraParams["title"]).Show();
    <!DOCTYPE html>
    <head runat="server">
        <title>Ext.NET v2 Example</title>
        <form runat="server">
            <ext:ResourceManager runat="server" />
            <ext:Window ID="Window1" runat="server" Title="Initial Title" />
            <ext:Button runat="server" Text="Get title">
                    <Click OnEvent="GetTitle">
                            <ext:Parameter Name="title" Value="App.Window1.title" Mode="Raw" />
            <ext:Button runat="server" Text="Set title" Handler="App.Window1.setTitle('New Title');" />
  3. #3
    oh man, thank you for your code . "" , its too difficult, but i like it !
    Last edited by geoffrey.mcgill; May 17, 2014 at 6:14 PM.

Similar Threads

  1. Replies: 6
    Last Post: May 31, 2013, 3:04 AM
  2. [CLOSED] Problem to use property "Maximized" from "Window"
    By avante in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 22, 2013, 12:47 AM
  3. [CLOSED] Is there any way to "disable" the FieldSet title label?
    By vadym.f in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Jul 31, 2012, 8:47 PM
  4. Replies: 5
    Last Post: May 02, 2012, 5:37 PM
  5. Replies: 7
    Last Post: Dec 13, 2011, 2:39 PM

Tags for this Thread

Posting Permissions