Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
55 views
Hi,

I am looking for a control which allows to display/preview files for  all formate (Images, PDFs, MS Word, Video, Flash).

Thanks,
Nitin
Vessy
Telerik team
 answered on 27 Nov 2014
1 answer
229 views
i have created radgrid as picture in attacment
my goals is to create empty radgrid then add the row with RadGrid Automatic Operation(performinsert())
but i can't fire the method anyway, when i click insert like attachment's picture nothing happen

i bind the grid with OnNeedDataSource with DataTable(without sqldatasource like others online tutorials)


here's the code
public void rg1_NeedDataSource(object source, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
       {
            
           DataTable temp = new DataTable();
           temp.Columns.Add("Display", typeof(string));
           temp.Columns.Add("Value", typeof(string));
           rg1.DataSource = temp;
       }
public void rg1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e)
       {
           if (e.CommandName == RadGrid.PerformInsertCommandName)
           {
               GridEditableItem item = e.Item as GridEditableItem;
               rg1.MasterTableView.PerformInsert(item);
               rg1.Rebind();
               //RadTextBox rbrbrbrb = new RadTextBox();
               //rbrbrbrb.Text = "tes";
               //radAP4.Controls.Add(rbrbrbrb);
 
           }
       }
<telerik:RadGrid runat="server" ID="rg1" AutoGenerateColumns="true" AllowPaging="true" GridLines="None" Width="500px" Height="250px" AllowAutomaticInserts="true" AllowAutomaticDeletes="true" AllowAutomaticUpdates="true" OnNeedDataSource="rg1_NeedDataSource" AutoGenerateEditColumn="true" AutoGenerateDeleteColumn="true" OnItemCommand="rg1_ItemCommand"> <%--OnItemInserted="rg1_ItemInserted">--%>
            <MasterTableView runat="server" CommandItemDisplay="Top" AutoGenerateColumns="true" EditMode="InPlace" AllowAutomaticInserts="true" AllowAutomaticDeletes="true" AllowAutomaticUpdates="true">
                <CommandItemTemplate>
                    <telerik:RadToolBar ID="rtb1" runat="server" AutoPostBack="true">
                        <Items>
                            <telerik:RadToolBarButton Text="Edit selected" CommandName="EditSelected" Visible='<%# rg1.EditIndexes.Count == 0 %>'></telerik:RadToolBarButton>
                             <telerik:RadToolBarButton Text="Update" CommandName="UpdateEdited" Visible='<%# rg1.EditIndexes.Count > 0 %>'></telerik:RadToolBarButton>
                            <telerik:RadToolBarButton Text="Cancel editing" CommandName="CancelAll" Visible='<%# rg1.EditIndexes.Count > 0 || rg1.MasterTableView.IsItemInserted %>'></telerik:RadToolBarButton>
                            <telerik:RadToolBarButton Text="Add new" CommandName="InitInsert" Visible='<%# !rg1.MasterTableView.IsItemInserted %>'></telerik:RadToolBarButton>
                           
                             <telerik:RadToolBarButton Text="Add this Customer" CommandName="PerformInsert" Visible='<%# rg1.MasterTableView.IsItemInserted %>'></telerik:RadToolBarButton>
                            <telerik:RadToolBarButton Text="Delete selected customers" CommandName="DeleteSelected"></telerik:RadToolBarButton>
                        <telerik:RadToolBarButton Text="Refresh customer list" CommandName="RebindGrid" ></telerik:RadToolBarButton>
                        </Items>
                    </telerik:RadToolBar>
                </CommandItemTemplate>
            </MasterTableView>
            <ClientSettings>
                <Selecting AllowRowSelect="true" EnableDragToSelectRows="true" />
            </ClientSettings>
        </telerik:RadGrid>

please help
Maria Ilieva
Telerik team
 answered on 27 Nov 2014
3 answers
113 views
Hi everyone,
Please response to Kassaiefarshad@yahoo.com

I have used RadGrid in a Webpart in Sharepoint 2010. I am not using Ajax.

I have got two problem as follow:
Problem 1:

When I enable Paging in RadGrid it doesn't work.It mean that when I click on page "2" to go to page two, it returns empty page.

My webpart's code is as follow:
        <telerik:RadGrid ID="RadGridArzyabiDavari" runat="server" AllowPaging="True"
            AllowSorting="True" AutoGenerateColumns="False" CellSpacing="0"
            GridLines="None">
<ClientSettings>
<Selecting CellSelectionMode="None"></Selecting>
</ClientSettings>
 
