using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Controls_FolderNavigationControl : System.Web.UI.UserControl
{
    [Description("Set folder category name"), Category("Value"), Browsable(true)]
    public string Category { get; set; }

    [Description("Enable/Disable folder editing"), Category("Value"), Browsable(true), DefaultValue(false)]
    public bool ReadOnly { get; set; }

    protected void Page_Load(object sender, EventArgs e)
    {
        rcdsFolders.DataSource.WebServiceDataSourceSettings.Select.Url = "folders/" + Category;
        @readonly.Value = ReadOnly.ToString();
    }
}