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

[Solved] HTML tags in content

1 Answer 68 Views
Grid
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mazdak
Top achievements
Rank 1
Mazdak asked on 24 Mar 2011, 01:44 PM
Hi,

One of my fields contain HTML tags but its text does not display as HTML and it shows html tags.


<%= Html.Telerik().Grid(((Web.App.ViewModels.ReportAdHock)ViewData.Model).Result).Name("Grid").Columns(columns =>
        {
            columns.Bound(o => o.Title).Width(250);
            columns.Bound(o => o.Description);
            columns.Bound(o => o.Author).Width(150);           
        })
        .DataBinding(dataBinding =>
        {
            dataBinding.Server().Select("TextResult", "ReportAdHock", new
            {
                keyword = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).Keyword,
                isTitle = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).SearchTitle,
                isDescription = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).SearchDescription,
                channelIds = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).ChannelIds
            });
            dataBinding.Ajax().Select("TextResult", "ReportAdHock", new
            {
                keyword = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).Keyword,
                isTitle = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).SearchTitle,
                isDescription = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).SearchDescription,
                channelIds = ((Web.App.ViewModels.ReportAdHock)ViewData.Model).ChannelIds
            }).Enabled(true);
        })
          
        .Scrollable(c => c.Height("700px"))
        .Sortable(sorting => sorting.Enabled(true))
        .Pageable(paging => paging.Enabled(true))
        .Filterable(filtering => filtering.Enabled(true))
        .Groupable(grouping => grouping.Enabled(false))
        .Footer(true)      
         
%>

Regards
Mazdak

1 Answer, 1 is accepted

Sort by
0
Mazdak
Top achievements
Rank 1
answered on 24 Mar 2011, 02:01 PM
sorry it was problem in my data.

Thanks for your attention.
Tags
Grid
Asked by
Mazdak
Top achievements
Rank 1
Answers by
Mazdak
Top achievements
Rank 1
Share this question
or