This is a migrated thread and some comments may be shown as answers.

Grid bound to Data Table with image URLs

0 Answers 23 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Pavel
Top achievements
Rank 1
Pavel asked on 01 Aug 2012, 11:30 PM
Hello,

we have a Grid with automatic data binding to DataTable object. One of the columns calles "Image URL" contains urls of images on the web. Instead of printing the URLs I would like to load and display images that correspond to it. Here is the code we use

@(Html.Telerik().Grid(Model.dt)
        .Name("TheGrid")
                        .Scrollable(s => { s.Enabled(true); s.Height(600); })
        .Columns(col => col.AutoGenerate(c => { c.Width = "150px"; })))
        .Sortable(sorting => sorting.Enabled(true))
        .Filterable(filtering => filtering.Enabled(true))
        .Pageable(paging => paging.PageSize(int.MaxValue).Style(GridPagerStyles.Status))
        .ClientEvents(events =>
            {
                events.OnDataBinding("onResultsGridDataBinding");
            })
        )

Model.dt is a DataTable object. Please help.

No answers yet. Maybe you can help?

Tags
GridView
Asked by
Pavel
Top achievements
Rank 1
Share this question
or