this is my aspx code
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%" LoadingPanelID="LoadCombo" >
<div class="leftContainerIn">
<telerik:RadListBox ID="rlbAvailable" runat="server" Width="100%" AllowTransfer="true"
TransferToID="rlbChosen" SelectionMode="Multiple"
AllowTransferOnDoubleClick="true"
Height="100%" EnableDragAndDrop="true" DataValueField="FieldId" DataTextField="tempHeader"
Sort="Ascending" OnClientTransferring="rlbAvailable_OnClientTransferring" AutoPostBackOnTransfer="true"
OnTransferred="rlbAvailable_OnTransferred" ButtonSettings-ShowTransferAll="true">
</telerik:RadListBox>
</div>
<div class="rightContainerIn">
<telerik:RadListBox ID="rlbChosen" runat="server" Sort="Ascending" Width="100%" Height="100%"
AutoPostBack="true" OnSelectedIndexChanged="rlbChosen_SelectedIndexChange" SelectionMode="Multiple"
EnableDragAndDrop="true" AllowTransferOnDoubleClick="false"
AllowReorder="true" DataTextField="tempHeader" DataValueField="FieldId" TransferToID="rlbAvailable">
</telerik:RadListBox>
</div>
</telerik:RadAjaxPanel>
this is my cs code
protected void rlbAvailable_OnTransferred(object sender, RadListBoxTransferredEventArgs e)
{
try
{
List<smDocumentTypeField> avalible = FieldsOrganization;
List<smDocumentTypeField> documentTypeFields = DocumentTypeField;
if (e.DestinationListBox != sender) // from left to right
{
foreach (RadListBoxItem ite in e.Items)
{
int id = Convert.ToInt32(ite.Value);
documentTypeFields.Insert(0, GetField(FieldsOrganization, id));
avalible.Remove(GetField(FieldsOrganization, id));
}
}
else if (e.DestinationListBox == sender)// from right to left
{
foreach (RadListBoxItem ite in e.Items)
{
int id = Convert.ToInt32(ite.Value);
avalible.Insert(0, GetField(DocumentTypeField, id));
documentTypeFields.Remove(GetField(DocumentTypeField, id));
}
}
FieldsOrganization = avalible;
DocumentTypeField = documentTypeFields;
rlbChosen.DataBind();
rlbAvailable.DataBind();
}
catch (Exception ex)
{
Notification.LoadCatchNotification(ex, typeof (DocumentTypeForm).FullName);
}
}
this event does not execute when i did double click on radlistboxitem, Why?
I need help!!
regards
<telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="100%" Width="100%" LoadingPanelID="LoadCombo" >
<div class="leftContainerIn">
<telerik:RadListBox ID="rlbAvailable" runat="server" Width="100%" AllowTransfer="true"
TransferToID="rlbChosen" SelectionMode="Multiple"
AllowTransferOnDoubleClick="true"
Height="100%" EnableDragAndDrop="true" DataValueField="FieldId" DataTextField="tempHeader"
Sort="Ascending" OnClientTransferring="rlbAvailable_OnClientTransferring" AutoPostBackOnTransfer="true"
OnTransferred="rlbAvailable_OnTransferred" ButtonSettings-ShowTransferAll="true">
</telerik:RadListBox>
</div>
<div class="rightContainerIn">
<telerik:RadListBox ID="rlbChosen" runat="server" Sort="Ascending" Width="100%" Height="100%"
AutoPostBack="true" OnSelectedIndexChanged="rlbChosen_SelectedIndexChange" SelectionMode="Multiple"
EnableDragAndDrop="true" AllowTransferOnDoubleClick="false"
AllowReorder="true" DataTextField="tempHeader" DataValueField="FieldId" TransferToID="rlbAvailable">
</telerik:RadListBox>
</div>
</telerik:RadAjaxPanel>
this is my cs code
protected void rlbAvailable_OnTransferred(object sender, RadListBoxTransferredEventArgs e)
{
try
{
List<smDocumentTypeField> avalible = FieldsOrganization;
List<smDocumentTypeField> documentTypeFields = DocumentTypeField;
if (e.DestinationListBox != sender) // from left to right
{
foreach (RadListBoxItem ite in e.Items)
{
int id = Convert.ToInt32(ite.Value);
documentTypeFields.Insert(0, GetField(FieldsOrganization, id));
avalible.Remove(GetField(FieldsOrganization, id));
}
}
else if (e.DestinationListBox == sender)// from right to left
{
foreach (RadListBoxItem ite in e.Items)
{
int id = Convert.ToInt32(ite.Value);
avalible.Insert(0, GetField(DocumentTypeField, id));
documentTypeFields.Remove(GetField(DocumentTypeField, id));
}
}
FieldsOrganization = avalible;
DocumentTypeField = documentTypeFields;
rlbChosen.DataBind();
rlbAvailable.DataBind();
}
catch (Exception ex)
{
Notification.LoadCatchNotification(ex, typeof (DocumentTypeForm).FullName);
}
}
this event does not execute when i did double click on radlistboxitem, Why?
I need help!!
regards