using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
using System.Collections;
using Telerik.Web.UI.Skins;

public partial class Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
    }



    protected void grdCategory_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
    {
        // Set the grid's data source to the DataTable with dummy data
        grdCategory.DataSource = GetDummyDataTable();
    }

    // Method to generate a DataTable with dummy data
    private DataTable GetDummyDataTable()
    {
        // Create a new DataTable
        DataTable dt = new DataTable();

        // Define columns
        dt.Columns.Add("Category", typeof(string));
        dt.Columns.Add("Is_Active", typeof(bool));
        dt.Columns.Add("CCD_Only", typeof(bool));
        dt.Columns.Add("MMS_Only", typeof(bool));
        dt.Columns.Add("Comments", typeof(string));

        // Add dummy rows
        dt.Rows.Add("Category A", true, false, true, "Initial category for testing");
        dt.Rows.Add("Category B", false, true, false, "Inactive category for review");
        dt.Rows.Add("Category C", true, true, true, "Available for both CCD and MMS");
        dt.Rows.Add("Category D", false, false, true, "Medication Management only");
        dt.Rows.Add("Category E", true, false, false, "General category");
        dt.Rows.Add("Category F", false, true, false, "CCD restricted category");
        dt.Rows.Add("Category G", true, false, true, "MMS specific category");

        // Return the populated DataTable
        return dt;
    }

    protected void grdCategory_BatchEditCommand(object sender, GridBatchEditingEventArgs e)
    {
    }

    protected void btnSubmit_Click(object sender, EventArgs e)
    {

    }
}
