Hi,
Im trying to add a column that will display an image from the WWW e.g not from the web app itslef
i have created a custom column but it doesn't seem to display anything at all ...
i always get am empty column ...
any idea what am doing wrong ..
Alon
Im trying to add a column that will display an image from the WWW e.g not from the web app itslef
i have created a custom column but it doesn't seem to display anything at all ...
public override FrameworkElement CreateCellElement(Telerik.Windows.Controls.GridView.GridViewCell cell, object dataItem) |
{ |
var cellImage = new Image() { Width = 50, Height = 50 }; |
string imageUri = string.Empty; |
// here i just get a URL |
Dictionary<String, String> mapData = MainPage._Gfields[this.DataMemberBinding.Path.Path].ValueMap.MapData; |
if (mapData.ContainsKey((string)cell.Value)) |
imageUri = mapData[(string)cell.Value]; |
else |
imageUri = mapData["*"]; |
// image URL is like: http://some-remote-URL/sample.gif |
cellImage.Source = new BitmapImage(new Uri(imageUri, UriKind.Absolute)); |
return cellImage; |
} |
i always get am empty column ...
any idea what am doing wrong ..
Alon