<MasterTableView AllowSorting="False" NoMasterRecordsText="موردی برای نمایش یافت نشد"
                CommandItemDisplay="Bottom" PageSize="5">
<CommandItemSettings ExportToPdfText="PDF خروجی" ExportToExcelText="Excel خروجی" ShowAddNewRecordButton="false"
  ShowExportToExcelButton="true" ShowExportToPdfButton="true"></CommandItemSettings>
 
<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridTemplateColumn FilterControlAltText="Filter TemplateColumn column"
            UniqueName="TemplateColumn">
            <ItemTemplate>
                <img height="100px"
    src='http://kms/MembersPictures/<;%#Eval("Expert")%>.jpg' style="border: 0px;"
    width="75px" />
            </ItemTemplate>
        </telerik:GridTemplateColumn>
        <telerik:GridBoundColumn DataField="ExpertDisplayName "
            FilterControlAltText="Filter ExpertDisplayName column" HeaderText="نام کاربری"
            SortExpression="ExpertDisplayName " UniqueName="ExpertDisplayName">
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="TedadDavari "
            FilterControlAltText="Filter TedadDavari column" HeaderText="تعداد داوری ها"
            SortExpression="TedadDavari " UniqueName="TedadDavari">
        </telerik:GridBoundColumn>
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
    <PagerStyle AlwaysVisible="True" />
</MasterTableView>
<ExportSettings FileName="KMSFile" IgnorePaging="true" OpenInNewWindow="true">
                <Pdf Author="سیستم مدیریت دانش" Creator="گروه مشاورین هوژان"
                    PageHeight="297mm" PageWidth="210mm" PaperSize="A4" />
</ExportSettings>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
 
Code Behind is as follow:
 
        protected void Page_Load(object sender, EventArgs e)
        {
                 List<ReportsDataSources.ArzyabiDavari> arzyabidavari = new List<ReportsDataSources.ArzyabiDavari>();
            if (!Page.IsPostBack)
            {
                Bind_RadGridArzyabiDavari();
                RadGridArzyabiDavari.DataSource = arzyabidavari;
                RadGridArzyabiDavari.DataBind();
            }
        }
Problem 2:

when I enable Paging in RadGrid ,then click on Export to Pdf/Excel button it returns an Error as follow:

--------------------------------------------------------------------------------
 
Script control 'PageSizeComboBox' is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors().
Parameter name: scriptControl
Kostadin
Telerik team
 answered on 27 Nov 2014
1 answer
117 views
I am receiving the attached error when I have a RadGrid and RadMap attached to the same RadClientDataSource.  The error occurs by a postback on a Rad drop down.  If I bind the two to different RadClientDataSource the error goes away.  Unfortunately I would like to keep them bound to the same single RadClientDataSource as I have found when I filter the list of customers (with Lat/Long) the RadMap filters aswell, so was a 'feature' I want to keep.  Any thoughts on how I supress this message ?

Unhandled exception at line 13245, column 8 in http://localhost:54342/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ContentPlaceHolderMainContent_RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=;;System.Web.Extensions,+Version=4.0.0.0,+Culture=neutral,+PublicKeyToken=31bf3856ad364e35:en-US:f319b152-218f-4c14-829d-050a68bb1a61:ea597d4b:b25378d2;Telerik.Web.UI,+Version=2014.3.1024.45,+Culture=neutral,+PublicKeyToken=121fae78165ba3d4:en-US:45fa33f7-195b-4d8e-a1d1-d5955cf24e2c:16e4e7cd:f7645509:24ee1bba:88144a7a:1e771326:f46195d3:6b3f73b3:4cd1fec6:c442ac3f:ec7335e:d944e0f6:619d6d01:71188da4:3a11d08b:9b7cc2d2:dbc6b3d6:69667591:a4c22f0d:c4143936:5f88c545:d170b7bc:aaea87d6:e330518b:8e6f0d33:6a6d718d:58366029:2003d0b8:c128760b:aa288e2d:258f1c72:c8618e41:e4f8f289:1a73651d:333f8d94
 
0x800a138f - JavaScript runtime error: Unable to get property 'get_batchEditingManager' of undefined or null reference
Maria Ilieva
Telerik team
 answered on 27 Nov 2014
3 answers
408 views

Hi My Dear Friends :

How Can We Check The Validation Of RadCaptcha From Code Behind - With Custom Validator(ServerValidate) / WithOut Using And Setting ValidationGroup ?

thanks In Future Advance

