2011-06-15 52 views

回答

4

像這樣;

<telerik:SeriesMapping.SeriesDefinition> 
    <telerik:LineSeriesDefinition ShowItemLabels="False" ShowPointMarks="False"/> 
</telerik:SeriesMapping.SeriesDefinition> 
1

您也可以通過下面的代碼設置SeriesDefinition.ShowItemLabels屬性false看看這樣做:

var smartSeriesMapping = new SeriesMapping 
{ 
    LegendLabel = "smartSeries", 
    SeriesDefinition = new LineSeriesDefinition() 
}; 
smartSeriesMapping.ItemMappings.Add(new ItemMapping("Time", DataPointMember.XCategory)); 
smartSeriesMapping.ItemMappings.Add(new ItemMapping("SmartVal", DataPointMember.YValue)); 
smartSeriesMapping.SeriesDefinition.ShowItemLabels = false; //This line make lables go away :D 

SmsRadChart.SeriesMappings.Add(smartSeriesMapping);