English 中文(简体)
如何在 Telerik 报告时在新行中显示相同文本框中的字段?
原标题:How to display fields in new line in same textBox in telerik reporting?

我使用银灯4 和Telerik报告 Q3 2011 。 我试图生成所有外号的报告。 我用表格显示其字段。 我想在同一单元格中显示完整地址 。 我怎么能呢?

在同一单元格中显示完整的地址。

 = Fields.AddressLine1
 + ", " + Fields.AddressLine2
 + ", " + Fields.Suburb
 + ", " + Fields.City
 + ", " + Fields.State
 + ", " + Fields.Country

我想要在同一个单元格中显示这个, 但想要输出像下面一样...

 =====================
   Address
 =====================
  15A,
  xxxx xxxRoad,
  xxxxxx,
  xxxxxxxx
 ====================

但我得到这个

 =====================
   Address
 =====================
  15A, xxxx xxxRoad, xxxxxx, xxxxxxxx
 =====================

我怎样才能得到我想要的输出?

最佳回答

made the Function NewLineFeeds() in this function I used Replace() Method to replace the specific string to newLine( ) .

public static string NewLineFeeds(string text)
{
    string result = text.Replace(", ", "
");
    result = result.Replace(", ", "
");
    result = result.Replace(", ", "
");
    return result;
}

我的表情是

 =NewLineFeeds(Fields.AddressLine1 
  + ", " + Fields.AddressLine2 
  + ", " + Fields.Suburb 
  + ", " + Fields.City 
  + ", " + Fields.State 
  + ", " + Fields.Country)

This call the Function NewLineFeeds() and replace ", " to (new Line). Add this will work Fine..

问题回答

暂无回答




相关问题
Discuss on Commercial Component libraries of silverlight

I am now looking forward to buy a component library of silverlight for increase the productivity. I find there are number of them. Telerik ComponentOne ComponentArt Infragistics Syncfusion I found ...

Telerik RadGrid: grid clientside pagination

I have a web service which returns me some data,I am massaging this data and using this as datasource for my radgrid (telerik). The datasource is quite large, and would like to paginate it. I found ...

Binding a radgrid to a tree like data structure

I have a structure that looks following Class TreeNode { public TreeNode Parent { get; } public IEnumerable<TreeNode> Children { get; } public . . . . } I want to bind this to a ...

IQueryable into a hierarchy

I currently have an IQueryable of Questions. In my Question object I have and "id" and a "parentId" which can be used to create a hierarchy. Currently, I bind a RadTreeView to the IQueryable of ...

Expand all items in RadGrid Hierarchy

I am using a RadGrid (2009 Q2) with a hierarchy. Is there a way in the client api to expand all rows and vice-versa? thanks! Update: I have written a javascript function based off the api ...

热门标签