Hi support,
I have a requirement in which i have to display a check box in grid , which is multi selectable , There is a button outside grid, In that button click i have to get all the checked columns id, and have to send these ids to another .aspx page as querystring.
For this i have taken a select column , as there is no data binding property for select column, i am unable to bind any id for that.
Can i access invisible column in radgridview. How can i pass parameters to the javascript function from code behind to .aspx javascript function.
<telerikGridView:GridViewSelectColumn Header="ATU Name" FooterTextAlignment="Left" IsReorderable="False" IsFilterable="False" > |
</telerikGridView:GridViewSelectColumn> |
<telerikGridView:GridViewDataColumn UniqueName="id" FooterTextAlignment="Left" IsReorderable="False" IsVisible="False" IsFilterable="False" DataMemberBinding="{Binding id}"> |
</telerikGridView:GridViewDataColumn> |
private void btnMulticheck_Click(object sender, RoutedEventArgs e) |
{ |
List<int> checkedRows = new List<int>(); |
var rows = this.gvData.ChildrenOfType<GridViewRow>(); |
foreach (var row in rows) |
{ |
if (row is GridViewNewRow) |
continue; |
var checkbox = row.Cells[0]; |
var id = row.Cells[1]; |
CheckBox cb = (CheckBox)((System.Windows.Controls.ContentControl)(checkbox)).Content; |
if (cb.IsChecked == true) |
{ |
checkedRows.Add((int)((Telerik.Windows.Controls.GridView.GridViewCell)(id)).Value); |
} |
HtmlPage.Window.Invoke("SayHello"); |
} |
} |
Can you suggest me some alternative as i cant show id column to user, And what happens if user scrolls after selecting? Can i access those selected check boxes?
I am using silverlight Q1 2010 10.1.3.9 version,Is it fully tested version,? Why so many events are not accessible in this version.
Is there any documentation available for this version
Thanks