<telerik:RadGrid ID="RadGrid1" AllowPaging="true" runat="server" OnPreRender="RadGrid1_PreRender" OnItemCommand="RadGrid1_ItemCommand" OnNeedDataSource="RadGrid1_NeedDataSource1" height="550px" PageSize="40" GridLines="None"> <MasterTableView EditMode="InPlace" CommandItemDisplay="Top" AutoGenerateColumns="true">
------------------------------------------------------------------------------------------------
foreach (GridColumn column in RadGrid1.MasterTableView.RenderColumns)
{
if (!string.IsNullOrEmpty(column.UniqueName) && !string.IsNullOrEmpty(column.HeaderText))
{
columncount++;
dt.Columns.Add(column.UniqueName,
typeof(string));
}
}
DataTable dtRecords = new DataTable();
{
dr = dt.NewRow();
for (int i = 0; i < columncount + 1; i++)
{
foreach (GridBoundColumn col in RadGrid1.MasterTableView.RenderColumns)
{
{
dr[col.UniqueName] = iName;
}
}
I have defined a grid using only AutoGeneratedColumns - bound using OnNeedDataSource. On ItemCommand, I need access to all AutoGeneratedColumns values - but am only able to access the first row. Unsure what I am doing wrong.
Thank you,
SteveO

RadGrid1.ExportSettings.Excel.Format = Telerik.Web.UI.
GridExcelExportFormat.ExcelML;
RadGrid.MasterTableview.ExportToExcel()
and
RadGrid1_ExcelMLExportStylesCreated,
RadGrid1_ExcelMLExportRowCreated.
I just want get whatever in radgrid as it is in excel.
How to achieve this please let me know.
Thanks in advance.
Manoj Gupta

string paramVal = "('" + isConditionalTimeFrame + "','" + imgExpandButton.UniqueID + "','" + grdViewRegistries.ClientID + "')";
if
(isConditionalTimeFrame)
{
dtpLastEventDate.ClientEvents.OnDateSelected =
"dtpLastEventDate_OnDateSelected" + paramVal;
}
This is my java script,
function
dtpLastEventDate_OnDateSelected(isConditionalTimeFrame, imgExpandButtonUniqueID, grdViewRegistriesClientID)
{
}
The issue is, the script is executed immediately after ItemDataBound, and its not triggered when I select any date in the DatePicker.
If anybody have any idea about this, pls share with me.
Thanks.