This is a migrated thread and some comments may be shown as answers.

ListView/DataList - How to drag and drop items

1 Answer 164 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Vijay
Top achievements
Rank 1
Vijay asked on 12 Dec 2011, 03:26 PM
Is there are way to drag and drop items that are within a datalist.  See code below, i want to be able to drag and drop rows "Make, Model,....  Thanks.

Here is some sample code:
<telerik:RadGrid ID="RadGrid1" AllowFilteringByColumn="true" runat="server" GridLines="None" AllowPaging="true" AllowSorting="true" PageSize="6">
        <PagerStyle Mode="NextPrevAndNumeric" />
        <MasterTableView TableLayout="Fixed">
            <ItemTemplate>
                <%# (((GridItem)Container).ItemIndex != 0)? "</td></tr></table>" : "" %>
                <asp:Panel ID="ItemContainer" CssClass='<%# (((GridItem)Container).ItemType == GridItemType.Item)? "item" : "alternatingItem" %>' runat="server">
                    <b>Make:</b>
                    <%# Eval("Make")%>
                    <br />
                    <b>Model:</b>
                    <%# Eval("Model")%>
                    <br />
                    <b>Year:</b>
                    <%# Eval("Year")%>
                    <br />
                </asp:Panel>
            </ItemTemplate>
        </MasterTableView>
        <GroupingSettings CaseSensitive="false" />
        <ClientSettings AllowDragToGroup="true" AllowRowsDragDrop="true">
            <Selecting AllowRowSelect="true" />
            <Scrolling AllowScroll="true" UseStaticHeaders="true" />
        </ClientSettings>
    </telerik:RadGrid>
</asp:Content>

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 13 Dec 2011, 05:28 AM
Hello Vijay,

Try setting the following.
aspx:
<ClientSettings AllowRowsDragDrop="true" AllowColumnsReorder="true" ReorderColumnsOnClient="true">
<Resizing AllowColumnResize="true" />
</ClientSettings>

-Shinu.
Tags
Grid
Asked by
Vijay
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or