Posts

Showing posts from December, 2010

Wish you new year 2011

Image

Server.MapPath in a helper class library

The Server.MapPath will not work directly when used from a class library directly. System.Web.HttpContext.Current.Server.MapPath should be used instead

Setting localized tooltips in a sort enabled radgrid

Problem statements 1. End user needs tooltips - even on the grid headers. (Not sure of scenario where user will move mouse over the grid headers, but our end users demanded for it). 2. Telerik grid normally has no problem with showing grid headers, but when showing sortable columns, it display linkbuttons for clicking and does not display the tooltip. 3. Although there is a custom way to display tooltips, we want tooltips from resource file (localized) and also do not want to hard code any string in the source code. We also want these tips to be localized. Following is what we did: protected void GridViewAccountDetails_ItemDataBound(object sender, Telerik.Web.UI.GridItemEventArgs e) { if (e.Item is GridHeaderItem) { GridColumnCollection gridColumnCollection = GridViewFindAudit.MasterTableView.Columns; GridHeaderItem gridHeaderItem = e.Item as GridHeaderItem; foreach (GridColumn column in gridColumnCollection) ...