An unhandled exception was generated during the execution of the
current web request. Information regarding the origin and location of the
exception can be identified using the exception stack trace below.
|
|
public void HorizontalRadMenu_ItemDataBound(object sender, RadMenuEventArgs e) { string[] strNavigationPages = { "Menu1", "Menu2", "Menu3", "Menu4", "Menu5", "Menu6", "Menu7", "关于我们", "联系我们", "视频", "租赁业务", "客户服务", "手持式 XRF技术" }; if (e.Item != null) { if (e.Item.Level == 0) { parentPageId = ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).Id.ToString(); } string currentPageId = ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).Id.ToString(); string findThisString = e.Item.Text; int strIndex = -1; int flag = -1; if (!String.IsNullOrEmpty(findThisString) && ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).ShowInNavigation) { for (int strNumber = 0; strNumber < strNavigationPages.Length; strNumber++) { strIndex = strNavigationPages[strNumber].IndexOf(findThisString); if (strIndex > -1) { flag = 1; //e.Item.NavigateUrl } } if (flag == -1 && ((Telerik.Sitefinity.Web.PageSiteNode)(e.Item.DataItem)).ParentKey != parentPageId && e.Item.Level < 2) { e.Item.Remove(); } } else { e.Item.Remove(); } }}I have 10 telerik tabs in which each page is a partial view.
On click of first tab a grid appears which has few records in it and a row in the grid is highlighted upon some condition.
There are few buttons in the page which has different functionality each.
Onclick of any button an action happens and grid rebinds accordingly(i.e the data in the grid changes based on the button action).
For this I am using grid.rebind();
Again I am checking for the condition to highlight the same row which was highlighted before through jQuery like this
var parentTR = $("input:checkbox[class=check-box]:checked").parent().parent();
$(parentTR).addClass("hover_active");
But whichever class I add or delete to grid rows nothing is updated to the grid.
May I know the solution for this?