I have a pair of RadListBoxes that work together as documented.
I use the contents of the RadListBox2 as the names for some tabs in a RadTabStrip that I configure/use elsewhere in the page. The RadTabStrip is defined during Page_Load. Currently when I look at the RadListBox2.Items, I only see the items that were there before the post-back and none of the newly transferred items, so my RadTabStrip does not contain the newly added items (if I do another post-back, the new items show up because the transfer event fires successfully after the Page_Load).
I suppose I could wait to create the tabs until the OnTransferred event fires, but that requires some code restructuring and seems a bit backwards to me in the page life cycle. Seems like the transfer should be happening during page load.
Does anyone have any suggestions on how to achieve my goals in Page_Load or Page_Init rather than in OnTransferred?
Here is how I have the controls configured:
I use the contents of the RadListBox2 as the names for some tabs in a RadTabStrip that I configure/use elsewhere in the page. The RadTabStrip is defined during Page_Load. Currently when I look at the RadListBox2.Items, I only see the items that were there before the post-back and none of the newly transferred items, so my RadTabStrip does not contain the newly added items (if I do another post-back, the new items show up because the transfer event fires successfully after the Page_Load).
I suppose I could wait to create the tabs until the OnTransferred event fires, but that requires some code restructuring and seems a bit backwards to me in the page life cycle. Seems like the transfer should be happening during page load.
Does anyone have any suggestions on how to achieve my goals in Page_Load or Page_Init rather than in OnTransferred?
Here is how I have the controls configured:
<telerik:RadListBox ID="RadListBox1" |
runat="server" |
Height="190px" |
Width="230px" |
AllowTransfer="true" |
TransferToID="RadListBox2" |
TransferMode="Move" |
AutoPostBackOnTransfer="true" |
AllowTransferDuplicates="false" |
AllowTransferOnDoubleClick="true" |
EnableDragAndDrop="false"> |
</telerik:RadListBox> |
<telerik:RadListBox ID="RadListBox2" |
runat="server" |
Height="190px" |
Width="200px" |
AutoPostBackOnReorder="true" |
AllowReorder="true" |
ButtonSettings-ShowReorder="true" |
ButtonSettings-ReorderButtons="Common"> |
</telerik:RadListBox> |