Best Regards...

DevMohamed
Top achievements
Rank 1
 answered on 27 Nov 2014
1 answer
154 views
I am trying to programmatically expand a radpanelitem, but it does not seem to be working. I can expand it via the UI by clicking, but I would like to expand it from the code behind.

01.<telerik:RadPanelBar ID="rpbHeader" runat="server" Skin="Outlook" Width="100%" ExpandMode="FullExpandedItem" OnPreRender="rpbHeader_PreRender">
02.        <Items>
03.            <telerik:RadPanelItem ID="rpi_Header" runat="server" Owner="rpbHeader" Text="Statement Details">
04.                <ContentTemplate>
05.                    <asp:UpdatePanel ID="UpdatePanel3" runat="server">
06.                        <ContentTemplate>
07.                            <div style="padding-top: 8px;">
08.                            </div>
09.                            <div class="RFSHeader">
10.                                <uc2:ucStatementHeader ID="ucStatementHeader" runat="server" />
11.                            </div>
12.                        </ContentTemplate>
13.                    </asp:UpdatePanel>
14.                </ContentTemplate>
15.            </telerik:RadPanelItem>
16.        </Items>
17.    </telerik:RadPanelBar>
1.protected void Page_PreRender(object sender, EventArgs e)
2.        {
3.            if (sessionInfo.SessionObject().FinData.BankStatement != null)
4.            {
5.                rpi_Header.Expanded = true;
6.            }
7.        }
Hein
Top achievements
Rank 1
 answered on 27 Nov 2014
1 answer
36 views
Hi,

Will Visual Style Builder be able to support automatically the property RenderMode="Lightweight" in the future ?
From what I gathered in the forms, Visual Style Builder only supports RenderMode="Classic".

