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

[Solved] The "(un)check 'Select All' " for DetailTable

1 Answer 106 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Santiago Botero
Top achievements
Rank 1
Santiago Botero asked on 08 Dec 2009, 08:23 AM
Hello,

I want implement to the "(un)check 'Select All' check box automatically" code no in the MasterTable but in a DetailTable.
The difficult is on getting the id of the checkbox in the header beacause I can have either, one expanded DetailTable (i.e for the item 0 in the MasterTable), or several expanded DetailTables (i.e. for the itel 0 and for the item 6 in the Mastertable).
So i have 1, 2, 3 ... IDs.

I was trying to get the GridTableView handing the event "OnTableCreated" this way :

var view; 
function gettingIDs(sender, arg) 
    view=arg.get_tableView(); 

then I reach the property "all". Here I have 9 element (even my TableView have no more than 8 columns), and I reach the element  [1]
that correspond (i think) to the "GridClientSelectColumn" and I get the id (The fist column in my tableView is the GridClientSelectColumn, i dont know what is the element [0]).

Is this the correct ID?
Is there anyway to perform that in a sympler way?

thank you for the help.




1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 10 Dec 2009, 05:25 PM
Hello Santiago,

I already responded in the other forum thread you participated in - please see the reply below:
http://www.telerik.com/community/forums/aspnet/grid/gridclientselectcolumn-selecting-and-deselecting.aspx 

Best regards,
Sebastian
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Grid
Asked by
Santiago Botero
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or