Sign In  Sign Up Live-Chat

Client Side Functions

Last post 07-18-2008, 12:16 PM by Amjad Sahi. 3 replies.
Sort Posts: Previous Next
  •  07-17-2008, 5:03 PM 135995

    Client Side Functions

    Is the client side function setActiveCell(rownumber, colnumber) sets the focus on the particular cell?
    I've to set the focus on a particular cell on the cellUnSelected event? When I call setActiveCell, now there are more than one cell active in the Grid.

     <agw:GridWeb ID="GridWeb1" runat="server" OnCellUnselectedClientFunction="onCellUnselected">

    <script type="text/javascript">

    function onCellUnselected()
    {
        GridWeb1.setActiveCell(2,6);     // This causes 2 different cells to be active at the same time
    }


     
  •  07-18-2008, 1:54 AM 136021 in reply to 135995

    Re: Client Side Functions

    Hi,

    Well, when you use enter key the focus is shifted to the next cell in the same column by default, so you might see two cells selected one is the next cell and other is your desired cell(2,6) / "G3" cell. But if you use mouse click to fire the cellUnSelected event, this won't be happen though. We will check if we can enhance this behaviour for your need.

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
  •  07-18-2008, 10:41 AM 136112 in reply to 136021

    Re: Client Side Functions

    Thanks for your response. In your demo for clientside functions, I never see two cells to be active at the same time. That is the exact same feature that I need. Is there any function like resetActiveCell? When I hit enter, the focus goes to the next cell. May be I can just reset it and set the focus to the cell I need.

    Thanks.
     
  •  07-18-2008, 12:16 PM 136133 in reply to 136112

    Re: Client Side Functions

    Hi,

    Thanks for following up.

    We will figure it out soon.

    Thank you.


    Amjad Sahi
    Support Developer,
    Aspose Nanjing Team
    Contact Us
     
View as RSS news feed in XML