hi,
I am using 2009.3.1103.20 version of Telerik Controls.
Now I simply added filtering to columns in my grid and that worked fine on my machine.
But when I deployed it to Test Server, the problem is that the filter icon is displayed on next line, underneath filter textbox, for my first column.
For rest of the columns, its looking good and this is happening only on my Test Server.
I tried giving FiltercontrolWidth, HeaderStyle-Width but didnt work.
Any idea why the filter icon is displayed underneath filter textbox?
Here is my grid. I have about 15 fields so I kept only few fields here.
The first column
I am using 2009.3.1103.20 version of Telerik Controls.
Now I simply added filtering to columns in my grid and that worked fine on my machine.
But when I deployed it to Test Server, the problem is that the filter icon is displayed on next line, underneath filter textbox, for my first column.
For rest of the columns, its looking good and this is happening only on my Test Server.
I tried giving FiltercontrolWidth, HeaderStyle-Width but didnt work.
Any idea why the filter icon is displayed underneath filter textbox?
Here is my grid. I have about 15 fields so I kept only few fields here.
The first column
<
telerik:GridNumericColumn DataField="RequestInfoID"
is displaying Filter Icon underneath filter textbox, any idea how do I make it display next to textbox?
<
div
class
=
"Scrollgrid"
style
=
"width: 1100px; height: 600px;"
>
<
telerik:RadGrid
ID
=
"RadGridAllRequests"
runat
=
"server"
AllowPaging
=
"true"
AllowSorting
=
"true"
AllowFilteringByColumn
=
"true"
AutoGenerateColumns
=
"False"
BorderStyle
=
"None"
GridLines
=
"Both"
OnNeedDataSource
=
"RadGridAllRequests_needdatasource"
OnItemDataBound
=
"RadGridAllRequests_ItemDataBound"
OnItemCreated
=
"RadGridAllRequests_ItemCreated"
OnItemCommand
=
"RadGridAllRequests_ItemCommand"
AllowMultiRowSelection
=
"true"
SelectedItemStyle-CssClass
=
"SelectedItem"
Width
=
"100%"
Skin
=
"WebBlue"
>
<
PagerStyle
Mode
=
"NextPrevNumericAndAdvanced"
Position
=
"TopAndBottom"
AlwaysVisible
=
"true"
/>
<
ClientSettings
EnableRowHoverStyle
=
"true"
EnablePostBackOnRowClick
=
"true"
>
<
Selecting
AllowRowSelect
=
"true"
/>
</
ClientSettings
>
<
MasterTableView
ShowHeadersWhenNoRecords
=
"true"
AllowFilteringByColumn
=
"true"
DataKeyNames
=
"RequestInfoID"
>
<
Columns
>
<
telerik:GridNumericColumn
DataField
=
"RequestInfoID"
HeaderText
=
"Request No."
SortExpression
=
"RequestInfoID"
DataType
=
"System.Int64"
FilterControlWidth
=
"40px"
HeaderStyle-Width
=
"100px"
>
</
telerik:GridNumericColumn
>
<
telerik:GridDateTimeColumn
HeaderStyle-Width
=
"130px"
DataField
=
"CreationDate"
HeaderText
=
"Created On"
FilterControlWidth
=
"100px"
CurrentFilterFunction
=
"Contains"
PickerType
=
"DatePicker"
DataFormatString
=
"{0:MM/dd/yyyy}"
SortExpression
=
"CreationDate"
>
</
telerik:GridDateTimeColumn
>
<
telerik:GridNumericColumn
DataField
=
"TotalAmount"
HeaderText
=
"Total Amount"
SortExpression
=
"TotalAmount"
HeaderStyle-HorizontalAlign
=
"Right"
ItemStyle-HorizontalAlign
=
"Right"
DataType
=
"System.Decimal"
FilterControlWidth
=
"70px"
DataFormatString
=
"{0:#,##0.00}"
>
<
FooterStyle
Font-Bold
=
"true"
/>
</
telerik:GridNumericColumn
>
<
telerik:GridBoundColumn
DataField
=
"RequestedFrom_Email"
HeaderText
=
"Requested From"
SortExpression
=
"RequestedFrom_Email"
>
</
telerik:GridBoundColumn
>
<
telerik:GridBoundColumn
DataField
=
"SuggestedVendor"
HeaderText
=
"Suggested Vendor"
SortExpression
=
"SuggestedVendor"
UniqueName
=
"SuggestedVendor"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Describe Reason and Reject"
UniqueName
=
"rejectrequest"
AllowFiltering
=
"false"
>
<
ItemTemplate
>
<
table
width
=
"240px"
cellpadding
=
"0"
cellspacing
=
"0"
>
<
tr
valign
=
"top"
>
<
td
>
<
asp:Label
ID
=
"lblNextApprovalRequiredFor"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "NextApprovalRequiredFor").ToString()%>'></
asp:Label
>
<
asp:Label
ID
=
"lblUnder5000ApprovedORRejected"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "Under5000ApprovedORRejected").ToString()%>'></
asp:Label
>
<
asp:Label
ID
=
"lblOver5000ApprovedORRejected"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "Over5000ApprovedORRejected").ToString()%>'></
asp:Label
>
<
asp:Label
ID
=
"lblFinanceApprovedORRejected"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "FinanceApprovedORRejected").ToString()%>'></
asp:Label
>
<
asp:Label
ID
=
"lblOver25000CFOApprovedORRejected"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "Over25000CFOApprovedORRejected").ToString()%>'></
asp:Label
>
<
asp:Label
ID
=
"lblOver25000COOApprovedORRejected"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "Over25000COOApprovedORRejected").ToString()%>'></
asp:Label
>
<
asp:Label
ID
=
"lblOver25000CEOApprovedORRejected"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "Over25000CEOApprovedORRejected").ToString()%>'></
asp:Label
>
<
asp:Label
ID
=
"lblRejectedMessage"
runat
=
"server"
Text
=
"Rejected"
></
asp:Label
>
<
asp:TextBox
Width
=
"150px"
runat
=
"server"
MaxLength
=
"150"
ValidationGroup
=
"vgRejection"
ID
=
"txtRejectionReason"
ToolTip
=
"Enter Rejection Reason"
></
asp:TextBox
>
<%-- <
asp:RequiredFieldValidator
ID
=
"rvRejectionReason"
Display
=
"Dynamic"
ValidationGroup
=
"vgRejection"
runat
=
"server"
SetFocusOnError
=
"true"
ControlToValidate
=
"txtRejectionReason"
ErrorMessage
=
"Enter Rejection Reason"
ToolTip
=
"Enter Rejection Reason"
>
</
asp:RequiredFieldValidator
>
--%>
<
asp:Button
CssClass
=
"ButtonCSS"
runat
=
"server"
ID
=
"btnRejectRequest"
Text
=
"Reject"
ToolTip
=
"Click Here to Reject Request"
CausesValidation
=
"true"
ValidationGroup
=
"vgRejection"
OnClick
=
"btnRejectRequest_Click"
OnClientClick
=
"javascript:var agree= confirm('Are you sure you want to reject this Request? '); if(agree){ Page_BlockSubmit = false;buttonClicked_WithObj(this); return true; };else {return false;};"
CommandArgument='<%#
Eval ( "RequestInfoID").ToString()
+ ";" +
Eval ( "NextApprovalRequiredFor").ToString()
+ ";" +
Eval ( "TotalAmount").ToString()
%>' />
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridBoundColumn
DataField
=
"Request_Current_Status_DisplayText"
HeaderText
=
"Current Status"
SortExpression
=
"Request_Current_Status_DisplayText"
UniqueName
=
"Request_Current_Status_DisplayText"
>
</
telerik:GridBoundColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Cancel Request"
UniqueName
=
"cancelrequest"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblCancelled"
runat
=
"server"
Visible
=
"false"
Text='<%#Eval ( "Cancelled").ToString()%>'></
asp:Label
>
<
asp:Label
runat
=
"server"
ID
=
"lblCompleted"
Text='<%# Eval("Completed").ToString()%>'
Visible="false"></
asp:Label
>
<
asp:Label
runat
=
"server"
ID
=
"lblCompletedMessage"
Text='<%# Eval("CompletedStatus").ToString()%>'></
asp:Label
>
<
asp:Label
runat
=
"server"
ID
=
"lblCancellationStatus"
Text='<%# Eval("CancellationStatus").ToString()%>'></
asp:Label
>
<
asp:Button
CssClass
=
"ButtonCSS"
runat
=
"server"
ID
=
"btnCancelRequest"
Text
=
"Cancel Request"
ToolTip
=
"Click Here to cancel Request"
CausesValidation
=
"False"
OnClick
=
"btnCancelRequest_Click"
OnClientClick
=
"javascript:var agree= confirm('Are you sure you want to cancel/delete this Request? '); if(agree){ Page_BlockSubmit = false;buttonClicked_WithObj(this); return true; };else {return false;};"
CommandArgument='<%# Eval ( "RequestInfoID").ToString() %>' />
</
ItemTemplate
>
</
telerik:GridTemplateColumn
>
<
telerik:GridTemplateColumn
HeaderText
=
"Request No."
SortExpression
=
"RequestInfoID"
AllowFiltering
=
"false"
Visible
=
"false"
UniqueName
=
"requestinfoid"
>
<
ItemTemplate
>
<
asp:Label
ID
=
"lblRequestInfoID"
runat
=
"server"
Text='<%# DataBinder.Eval(Container.DataItem, "RequestInfoID")%>'></
asp:Label
></
ItemTemplate
>
</
telerik:GridTemplateColumn
>
</
Columns
>
<
EditFormSettings
>
<
PopUpSettings
ScrollBars
=
"None"
/>
</
EditFormSettings
>
<
ExpandCollapseColumn
Resizable
=
"False"
Visible
=
"False"
>
<
HeaderStyle
/>
</
ExpandCollapseColumn
>
<
RowIndicatorColumn
Visible
=
"False"
>
<
HeaderStyle
/>
</
RowIndicatorColumn
>
</
MasterTableView
>
</
telerik:RadGrid
>
</
div
>