Exemplo n.º 1
0
    /// <summary>
    ///  Binds the reorder list on left to the chapters. Also binds the chapters to the list in link selection div.
    /// </summary>
    protected void BindSequence()
    {
        IList <ChapterVersion> dsChapters = DocoManager.GetAllItemsByArticleId(ArticleId);

        //bind chapters to the list
        ReorderList1.DataSource = dsChapters;
        ReorderList1.DataBind();

        ReorderList2.DataSource = dsChapters;
        ReorderList2.DataBind();

        //bind chapters to the select list
        rptChapsList.DataSource = dsChapters;
        rptChapsList.DataBind();
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        ReorderList2.DataSource = SimpleDataSource;
        ReorderList2.DataBind();

        ReorderList3.DataSource = IListDataSource;
        ReorderList3.DataBind();

        DataView dv = Table.DefaultView;

        dv.Sort = "Sort ASC";
        ReorderList4.DataSource = dv;

        ReorderList4.DataBind();
    }