How To Display checkbox based on DB Column value for editing in grid panel of CheckboxSelectionModel

  1. #1

    How To Display checkbox based on DB Column value for editing in grid panel of CheckboxSelectionModel

    Hi ,

    I have Gridpanel and i used 'CheckboxSelectionModel' for for selectiong some rows to submit
    in database(inserting in db).

    While editing i want check CheckboxSelectionModel checkbox for based on my status column.

    Ex: I am authrize some users in grid panel.while editing users i need to check authorized users , using CheckboxSelectionModel .

    Please provide any so0lution..

    thanks
    satya
  2. #2

    RE: How To Display checkbox based on DB Column value for editing in grid panel of CheckboxSelectionModel

    Hi,

    You just need to set predefined selection. Please see the following example which shows how to accomplich that
    https://examples1.ext.net/#/GridPane...box_Selection/
  3. #3

    RE: How To Display checkbox based on DB Column value for editing in grid panel of CheckboxSelectionModel

    Hi ,

    This is fine .but I need to select checkbox based on my database status column.
    Like display status by chacking selection model checkbox.

    plz provide any sugessions on this..

    thanks
    satya


  4. #4

    RE: How To Display checkbox based on DB Column value for editing in grid panel of CheckboxSelectionModel

    Hi,

    Just read your status from DB and set selected rows depending that status


    if(my_status_from_db)
    {
       SelectionModel1.SelectedRows.Add(new SelectedRow("id"));
    }

Similar Threads

  1. [CLOSED] Disabling checkbox grid column cell based on data.
    By SymSure in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 09, 2012, 4:25 AM
  2. Replies: 5
    Last Post: Dec 26, 2011, 5:39 AM
  3. [CLOSED] Display mandatory icon for editor column in grid panel
    By AnulekhaK in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 26, 2011, 10:13 AM
  4. [CLOSED] How to check checkbox based on database column value
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 05, 2011, 6:12 PM
  5. Lock column from editing based on value entered on other field
    By n_s_adhikari@rediffmail.com in forum 1.x Help
    Replies: 2
    Last Post: Aug 07, 2009, 5:28 PM

Posting Permissions