ReadOnly Property

  1. #1

    ReadOnly Property

    Hi ,

    i have set a date column property to ReadOnly = true, then i m changing this property to ReadOnly= false on a Combo box Direct Event but it not makes that field editable. i have also try Editable = true but it is ReadOnly.

    Regards,

    Yusuf Ali
  2. #2
    Hi,

    I am still having same problem with ReadOnly Property and today i have put two button on form one of them i made visible = false at design time, but when i change the button property to visible = true at run time on second button's DirectEvent, the first button is not getting visible to me. Here i am attaching a sample code please check it and reply me soon.

    <ext:Panel ID="pnlMain" runat="server" Padding="6">
        <Content>
            <table>
                <tr>
                    <td colspan="2">
                        <cc2:AxLabel ID="lblInfo" runat="server" Text="Checking for available seat:" font-size="20pt">
                        </cc2:AxLabel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <cc2:AxButton ID="btnSeatCheck" Text="Check Seat" runat="server" Width="100">
                            <DirectEvents>
                                <Click OnEvent="btnSeatCheck_Click">
                                </Click>
                            </DirectEvents>
                        </cc2:AxButton>
                    </td>
                    <td>
                        <cc2:AxButton ID="btnbook" Text="Book Seat" runat="server" Width="100"
                            Visible="false">
                         </cc2:AxButton>
                    </td>
                </tr>
            </table>
        </Content>
    </ext:Panel>

    In code behine file : Second Button's click DirectEvent

    protected void btnSeatCheck_Click(object sender, EventArgs e)
    {
        btnbook.Visible = true;
    }
    but after this code executed first button is not visible.
  3. #3
    Hi,

    Regarding .ReadOnly: please use the .SetReadOnly() method.

    Regarding .Visible: please use the .Hidden property instead of .Visible. Here is more info:
    http://forums.ext.net/showthread.php...ll=1#post54033
  4. #4
    Hi,

    Thanks for your quick reply. Hidden property solved my visible problem but i am still having problem with read only property. their is no .SetReadOnly() Method for text field control.


    thanks
  5. #5
    Apologize, .SetReadOnly() is a protected method.

    Please still use just the .ReadOnly property, it should work. Please provide a full example to reproduce.

Similar Threads

  1. Readonly Property
    By vivekrane1986 in forum 1.x Help
    Replies: 2
    Last Post: Sep 14, 2010, 6:08 AM
  2. readonly property
    By maxdiable in forum 1.x Help
    Replies: 0
    Last Post: Jan 21, 2010, 11:51 AM
  3. [CLOSED] ReadOnly property in HtmlEditor
    By methode in forum 1.x Legacy Premium Help
    Replies: 10
    Last Post: Apr 01, 2009, 8:29 AM
  4. Readonly property
    By speedstepmem4 in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 01, 2008, 5:25 PM
  5. Replies: 1
    Last Post: Nov 21, 2008, 7:10 AM

Posting Permissions