Hi guys i have all little problem here, i'm just want to appear gridview footer with gridview.showfooter = true, but I can, this my code. I've tried my best but i can't. hope you can give me some help.
try
{
foreach (GridDataItem items in gridMonitorVisibilityConfiguration.Items)
{
GridFooterItem item = (GridFooterItem)gridMonitorVisibilityConfiguration.MasterTableView.GetItems(GridItemType.Footer)[0];
RadComboBox cmbRolUser = (RadComboBox)item.FindControl("txtRoleUser");
Label lblselect = (Label)items.FindControl("spanLinkInbox");
Label lblnoAll = (Label)items.FindControl("lblNoAcces");
Label lblView = (Label)items.FindControl("lblview");
Label lblViewMod = (Label)items.FindControl("lblviewMod");
Label lblAll = (Label)items.FindControl("lblUserRoleText");
Label lblsts = (Label)items.FindControl("spanLinkInbox");
Label lblstsft = (Label)item.FindControl("spanLinkFooterInbox");
Label lblftnoAll = (Label)item.FindControl("lblftNoAcces");
Label lblftView = (Label)item.FindControl("lblftview");
Label lblftvewMod = (Label)item.FindControl("lblftViewModify");
Image ImgSelect = (Image)items.FindControl("imgSelectInbox");
Image ImgFooter = (Image)item.FindControl("imgSelectFooterInbox");
// radio button to enable grid
if (rdShared.Checked == true)
{
gridMonitorVisibilityConfiguration.Enabled = true;
lblprivate.Style["color"] = "#ACA899";
lblshared.Style["color"] = "Black";
//lblnoAll.CssClass = lblnoAll.CssClass + "grey";
lblAll.Style["color"] = "Black";
lblnoAll.Style["color"] = "Black";
lblView.Style["color"] = "Black";
lblViewMod.Style["color"] = "Black";
lblsts.Style["color"] = "Black";
lblftnoAll.Style["color"] = "Black";
lblftView.Style["color"] = "Black";
lblftvewMod.Style["color"] = "Black";
gridMonitorVisibilityConfiguration.ShowFooter = true;
}
// rdbtn to disable gridview
else if (rdPrivate.Checked == true)
{
gridMonitorVisibilityConfiguration.Enabled = false;
lblshared.Style["color"] = "#ACA899";
lblprivate.Style["color"] = "Black";
//Edit
lblAll.CssClass = lblAll.CssClass + "grey";
lblnoAll.CssClass = lblnoAll.CssClass + "grey";
lblView.CssClass = lblView.CssClass + "grey";
lblViewMod.CssClass = lblViewMod.CssClass + "grey";
lblsts.CssClass = lblsts.CssClass + "grey";
//
lblftnoAll.CssClass = lblftnoAll.CssClass + " grey";
lblftView.CssClass = lblftView.CssClass + " grey";
lblftvewMod.CssClass = lblftvewMod.CssClass + " grey";
gridMonitorVisibilityConfiguration.MasterTableView.ShowFooter = false;
}
}
}
catch (Exception ex)
{
SetException(ex);
}