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

[Solved] Data bound Link Column not showing the data

0 Answers 65 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.
Sheikh
Top achievements
Rank 1
Sheikh asked on 30 Sep 2011, 11:50 AM
Hi,
All our websites and internal system are built using traditional Telerik Controls.Now we are testing Telerik MVC. So far we found there is a good performance improvement using telerik mvc controls. I have gone through some issues. It would be great to make a decision about buying the controls, if you would help us to resolve those issues:

1. We have a grid and that Grid is rendered based on particular product. At times each product has mor than 3000 data. When using ajax we are having problems Json serialization. As our data exceeds the default Json data size. Even changing in the web.config it didn't solve the issue.I did the following in web.config:
<system.web.extensions>
    <scripting>
      <webServices>
        <jsonSerialization maxJsonLength="2147483644"/>
      </webServices>
    </scripting>
  </system.web.extensions>  

2. In our traditional grid we have templated linked column. The text for the column comes from database. However, so far we couldn't make this happen:
@(Html.Telerik().Grid(Model.GridData.GridData).Name("Grid").Columns(columns =>
        {
                 
                columns.Template(
                   @<text>
                    @Html.ActionLink(Model.GridData.GridData.Columns["LeadStatusName"].ToString(),"")
                     
                     
                   </text>
                    
                  );
                columns.Bound(Model.GridData.GridData.Columns["LeadStatusName"].ToString());
                   
                columns.Bound(Model.GridData.GridData.Columns["LeadId"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["CriteriaSetName"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["BuyerName"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["ProviderName"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["SourceTypeName"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["Keyword"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["ConversionTime"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["Site"].ToString());
                columns.Bound(Model.GridData.GridData.Columns["TransferTime"].ToString());
 
        })
 
                             .Pageable(paging => paging.PageSize(300))
                             .Sortable()
                             .Groupable()
)
The template column is just showing a link for the text "Lead Status Name" not showing the data of that column.

columns.Bound(Model.GridData.GridData.Columns["LeadStatusName"].ToString());
The above line of code shows the data. However, How can I make that column as template column that will show link for the data.

Hope, your reply would help us greatly to make a positive decision.

Thanks for your help.
Tags
Grid
Asked by
Sheikh
Top achievements
Rank 1
Share this question
or