[CLOSED] Facing problem with checkbox selection problem in gridpanel.

  1. #1

    [CLOSED] Facing problem with checkbox selection problem in gridpanel.

    I have two gridpanels. On clicking the column of the first grid, the second grid loads, like below image:

    In the image you can see, I have clicked on CPS, and its corresponding values are loaded in the next grid with the checkboxes selected for few of the rows.
    Click image for larger version. 

Name:	1.png 
Views:	61 
Size:	43.3 KB 
ID:	23961

    Now I click on a different column, say ADV TECH, and its corresponding data is loaded on the next grid.
    Click image for larger version. 

Name:	2.png 
Views:	59 
Size:	47.6 KB 
ID:	23962

    Now I click back on CPS, and as you can see in the image, the checkboxes are not being checked properly. Few of them shud be deselected, but it is checking all.
    Click image for larger version. 

Name:	3.png 
Views:	57 
Size:	42.5 KB 
ID:	23963

    below is the code am using to do the checkboxes selection during binding the grid.

     List<int> t3NamesInUse = new List<int>();
                t3NamesInUse = IsInUseTiersList(dtTier3Mapping);
    
                RowSelectionModel sm = this.grdTier3Mapping.SelectionModel.Primary as RowSelectionModel;
                sm.ClearSelection();
               // sm.SelectedRow = new SelectedRow(2);
                foreach (int j in t3NamesInUse)
                {
                    sm.SelectedRows.Add(new SelectedRow(j));
                }
                sm.UpdateSelection();
    In the above code t3NamesInUse is a list of int, which gives the list of column ids which are to be checked. This list am sending in a foreach loop to have the selected rows.
    Last edited by Daniil; May 13, 2015 at 8:24 AM. Reason: [CLOSED]
  2. #2
    Hi @arjunrvasisht,

    That is difficult to say what is going wrong. Please provide a test case with exact steps to reproduce the issue.

Similar Threads

  1. Replies: 4
    Last Post: Apr 27, 2016, 1:18 AM
  2. Replies: 0
    Last Post: Apr 06, 2015, 1:43 PM
  3. [CLOSED] GridPanel Selection Problem
    By ebeker in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Nov 08, 2013, 2:20 PM
  4. Replies: 2
    Last Post: Dec 07, 2011, 7:00 PM
  5. Replies: 2
    Last Post: Mar 22, 2011, 3:40 PM

Tags for this Thread

Posting Permissions