1. #1
    Sencha User
    Join Date
    Dec 2013
    Posts
    2
    Vote Rating
    0
    pvasha is on a distinguished road

      0  

    Default Retrieving the active row from Grid.

    Retrieving the active row from Grid.


    Hi All,

    I am pretty new to Rich UI development so please excuse me for naive questions.
    I am currently working on a Grid with multiple records. com.extjs.gxt.ui.client.widget.grid.CheckBoxSelectionModel is added to enable selection of multiple rows/ records.
    The row has mutliple text boxes where the user can change the data.
    How do we retrieve the current active row, in case checkbox for multiple rows is checked.
    I checked the API for CheckBoxSelectionModel but could not find any method that can return the active row. CheckBoxSelectionModel.getLastFocused() will not help as it returns the last row where the check box was clicked.

    Any suggestions on how to retrieve the active row where the user is editing the data?

    Best Regards,

    Prashant

  2. #2
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    39
    Vote Rating
    1
    rondestvedt is on a distinguished road

      0  

    Default


    I don't fully understand your question. When multiple rows are checked, don't they all show as "active"? To get the active row you could call getSelectedItems on the selection model, but this would return all that are selected. Can you provide a code sample?

  3. #3
    Sencha User
    Join Date
    Dec 2013
    Posts
    2
    Vote Rating
    0
    pvasha is on a distinguished road

      0  

    Default


    Our grid has multiple text boxes and select lists. The users have to select a particular row (by clicking the check box) and then they make update to the components in the row. We need to know the cell in which the user is making the change. If we use getSelectedItems(), the method returns all the rows which the user has selected. This does not meet our requirements.

    Best Regards,

    Prashant

  4. #4
    Sencha Premium Member
    Join Date
    Aug 2012
    Posts
    39
    Vote Rating
    1
    rondestvedt is on a distinguished road

      0  

    Default


    Your initial question was about the active row, but you're saying the cell now...is it the row or the cell you need? From what you're describing, it sounds like you may want to use something like GridRowEditing instead of using checkboxes to indicate which row should be edited. With GridRowEditing you would just click the row to edit.

Thread Participants: 1

Tags for this Thread

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar