protected
void RadGrid1_DetailTableDataBind(object source, GridDetailTableDataBindEventArgs e)
{
int
wbsLevelID = Convert.ToInt32(dataItem.GetDataKeyValue("wbsLevelID").ToString());
string
wbsLevelCode = dataItem.GetDataKeyValue("wbsLevelCode").ToString();
if
(wbsLevelCode == "Category" && wbsLevelID!=0)
{
DataTable
dtSource = (DataTable)e.DetailTableView.DataSource;
e.DetailTableView.DataSource = GetContractRowDataTable(dtSource, wbsLevelID);
}
}
public
DataTable GetContractRowDataTable(DataTable dtSource, int categoryID,int wbsLevelID)
{
///////// I want to define columns and add rows from here.
}
//////////////////////////////
Will this logic work?
Please help me in this scenario.
Thanks
Folks,
Using ASP.Net Ajax V2010 Release 2 with VStudio 2008 SP1.
We would like to collapse the expand/collapse column (if it is expanded) prior to export. Below is my command; basically prior to export, I would like to see if expand/collapse column is already expanded by user. If so collapse it 1st and then do export.
Thanks
protected void Export_Excel_Click(object sender, System.EventArgs e) { RadGrid1.MasterTableView.HierarchyDefaultExpanded = true; RadGrid1.ExportSettings.IgnorePaging = CheckBox2.Checked; RadGrid1.ExportSettings.OpenInNewWindow = true; RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.GridExcelExportFormat.ExcelML; RadGrid1.ExportSettings.ExportOnlyData = true; RadGrid1.MasterTableView.ExportToExcel(); }

<telerik:RadDatePicker ID="DatePickerWJBeginnDatum" runat="server" DateInput-DateFormat="dd.MM.yyyy" SelectedDate='<%# Bind("WjBeginnDatum") %>' Width="400px"></telerik:RadDatePicker>