First, I am using version 2013.2.717.40.
I set-up a very simple RadListBox transfer scenario:
There is a RadButton that is used to indicate that the user is ready to process the infiormation in the second box:
There is a label used to display the results of the processing:
And an AjaxSetting to connect the button and the label:
The first time I transfer an item from the source box to the target box and click the button, everything works just fine. If I transfer another, without removing the first, and click the button, also works fine. However, when I transfer any more and click the button, I get an error that is caught in the Global.aspx.cs file with the Server class being something that does not contain a GetLastError method. This is before it gets into the button event handler in the code behind.
Another issue, around which I am able to work is that, after transfering one item, a second click of the button reveals that there are 2 entries in the targetbox.items collection.
Here is the code for the button click event:
Unfortunately, there may be no way for you to reproduce this, but any suggestions would be accepted and appreciated.
Thanks,
Ed
I set-up a very simple RadListBox transfer scenario:
<telerik:RadListBox ID="StatusListBoxSource" runat="server" AllowTransfer="True" DataSourceID="StatusDataSource" DataTextField="Description" DataValueField="StatusId" TransferToID="StatusListBoxTarget" Height="240px" Width="150px">
</telerik:RadListBox>
<telerik:RadListBox ID="StatusListBoxTarget" runat="server" Height="240px" Width="150px"></telerik:RadListBox>There is a RadButton that is used to indicate that the user is ready to process the infiormation in the second box:
<telerik:RadButton ID="DiagnoticStatusButton" runat="server" Text="Apply" AutoPostBack="True"
OnClick="DiagnoticStatusButton_Click">
</telerik:RadButton>There is a label used to display the results of the processing:
<asp:Label ID="DiagnosticStatusLabel" runat="server" Text=""></asp:Label><telerik:AjaxSetting AjaxControlID="DiagnoticStatusButton"> <UpdatedControls> <telerik:AjaxUpdatedControl ControlID="DiagnosticStatusLabel" /> </UpdatedControls> </telerik:AjaxSetting> Another issue, around which I am able to work is that, after transfering one item, a second click of the button reveals that there are 2 entries in the targetbox.items collection.
Here is the code for the button click event:
protected void DiagnoticStatusButton_Click ( object sender, EventArgs e ) { ED.GenericResponse GR = new ED.GenericResponse (); List<String> IssueList = new List<String> (); List<Byte> StatusIdList = new List<Byte> (); var q = ( from si in this.StatusListBoxTarget.Items select si.Value ).Distinct (); foreach ( String item in q ) { StatusIdList.Add ( Byte.Parse ( item ) ); } try { using ( EDG.GroupsDataContext ctx = new EDG.GroupsDataContext () ) { Int32 EffectedRows = ctx.AddDevicesByCriteria ( this.GroupId, DateTime.Now.AddDays ( -1 ).Date, StatusIdList, IssueList ); this.DiagnosticStatusLabel.Text = String.Format ( "{0} devices added", EffectedRows ); } } catch ( Exception Ex ) { Logger.ErrorException ( Ex.Message, Ex ); this.DiagnosticStatusLabel.Text = "There was an error adding from diagnostic status"; } }Unfortunately, there may be no way for you to reproduce this, but any suggestions would be accepted and appreciated.
Thanks,
Ed