Dynamic checking in a CheckboxSelectionModel.

  1. #1

    Dynamic checking in a CheckboxSelectionModel.

    Hello.
    I've been trying to achieve this since yesterday.
    I need to check some rows in a grid with a CheckboxSelectionModel depending on the value of a column retrieved from database.

    I tried this example: http://forums.ext.net/showthread.php...dex-from-Store
    but the Load listener works only the first time I go into the page.

    If I could get this working from code behind it would be awesome, but at this point any help is useful.
  2. #2
    This is the method I use to load data into the store:
    public void consultaChecklist(object sender, DirectEventArgs e) {
            myStore.DataSource = databaseMethods.getMyData(param1, param2);
            myStore.DataBind();
        }
    It gets triggered when I click a button. Among other columns, this method returns a true/false column, which I want to use to know what rows to check.
    Problem is, I don't know how.
  3. #3
    Well, the example above worked fine.
    Mark as closed please. :)

Similar Threads

  1. [CLOSED] TreePanel CheckNodes Null when checking them from codebehind
    By gs_user in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 25, 2012, 6:28 PM
  2. Replies: 23
    Last Post: Nov 04, 2011, 5:19 PM
  3. [CLOSED] checking a grid checkbox with the spacebar
    By SymSure in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 06, 2011, 5:46 PM
  4. [CLOSED] CheckboxSelectionModel and RowSelectionModel dynamic create
    By albayrak in forum 1.x Legacy Premium Help
    Replies: 12
    Last Post: Dec 24, 2010, 6:41 AM
  5. Checking grid panel items
    By ranganath in forum 1.x Help
    Replies: 0
    Last Post: May 19, 2009, 5:54 AM

Posting Permissions