All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
hello there please I used before detaildatabind event its ok but it didnt hide the detailtable for some record , I get that thread but I couldnt to apply my code to prerender event could you help me. my code inside detaildatabind event like: string
iCertificate = string.Empty;
string[] iTypes ={ };
try
{
GridDataItem _dataItem = (GridDataItem)e.DetailTableView.ParentItem;
int _iRequestId = Convert.ToInt32(_dataItem["SRID"].Text);
switch (e.DetailTableView.Name)
case "TravelPermitDetails":
iCertificate = (_dataItem.FindControl(
"lblCertificate") as Label).Text;// to check if the request for travel permit.
iTypes = iCertificate.Split(
',');
foreach (string iType in iTypes)
if (iType.ToLower() == "Travel Permit".ToLower())
e.DetailTableView.DataSource = _Controller.TravelDetails(_iRequestId);
}
//else
// e.DetailTableView.Visible=false
break;
catch (Exception)
throw;