Posted on Feb 23, 2012 (permalink)
Reply
Posted on Oct 6, 2012 (permalink)
protected
void
RadGrid1_ItemDataBound(
object
sender, GridItemEventArgs e)
{
if
(e.Item
is
GridDataItem)
GridDataItem item1 = (GridDataItem)e.Item;
HyperLink hyplnk = (HyperLink)item1[
"UniqueName"
].Controls[0];
hyplnk.Attributes.Add(
"OnClick"
,
"return Click('"
+ item1.ItemIndex +
"');"
);
}
<script type=
"text/javascript"
>
function
Click(indx)
var
RadGrid2 = $find(
"<%= RadGrid1.ClientID %>"
gridSelectedItems = RadGrid2.get_masterTableView().get_selectedItems();
for
(
i = 0; i < gridSelectedItems.length; i++) {
(gridSelectedItems[i].get_selected()) {
gridSelectedItems[i].set_selected(
false
RadGrid2.get_masterTableView().get_dataItems()[indx].set_selected(
"true"
</script>
Back to Top
[ ASP.NET Grid Features | Documentation | Demos | Step-by-step Tutorial ]
UI controls for ASP.NET AJAX, MVC, WPF,Silverlight, Windows 8 and Windows Phone
Cross-platform Mobile Development Toolwith cloud-based architecture
Everything you need to build sites andmobile apps with JavaScript and HTML5
One easy tool for Functional, Performance,Load and Mobile software testing
Everything for your online business - contentmanagement, ecommerce, emarketing
Simple and intuitive project managementand collaboration software