Hello Everyone,
We add rows in table dyanmically using javascript. Everything works fine. However, When I use radupload control to upload files, the data entered in table disappears because of full page post back. And without full page postback it is not possible to upload any file.
What could be the alternative to this issue ? Any recommendation is appreciated.
Is there any way/settings raduplaod not require full page postback to upload any file. Or In my scenario how to maintain dynamic table state after page postback ?
Thanks in advance.
Kiran
<
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