<
telerik:GridBoundColumn
DataField
=
"Recorded Date2"
<br> FilterControlAltText="Filter Reported Date column" HeaderText="Reported Date" <
br
> ReadOnly="True" SortExpression="Recorded Date" UniqueName="Recorded_Date" ItemStyle-HorizontalAlign="Right" DataType="System.DateTime" DataFormatString="{0:MM/dd/yy}"><
br
> </
telerik:GridBoundColumn
>
Tuesday, June 18, 2013 8:00:00 AM | 06/18/13 |
Tuesday, June 18, 2013 8:00:00 AM | Tuesday, June 18, 2013 12:00:00 AM |
protected void ExportToExcel_Click(object sender, EventArgs e)
{
RG.ExportSettings.ExportOnlyData = true;
RG.ExportSettings.IgnorePaging = true;
RG.ExportSettings.OpenInNewWindow = true;
RG.ExportSettings.FileName = "Assessment_Outcomes_Detail_" + DateTime.Today.Month.ToString() + "_" + DateTime.Today.Day.ToString() + "_" + DateTime.Today.Year.ToString();
RG.MasterTableView.ExportToExcel();
}
If
typeof(Editor) is MyCustomEditor and expression.FilterFunction = EqualTo
Then
'Do Custom Work
End
If
<ClientSettings>
<DataBinding SelectMethod="GetDataAndCount" Location="../Services/RecordService.svc" SortParameterType="Linq"
FilterParameterType="Linq" CountPropertyName="Count">
</DataBinding>
</ClientSettings
>
I can not send the extra search fields to the service and rebind the grid without having to do a full page post back.
My Service looks like
public ResultData<Record> GetDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string
filterExpression)
I want it to look something along these lines
public ResultData<Record> GetDataAndCount(int startRowIndex, int maximumRows, string sortExpression, string filterExpression, RecrodSearchCriteria
criteria)
Any help would be greatly appreciated. This will make or break my decision to go with Telerik controls or not.
Thanks
Bullish
<
telerik:RadTreeView
ID
=
"RadTreeView1"
runat
=
"server"
EnableDragAndDrop
=
"True"
EnableDragAndDropBetweenNodes
=
"true"
DataFieldID
=
"CategoryID"
DataFieldParentID
=
"ParentID"
DataSourceID
=
"LinqDataSource1"
DataTextField
=
"Name"
DataValueField
=
"CategoryID"
AllowNodeEditing
=
"False"
ExpandAnimation-Duration
=
"150"
OnNodeCheck
=
"RadTreeView1_NodeCheck"
OnNodeDataBound
=
"RadTreeView1_NodeDataBound"
CheckBoxes
=
"True"
OnClientNodeDropping
=
"onNodeDropping"
>
<
telerik:RadGrid
ID
=
"myRadGrid"
runat
=
"server"
Width
=
"100%"
Skin
=
"Web20"
>
<
MasterTableView
AutoGenerateColumns
=
"false"
Font-Size
=
"10"
DataKeyNames
=
"intScheduleId"
CommandItemDisplay
=
"Top"
AllowPaging
=
"true"
AllowSorting
=
"true"
>
<
HeaderStyle
ForeColor
=
"White"
Font-Bold
=
"true"
HorizontalAlign
=
"Center"
/>
<
ItemStyle
HorizontalAlign
=
"Center"
/>
<
AlternatingItemStyle
BackColor
=
"#B0C4DE"
HorizontalAlign
=
"Center"
/>
<
PagerStyle
AlwaysVisible
=
"true"
Mode
=
"NextPrevAndNumeric"
/>
<
CommandItemStyle
Height
=
"25px"
Font-Bold
=
"true"
Font-Underline
=
"true"
HorizontalAlign
=
"Left"
VerticalAlign
=
"Bottom"
/>