While browsing through a blog, I came across a JavaScript solution that caught my attention.
In the sample code, I was looking for a specific div item named "sampleDivInGrid" within a RadGrid.
function GetServerElement(serverID, tagName) {
if (!tagName)
tagName = "*"; //* denotes all elements
var grid = document.getElementById("<%=grdItems.ClientID %>");
var elements = grid.getElementsByTagName(tagName);
for (var i = 0; i < elements.length; i++) {
var element = elements[i];
if (element.id.indexOf(serverID) >= 0)
return element;
}
}
function OnClientIndexChanged(sender, eventArgs) {
var itm = GetServerElement("sampleDivInGrid", "div");
var item = eventArgs.get_item();
var itmTxt = item.get_text();
alert(itmTxt);
}