I am having an issue with the following 2 ClientSettings on the RadGrid:
I am using the code to do a LatePanel on the radgrid so that the page loads and then the radgrid can go out and bind the datasource. This is to give the customer the idea that something is actually loading.
This is working great. My problem occurs on initial page load and the 2 settings above are set to true. After the Grid is populated the grid does not respond to clicks nor does the hoverstyle appear on the rows. However if I then click on the hader column to do a sort or use the filter box and then the grid refreshes...both the row clicking and hoverstyle are enabled.
If I remove the latepanel code the grid functions normally meaning it does the row selecting and hoverstyle right at the get go.
The latepanel code is the exact same that is used in various forum queries found here.
Has anyone run into this issue and know of a way to get these to functions to work?
datagrid code:
EnablePostBackOnRowClick
andEnableRowHoverStyle
.I am using the code to do a LatePanel on the radgrid so that the page loads and then the radgrid can go out and bind the datasource. This is to give the customer the idea that something is actually loading.
This is working great. My problem occurs on initial page load and the 2 settings above are set to true. After the Grid is populated the grid does not respond to clicks nor does the hoverstyle appear on the rows. However if I then click on the hader column to do a sort or use the filter box and then the grid refreshes...both the row clicking and hoverstyle are enabled.
If I remove the latepanel code the grid functions normally meaning it does the row selecting and hoverstyle right at the get go.
The latepanel code is the exact same that is used in various forum queries found here.
Has anyone run into this issue and know of a way to get these to functions to work?
datagrid code:
<
telerik:RadAjaxPanel
ID
=
"LatePanel"
runat
=
"server"
width
=
"100%"
height
=
"300px"
scrollbars
=
"vertical"
>
<
telerik:RadGrid
ID
=
"rgOustandingInv"
runat
=
"server"
OnNeedDataSource
=
"rgOustandingInv_NeedDataSource"
EnableViewState
=
"true"
OnItemCommand
=
"rgOustandingInv_ItemCommand"
AllowFilteringByColumn
=
"True"
AllowSorting
=
"True"
PageSize
=
"10"
AllowPaging
=
"True"
EnableNoRecordsTemplate
=
"true"
>
<
MasterTableView
Width
=
"100%"
CommandItemDisplay
=
"Top"
CommandItemSettings-ShowAddNewRecordButton
=
"false"
CommandItemSettings-ShowRefreshButton
=
"false"
AutoGenerateColumns
=
"false"
AllowFilteringByColumn
=
"True"
TableLayout
=
"Auto"
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
/>
<
CommandItemSettings
ShowExportToWordButton
=
"true"
ShowExportToExcelButton
=
"true"
ShowExportToCsvButton
=
"true"
/>
<
Columns
>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"invoiceNo"
HeaderText
=
"Invoice No"
SortExpression
=
"invoiceNo"
UniqueName
=
"invoiceNo"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"amount"
HeaderText
=
"Amount"
SortExpression
=
"amount"
UniqueName
=
"amount"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"status"
HeaderText
=
"Invoice / Payment Status"
SortExpression
=
"status"
UniqueName
=
"status"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridDateTimeColumn
FilterControlWidth
=
"105px"
DataField
=
"schedPayDate"
HeaderText
=
"Scheduled Date of Payment"
SortExpression
=
"schedPayDate"
UniqueName
=
"schedPayDate"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"contractId"
HeaderText
=
"Contract"
SortExpression
=
"contractId"
UniqueName
=
"contractId"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"contractRelease"
HeaderText
=
"contractRelease"
SortExpression
=
"contractRelease"
UniqueName
=
"contractRelease"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
Visible
=
"false"
/>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"poNo"
HeaderText
=
"PO"
SortExpression
=
"poNo"
UniqueName
=
"poNbr"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
/>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"poRelease"
HeaderText
=
"poRelease"
SortExpression
=
"poRelease"
UniqueName
=
"poRelease"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
Visible
=
"false"
/>
<
telerik:GridBoundColumn
FilterControlWidth
=
"105px"
DataField
=
"poRevision"
HeaderText
=
"PO"
SortExpression
=
"poRevision"
UniqueName
=
"poRevision"
AutoPostBackOnFilter
=
"true"
CurrentFilterFunction
=
"Contains"
ShowFilterIcon
=
"false"
Visible
=
"false"
/>
</
Columns
>
<
NoRecordsTemplate
>
<
div
>There are no records to display</
div
>
</
NoRecordsTemplate
>
</
MasterTableView
>
<
ClientSettings
EnablePostBackOnRowClick
=
"true"
EnableRowHoverStyle
=
"true"
/>
</
telerik:RadGrid
>
</
telerik:RadAjaxPanel
>