using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Trirand.Web.Mvc;
using System.Web.UI.WebControls;
namespace EmployeMamagmentAPP14_Dec_2011.Areas.Admin.Models
{
public class ManageEmployeeModel
{
public JQGrid EmployeeProp { get; set; }
public ManageEmployeeModel()
{
EmployeeProp = new JQGrid
{
Columns = new List<JQGridColumn>{
new JQGridColumn{
DataField="PKEmployeeId",
HeaderText="",
PrimaryKey=true,
Visible=false
},
new JQGridColumn{
DataField="EmployeeName",
HeaderText="Employee Name",
Sortable=true
},
new JQGridColumn{
DataField="EmployeeSalary",
HeaderText="Employee Salary",
Sortable=true
},
new JQGridColumn{
DataField="EmployeeAdd",
HeaderText="Employee Add",
Sortable=true
},
new JQGridColumn{
DataField="EmployeeRating",
HeaderText="Employee Rating",
Sortable=true
},
},
Width = Unit.Percentage(400),
Height = Unit.Percentage(200),
AutoWidth = true
};
}
}
}
|