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

Select All by clicking corner

3 Answers 103 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Chase Florell
Top achievements
Rank 1
Chase Florell asked on 21 Mar 2008, 12:37 AM
In many applications now, if you click the upper left corner of a grid/table, it will select the entire table.  Is this possible in the GridView?

3 Answers, 1 is accepted

Sort by
0
Martin Vasilev
Telerik team
answered on 21 Mar 2008, 06:18 PM
Hello Chase,

Thank you for writing.

Currently RadGridView does not support this feature, but we will consider adding it in our next release.

For now I could suggest this workaround:

private void radGridView1_CellClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)  
{  
    GridCellElement cell = (GridCellElement)sender;  
    if (cell is GridTableHeaderCellElement)  
    {  
        this.radGridView1.GridElement.BeginUpdate();  
        for (int i = 0; i < this.radGridView1.RowCount; i++)  
        {  
            this.radGridView1.Rows[i].IsSelected = true;  
        }  
        this.radGridView1.GridElement.EndUpdate();  
    }  

I hope this helps. Do not hesitate to contact me again if you have other questions.

 
All the best,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Kevin Meyer
Top achievements
Rank 1
answered on 11 Jul 2008, 09:14 PM
A 'select all' option on checkbox columns would be ideal, but even a was for us to "hack" it would work.  I've even looked at creating derived column and cell, but don't see a way to specify specialized header cell to use.

Thanks!
0
Martin Vasilev
Telerik team
answered on 14 Jul 2008, 03:55 PM
Hi Kevin,

Thank you for writing.

Currently, RadGridView does not support Select All for a check box column. However, you could implement such functionality by using custom context menu for the header row cells.

Do not hesitate to contact me again if you need additional assistance.
 
Regards,
Martin Vasilev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Chase Florell
Top achievements
Rank 1
Answers by
Martin Vasilev
Telerik team
Kevin Meyer
Top achievements
Rank 1
Share this question
or