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.Generic;
using System.Linq;
using CustomControls.AspNet;

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

	protected void RadGrid1_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
	{
		(sender as RadGrid).DataSource = new List<string>();
		(sender as RadGrid).DataSource = Enumerable.Range(1, 20).Select(i => new
		{
			TempAccountsId = i,
			CleaningId = i,
			IsPerSqftRate = true,
			IsFlatRate = true,
			PerSqFtRate = i,
			AccountNumber = i,
			AccountName = i
		});
	}

	protected void CustomGrid1_Init(object sender, EventArgs e)
	{
		(sender as CustomGrid).Grid.PageIndexChanged += Grid_PageIndexChanged;
	}

	void Grid_PageIndexChanged(object sender, GridPageChangedEventArgs e)
	{
		//
	}
}
