I am having one RadGrid and binding one Datatable to it From codebehind.
At each paging or sorting or drag drop column it goes server side (page refreshed) and then displays.
is there any professional way i can achieve this with faster speed.
my code is
AND
At each paging or sorting or drag drop column it goes server side (page refreshed) and then displays.
is there any professional way i can achieve this with faster speed.
my code is
<
telerik:RadGrid
ID
=
"RadGridEmployeeCost"
runat
=
"server"
AllowSorting
=
"True"
AllowPaging
=
"true"
AllowFilteringByColumn
=
"true"
CellSpacing
=
"0"
GridLines
=
"None"
HeaderStyle-Font-Bold
=
"true"
Skin
=
"Web20"
OnNeedDataSource
=
"RadGridEmployeeCost_NeedDataSource"
ShowGroupPanel
=
"true"
OnColumnCreated
=
"RadGridEmployeeCost_ColumnCreated"
>
<
ClientSettings
AllowDragToGroup
=
"True"
/>
</
telerik:RadGrid
>
AND
protected void RadGridEmployeeCost_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
ObjCon.Open();
SqlCommand ObjCmd = new SqlCommand("SELECT name,address,TelPhone,EmailId,Qualification FROM WorkSummary", ObjCon);
ObjCmd.ExecuteNonQuery();
SqlDataAdapter ObjDa = new SqlDataAdapter(ObjCmd);
DataSet ds = new DataSet();
ObjDa.Fill(ds);
RadGridEmployeeCost.DataSource = ds;
}
}
protected void RadGridEmployeeCost_ColumnCreated(object sender, GridColumnCreatedEventArgs e)
{
if ((e.Column is GridBoundColumn && e.Column.UniqueName == "TelPhone" || e.Column.UniqueName == "EmailId" || e.Column.UniqueName == "Qualification"))
{
GridBoundColumn column = e.Column as GridBoundColumn;
column.AllowFiltering = false;
}
}