I have a RadListView that binds and displays data correctly. In the ItemTemplate there is an edit button. When the user clicks the edit button I handle the ListViews OnItemEditing event.
In the EditItem template I have a txtbx(s) for the text values and a cmbo box for a list of choices for one of the data items. The combo box binds and displays choices just fine.
So I thought it would be nice to find in the combobox the current (i.e. ListView item that has been clicked to edit) matching option, display it (find in combo box list of choices and make it selected choice) and this is where I hit my snag. I can't seem to get a handle on the DataItem....well actually I can and it is null???
My reading while trying to solve reveals that the list is technically not yet in "edit" mode. If that is the case then does that mean the data item is not yet populated? This would explain why my data item is empty but then I can't find any other event to handle to achieve my objective?
<telerik:RadListView ...<snip>... OnItemEditing="ExPrgmLstVw_ItemEditing" >....Layout Template, ItemTemplate, EditTemplate, Insert Template......</telerik:RadListView>protected void ExPrgmLstVw_ItemEditing(object sender, RadListViewCommandEventArgs e){ ... RadListViewDataItem itm = (RadListViewDataItem) e.ListViewItem; ...}Since Q2 2013, a couple of important changes have been introduced in the declaration of the Series in RadHtmlChart. The following properties have been renamed:
The SeriesItems collection replaces the Items collection.
The following objects should be added to the SeriesItems collection instead of a SeriesItem depending on the Series Type:
|
Series type |
Series item |
|
Candlestick |
telerik:CandlestickSeriesItem |
|
Bar, Column, Area, Line |
telerik:CategorySeriesItem |
|
Scatter, ScatterLine |
telerik:ScatterSeriesItem |
|
Bubble |
telerik:BubbleSeriesItem |
|
Pie, Donut |
telerik:PieSeriesItem |
XValue, YValue, SizeValue and ToolTipValue properties of the SeriesItem (now CategorySeriesItem, PieSeriesItem, ScatterSeriesItem and BubbleSeriesItem) have been renamed respectively to X, Y, Size and ToolTip.
In order to access the properties of the series in the code behind, the series must be cast to the respective series type.
For example:
(RadHtmlChart1.PlotArea.Series[0] as AreaSeries).SeriesItems[0].Y = 10;
The Items collection declaration becomes obsolete since Q2 2013 and will be available till the end of Q3 2013.
Example:
New SeriesItems collection:
<telerik:BubbleSeries> <SeriesItems> <telerik:BubbleSeriesItem Y="35" X="15" Size="15" Tooltip="ToolTip1" /> <telerik:BubbleSeriesItem Y="60" X="25" Size="10" Tooltip="ToolTip2" /> <telerik:BubbleSeriesItem Y="55" X="35" Size="5" Tooltip="ToolTip3" /> </SeriesItems></telerik:BubbleSeries><telerik:BubbleSeries> <Items> <telerik:SeriesItem YValue="35" XValue="15" SizeValue="15" TooltipValue="ToolTip1" /> <telerik:SeriesItem YValue="60" XValue="25" SizeValue="10" TooltipValue="ToolTip2" /> <telerik:SeriesItem YValue="55" XValue="35" SizeValue="5" TooltipValue="ToolTip3" /> </Items></telerik:BubbleSeries>