jQWidgets Forums

jQuery UI Widgets Forums Grid Bind 2 grids

This topic contains 3 replies, has 2 voices, and was last updated by  Dimitar 11 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Bind 2 grids Posts
  • Bind 2 grids #25236

    prabhu
    Member

    Hi Team,

    I have a requirement where I need to bind 2 jqxGrids in such a way that,the focus on selection of a cell should switch between 2 grids. To be more clear let me show an example.

    Assume I have a jqxGrid ‘A’ with two cells p and q and another grid ‘B’ with r and s as the cells. Ideally,when I select cell p and then cell q,the focus shifts from p to q and cell q is shown as selected. I want this to happen between two grids where in If i select p and then r then r should be shown selected and p should remain unselected.

    please asist on this and guide me how achieve this.

    Thanks,
    Kishore

    Bind 2 grids #25301

    Dimitar
    Participant

    Hello Kishore,

    To achieve this functionality, bind on the cellselect event of the second grid and call the clearselection method of the first grid and vice versa.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Bind 2 grids #25337

    prabhu
    Member

    Thanks for your reply,
    I did do that. Now when I select cell in second grid my cell of first grid is unselected,how ever when i enter some text in the newly selected cell of second grid,the text also gets posted in earlier cell that i selected. how do I prevent the text editing to shif completely to new cell of another grid.

    Please assist,
    Kishore

    Bind 2 grids #25389

    Dimitar
    Participant

    Hi Kishore,

    Could you, please, provide us with a code sample demonstrating the reported behaviour?

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.