I have a RadGrid on an aspx page that does not seem to page properly. Any attempt at pressing any of the paging buttons (Next page, Last Page, 2nd page, 3rd page, etc) causes a small dark flash on the screen but does nothing otherwise. A second attempt at pressing a button will cause the page to refresh without the grid even being rendered.
Really appreciate the help on this.
Here is the code behind:
Really appreciate the help on this.
<
telerik:RadAjaxManager
ID
=
"RadAjaxMgr"
runat
=
"server"
>
<
AjaxSettings
>
<
telerik:AjaxSetting
AjaxControlID
=
"rGrid_Employee_Roster"
>
<
UpdatedControls
>
<
telerik:AjaxUpdatedControl
ControlID
=
"rGrid_Employee_Roster"
/>
</
UpdatedControls
>
</
telerik:AjaxSetting
>
</
AjaxSettings
>
</
telerik:RadAjaxManager
>
<
telerik:RadGrid
ID
=
"rGrid_Employee_Roster"
runat
=
"server"
CellSpacing
=
"0"
GridLines
=
"None"
AllowPaging
=
"true"
ShowGroupPanel
=
"True"
EnableLinqExpressions
=
"False"
OnNeedDataSource
=
"rGrid_Employee_Roster_NeedDataSource"
>
<
GroupingSettings
CaseSensitive
=
"False"
ShowUnGroupButton
=
"True"
/>
<
ClientSettings
AllowDragToGroup
=
"True"
></
ClientSettings
>
<
MasterTableView
AutoGenerateColumns
=
"False"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
AllowPaging
=
"true"
PageSize
=
"18"
ShowGroupFooter
=
"True"
NoMasterRecordsText
=
"No employees for this Cost Center"
CommandItemDisplay
=
"Top"
EnableLinqGrouping
=
"False"
>
<
CommandItemSettings
ExportToPdfText
=
"Export to PDF"
ShowAddNewRecordButton
=
"False"
ShowExportToExcelButton
=
"True"
ShowExportToPdfButton
=
"True"
></
CommandItemSettings
>
<
RowIndicatorColumn
Visible
=
"True"
FilterControlAltText
=
"Filter RowIndicator column"
></
RowIndicatorColumn
>
<
ExpandCollapseColumn
Visible
=
"True"
FilterControlAltText
=
"Filter ExpandColumn column"
></
ExpandCollapseColumn
>
<
Columns
>
<
telerik:GridBoundColumn
DataField
=
"EmployeeName"
FilterControlAltText
=
"Filter EmployeeName column"
HeaderText
=
"Name"
ReadOnly
=
"True"
SortExpression
=
"EmployeeName"
UniqueName
=
"EmployeeName"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Lmp_Num"
FilterControlAltText
=
"Filter Lmp_Num column"
HeaderText
=
"Lmp Num"
SortExpression
=
"Lmp_Num"
UniqueName
=
"Lmp_Num"
AllowFiltering
=
"False"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Position"
FilterControlAltText
=
"Filter Position column"
HeaderText
=
"Position"
SortExpression
=
"Position"
UniqueName
=
"Position"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Company"
FilterControlAltText
=
"Filter Company column"
HeaderText
=
"Company"
SortExpression
=
"Company"
UniqueName
=
"Company"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Work_Shift_Num"
DataType
=
"System.Int32"
FilterControlAltText
=
"Filter Work_Shift_Num column"
HeaderText
=
"Shift Num"
SortExpression
=
"Work_Shift_Num"
UniqueName
=
"Work_Shift_Num"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Type"
FilterControlAltText
=
"Filter Type column"
HeaderText
=
"Type"
ReadOnly
=
"True"
SortExpression
=
"Type"
UniqueName
=
"Type"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"Cost_Ctr"
FilterControlAltText
=
"Filter Cost_Ctr column"
HeaderText
=
"Cost Ctr"
UniqueName
=
"Cost_Ctr"
>
</
telerik:GridBoundColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"Full_Time"
DataType
=
"System.Boolean"
FilterControlAltText
=
"Filter Full_Time column"
HeaderText
=
"Ful Time"
SortExpression
=
"Full_Time"
UniqueName
=
"Full_Time"
AllowFiltering
=
"False"
>
</
telerik:GridCheckBoxColumn
>
<
telerik:GridCheckBoxColumn
DataField
=
"Tdy_Volunteer"
DataType
=
"System.Boolean"
FilterControlAltText
=
"Filter Tdy_Volunteer column"
HeaderText
=
"Tdy Vol"
SortExpression
=
"Tdy_Volunteer"
UniqueName
=
"Tdy_Volunteer"
AllowFiltering
=
"False"
>
</
telerik:GridCheckBoxColumn
>
</
Columns
>
<
EditFormSettings
><
EditColumn
FilterControlAltText
=
"Filter EditCommandColumn column"
></
EditColumn
>
</
EditFormSettings
>
</
MasterTableView
>
<
FilterMenu
EnableImageSprites
=
"False"
></
FilterMenu
>
</
telerik:RadGrid
>
Here is the code behind:
protected void rGrid_Employee_Roster_NeedDataSource(object sender, Telerik.Web.UI.GridNeedDataSourceEventArgs e)
{
this.rGrid_Employee_Roster.DataSource = EmployeeRoster.GetDataByCostCtr(Convert.ToInt32(lbl_Cost_Center_Num.Text));
}