I want to read the Header text of child grid and then use it in displaying alert for specific row.
Below is my codeBehind Code:
Telerik.Web.UI.GridColumn col = null;
col = rgdLabTest.MasterTableView.DetailTables[0].Columns.FindByUniqueNameSafe("StartAge");
if (col != null)
{
StartAgeCaption = col.HeaderText;
}
And in javascript i am using:
if (document.getElementById(id) != null && document.getElementById(id).value == "") {
var control = $("#" + id + "_text");
var message = '<%=BariAnalyticsEHR.Utility.ContentFetcher.GetValidationMessage("MANDATORY_1", BariAnalyticsEHR.BOL.Classes.EHRSessions.Culture)%>';
jAlert(message.replace("#caption#", "<%= StartAgeCaption %>"), control[0].id, null, function (r) {
if (r == true) {
$("#" + control[0].id).focus();
}
});
return false;
}
StartAgeCaption value is assigend successfully in the codebehind but in javascript i am not getting that value. Its empty.