This is a migrated thread and some comments may be shown as answers.

Disable selecting for a single row

1 Answer 90 Views
Grid
This is a migrated thread and some comments may be shown as answers.
jan
Top achievements
Rank 1
jan asked on 26 Aug 2008, 06:08 PM
Hello,

 I am using grid with client selection column and multiple selction enabled. And During the itemDataBound event I need to disable selecting for rows with specific data. Can I do this somehow with using client selection functionality or do I need to implement selecting myself?

Thanks
Jan

1 Answer, 1 is accepted

Sort by
0
jan
Top achievements
Rank 1
answered on 26 Aug 2008, 07:21 PM
Hello,

I am sory for a small investigation before asking. Finaly I solved this quite easy in this way:

 In grid column definition

<

rad:GridClientSelectColumn UniqueName="Select column"></rad:GridClientSelectColumn>

In Item data bound event handler

...
if(wantDisableThis)
{
    

dataItem[

"Select column"].Enabled = false;

}
...


And finaly in javascript handler of rowSelecting client event of grid:

function RowSelecting(row)

{


    if
(this.Name != "MasterTable" && row.KeyValues["wantDisableThis"]

)

    {

        return false;

    }

}



If somebody found more direct solution please let me know.

Thanks
Jan

Tags
Grid
Asked by
jan
Top achievements
Rank 1
Answers by
jan
Top achievements
Rank 1
Share this question
or