I've tried RenderMode="Lightweight" after doing "Visual Style Builder" and Telerik's Skin Builder Assembly Builder Tool (http://skinsassemblybuilder.telerik.com/) ,.. and UI rendering indeed breaks.

Thanks,
Henry Wu
Galin
Telerik team
 answered on 27 Nov 2014
0 answers
99 views
I am using radeditor in which <textarea> is used. now problem is when i give multiple new line  from design mode and go to the  html mode then again switch back to design mode, my all new lines are deleted.

Example
following line
------------
this is text1



this is text 2
-----------------
becomes

------------
this istext1
this istext2
------------
Bharat
Top achievements
Rank 1
 asked on 27 Nov 2014
2 answers
90 views
I'm using rad html chart in my web site. now when i run my site on mozila fire fox, chart is rendered but without any font. though working perfectly in Chrome

I Guess problem is <font > tag addded in chart html while running site on firefox.


This is my Html render of chart.
http://screencast.com/t/mFXghTGXHj

<div style="width: 400px; height: 480px" id="general_div" len="5211">
    <div id="ctl00_MainContent_PieChart1" style="height: 480px; width: 400px; position: relative;" data-role="chart" class="k-chart" len="5007">
        <!--?xml version='1.0' ?-->
        <svg style="position: relative; display: block; left: -0.599976px; top: -0.899994px;" height="480px" width="400px" version="1.1" xmlns="http://www.w3.org/2000/svg" len="4643">
            <defs id="k10024" len="326">
                <radialGradient gradientUnits="userSpaceOnUse" r="103.25" fy="260" fx="152.5" cy="260" cx="152.5" id="k10002">
                    <stop style="stop-color: #fff; stop-opacity: 0.06" offset="0%" />
                    <stop style="stop-color: #fff; stop-opacity: 0.2" offset="83%" />
                    <stop style="stop-color: #fff; stop-opacity: 0" offset="95%" />
                </radialGradient>
            </defs><path fill="none" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0" stroke="" d="M0 0 400 0 400 480 0 480 z" style="display: block;" len="0" /><path fill="none" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0.1" d="M5.5 45.5 300.5 45.5 300.5 475.5 5.5 475.5 z" style="display: block;" len="0" /><path fill="#fff" stroke-opacity="1" fill-opacity="0" stroke-linejoin="round" stroke-linecap="square" stroke="" d="M5 45 300 45 300 475 5 475 z" data-model-id="k10026" style="display: block;" id="k10025" len="0" /><text fill="#000" style="font: 16px Arial,Helvetica,sans-serif;" fill-opacity="1" y="31" x="83" len="28">Email Campaign Summary Chart</text><g id="k10027" len="0" /><g len="527"><path fill="#3366cc" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0.5" d="M 152.5 156.75 A103.25 103.25 0 0,1 240.365 314.224 L 152.5 260 z" data-model-id="k10030" style="display: block;" id="k10001" len="0" /><path fill="url(#k10002)" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0.5" d="M 152.5 156.75 A103.25 103.25 0 0,1 240.365 314.224 L 152.5 260 z" data-model-id="k10030" style="display: block;" id="k10029" len="0" /></g><g len="531"><path fill="#dc3912" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0.5" d="M 240.365 314.224 A103.25 103.25 0 0,1 85.198 338.301 L 152.5 260 z" data-model-id="k10032" style="display: block;" id="k10000" len="0" /><path fill="url(#k10002)" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0.5" d="M 240.365 314.224 A103.25 103.25 0 0,1 85.198 338.301 L 152.5 260 z" data-model-id="k10032" style="display: block;" id="k10031" len="0" /></g><g len="525"><path fill="#ff9900" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0.5" d="M 85.198 338.301 A103.25 103.25 0 0,1 152.5 156.75 L 152.5 260 z" data-model-id="k10034" style="display: block;" id="k10004" len="0" /><path fill="url(#k10002)" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0.5" d="M 85.198 338.301 A103.25 103.25 0 0,1 152.5 156.75 L 152.5 260 z" data-model-id="k10034" style="display: block;" id="k10033" len="0" /></g><g len="1484"><path fill="none" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="0" stroke="" d="M305 210 390 210 390 265 305 265 z" style="display: block;" len="0" /><font><text fill="#000" style="font: 12px Arial,Helvetica,sans-serif; cursor: pointer;" fill-opacity="1" y="227" x="325" data-model-id="k10036" id="k10035" len="4">Open</text><text fill="#000" style="font: 12px Arial,Helvetica,sans-serif; cursor: pointer;" fill-opacity="1" y="242" x="325" data-model-id="k10038" id="k10037" len="8">UnOpened</text><text fill="#000" style="font: 12px Arial,Helvetica,sans-serif; cursor: pointer;" fill-opacity="1" y="257" x="325" data-model-id="k10040" id="k10039" len="6">Bounce</text></font>
                <path fill="#3366cc" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="1" stroke="#3366cc" d="M310.5 219.5 318.5 219.5 318.5 226.5 310.5 226.5 z" data-model-id="k10036" style="display: block; cursor: pointer;" len="0" />
                <path fill="#dc3912" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="1" stroke="#dc3912" d="M310.5 234.5 318.5 234.5 318.5 241.5 310.5 241.5 z" data-model-id="k10038" style="display: block; cursor: pointer;" len="0" />
                <path fill="#ff9900" stroke-opacity="1" fill-opacity="1" stroke-linejoin="round" stroke-linecap="square" stroke-width="1" stroke="#ff9900" d="M310.5 249.5 318.5 249.5 318.5 256.5 310.5 256.5 z" data-model-id="k10040" style="display: block; cursor: pointer;" len="0" />
            </g><font><text fill="#000" style="font: 12px Arial,Helvetica,sans-serif;" fill-opacity="1" y="235" x="186" data-model-id="k10030" id="k10041" len="6">33.8 %</text><text fill="#000" style="font: 12px Arial,Helvetica,sans-serif;" fill-opacity="1" y="323" x="143" data-model-id="k10032" id="k10042" len="6">27.5 %</text><text fill="#000" style="font: 12px Arial,Helvetica,sans-serif;" fill-opacity="1" y="243" x="78" data-model-id="k10034" id="k10043" len="6">38.7 %</text></font></svg>
        <div style="display: none; position: absolute; font: 12px Arial,Helvetica,sans-serif; border: 1px solid; opacity: 1; filter: alpha(opacity=100);" class="k-tooltip" len="0"></div>
    </div>
</div>

Bharat
Top achievements
Rank 1
 answered on 27 Nov 2014
0 answers
215 views
Hi everyone,

Recently I had a requirement in which the users needed to be able to select items from one sorted RadListBox control (Source) and move them to another RadListBox control (Destination).  In the Destination box, the users also needed to be able to put the items in any order they wanted.  To make matters a little more complicated, the Destination box was pre-populated with some items marked as "required", and the users were not supposed to be able to move those items out of the Destination, but they still needed to be able to re-order the required items as desired.

I wanted the Source items to remain sorted after any items were moved into or out of it, and this included drag-n-drop operations.  I also wanted the "Transfer All" buttons to work intelligently, so that all items except for the required items were moved accordingly.

While I saw a number of options to prevent the transfer of certain items client-side, there was no client-side sorting mechanism.  So I decided to implement everything server-side.

The only real "gotcha" here was implementing the ListBox's "Reordered" event handler.  This was necessary because when doing drag-n-drop operations, the ListBox control does an automatic re-ordering of the items in order to drop the item in the exact position you want it.  Technically, you're really adding an item to the end of the Items collection, so the re-order happens automatically to place the item where you want it.

In my case, when moving the items from the unsorted ListBox to the sorted ListBox, I had to make sure that the items were sorted AFTER this "Reordered" event fired.  Otherwise, the last item in the list after the manual Sort in the "Transferred" even would be moved to wherever the mouse dropped the original item.  It was a strange effect, but was solved after asking Telerik about the behavior.

Since it wasn't intuitive to me at first, I thought I'd post the code here for everyone.  Hopefully some of you will find it useful.

HTML:
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadListBox1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadListBox2" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="RadListBox2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadListBox1" UpdatePanelCssClass="" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <table>
        <tr>
            <td>
                <telerik:RadListBox ID="RadListBox1" runat="server" AllowTransfer="True" TransferToID="RadListBox2"
                    SelectionMode="Multiple" AutoPostBackOnTransfer="true" Width="300px" Height="300px" EnableDragAndDrop="true">
                    <ButtonSettings TransferButtons="All"></ButtonSettings>
                    <Items>
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem1" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem2" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem3" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem4" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem5" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem6" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem7" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem8" />
                        <telerik:RadListBoxItem runat="server" Text="RadListBoxItem9" />
                    </Items>
                </telerik:RadListBox>
            </td>
            <td>
                <telerik:RadListBox ID="RadListBox2" runat="server" SelectionMode="Multiple" AllowReorder="true"
                    EnableDragAndDrop="true" Width="300px" Height="300px">
                    <Items>
                        <telerik:RadListBoxItem runat="server" Text="RequiredItem1 (required)" />
                        <telerik:RadListBoxItem runat="server" Text="RequiredItem2 (required)" />
                    </Items>
                </telerik:RadListBox>
            </td>
        </tr>
    </table>
</asp:Content>

Code-Behind:
private const string REQUIRED_FLAG = "(required)";
 
protected void Page_Init(object sender, EventArgs e)
{
    RadListBox1.Transferred += new Telerik.Web.UI.RadListBoxTransferredEventHandler(RadListBox1_Transferred);
    RadListBox1.Transferring += new Telerik.Web.UI.RadListBoxTransferringEventHandler(RadListBox1_Transferring);
    RadListBox1.Reordered += new RadListBoxEventHandler(RadListBox1_Reordered);
}
 
protected void Page_Load(object sender, EventArgs e)
{
}
 
void RadListBox1_Transferred(object sender, Telerik.Web.UI.RadListBoxTransferredEventArgs e)
{
    RadListBox1.Sort = Telerik.Web.UI.RadListBoxSort.Ascending;
    RadListBox1.SortItems();
}
 
void RadListBox1_Transferring(object sender, Telerik.Web.UI.RadListBoxTransferringEventArgs e)
{
    Boolean transferFail = false;
 
    foreach (RadListBoxItem item in e.Items)
    {
        if (item.Text.EndsWith(REQUIRED_FLAG))
        {
            transferFail = true;
            break;
        }
    }
 
    // only do special processing if required fields are in e.Items
    // otherwise, let the Transferring and Transferred events fire normally
    if (transferFail)
    {
        // cancel the event
        // (this also prevents the Transferred event from firing after)
        e.Cancel = true;
        foreach (RadListBoxItem item in e.Items)
        {
            if (!item.Text.EndsWith(REQUIRED_FLAG))
            {
                //e.SourceListBox.Transfer(item,e.SourceListBox,e.DestinationListBox);
                e.SourceListBox.Items.Remove(item);
                e.DestinationListBox.Items.Add(item);
            }
        }
 
        // Since the Transferred event doesn't fire, sort items
        e.DestinationListBox.Sort = RadListBoxSort.Ascending;
        e.DestinationListBox.SortItems();
    }
}
 
void RadListBox1_Reordered(object sender, RadListBoxEventArgs e)
{
    // Needed to sort AFTER the automatic reordering that Telerik does during the drag-n-drop action
    RadListBox1.Sort = Telerik.Web.UI.RadListBoxSort.Ascending;
    RadListBox1.SortItems();
}

Golem
Top achievements
Rank 1
 asked on 26 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?