foreach (GridDataItem item in radGrid.Items)
{
// do something with the items
}
DataTable datTabDatosDetalle =
new
DataTable();
if
(ViewState[
"OrdCompraProdDetallesSub"
+ IdOrdenCompra + Skucode] ==
null
)
{
datTabDatosDetalle = CCSMovimientoProductos.BuscarProdDetOrdenCompra_CEDIS(IdOrdenCompra, Skucode).Tables[0];
ViewState.Add(
"OrdCompraProdDetallesSub"
+ IdOrdenCompra + Skucode, datTabDatosDetalle);
}
else
datTabDatosDetalle = (DataTable)ViewState[
"OrdCompraProdDetallesSub"
+ IdOrdenCompra + Skucode];
Telerik.Web.UI.GridTableView detailTable =
new
Telerik.Web.UI.GridTableView(radGriOrdComDetalles);
radGriOrdComDetalles.MasterTableView.DetailTables.Add(detailTable);
detailTable.Name =
"tabDetail"
+ IdOrdenCompra + Skucode;
detailTable.DataKeyNames =
new
string
[] {
"Id"
,
"prodSkucode"
};
detailTable.EnableViewState =
true
;
detailTable.NoDetailRecordsText =
"Sin registros."
;
detailTable.Caption =
"Detalle del producto Sku "
+ Skucode;
detailTable.EditMode = Telerik.Web.UI.GridEditMode.InPlace;
foreach
(DataColumn dc
in
datTabDatosDetalle.Columns)
{
Telerik.Web.UI.GridBoundColumn campo =
new
Telerik.Web.UI.GridBoundColumn();
detailTable.Columns.Add(campo);
campo.UniqueName =
"col"
+ dc.ColumnName;
campo.HeaderText =
"[ "
+ dc.ColumnName +
" ]"
;
campo.HeaderStyle.Font.Bold =
true
;
campo.HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
campo.DataField = dc.ColumnName;
if
(dc.ColumnName ==
"Id"
)
campo.Visible =
false
;
if
(dc.ColumnName ==
"prodSkucode"
)
campo.Visible =
false
;
if
(dc.ColumnName ==
"Talla"
)
campo.ReadOnly =
true
;
}
Telerik.Web.UI.GridEditCommandColumn campoEdit =
new
Telerik.Web.UI.GridEditCommandColumn();
campoEdit.UniqueName =
"colEdit"
;
campoEdit.ButtonType = Telerik.Web.UI.GridButtonColumnType.ImageButton;
campoEdit.EditText =
"Editar"
;
campoEdit.UpdateText =
"Actualizar"
;
campoEdit.CancelText =
"Cancelar"
;
detailTable.Columns.Add(campoEdit);
detailTable.DataSource = datTabDatosDetalle;
detailTable.Rebind();
radGriOrdComDetalles.Rebind();
I have a Telerik Tab strip control on a master page as follows.
<telerik:RadTabStrip ID="rtsOrders" runat="server"
Width="350px"
Skin="Outlook"
Align="Justify" >
<Tabs>
<telerik:RadTab Text="Manage Groups" Width="100" Visible="false" NavigateUrl="~/Group/GroupMembers.aspx" />
<telerik:RadTab Text="Manage Orders" Width="100" Visible="false" NavigateUrl="~/Manager/ManageOrders.aspx" />
<telerik:RadTab Text="My Orders" Width="100" NavigateUrl="~/Order/MyOrders.aspx" />
</Tabs>
</telerik:RadTabStrip>
All above tab navigation URLs are content pages. When I click on the tab, I do see flicker and complete page loading even though I did not set Autopostback to true for Radtabstrip.
I put a breakpoint on page load of master page. It does come there on every tab click and when I check for ?page.Request.Params.Get("__EVENTTARGET") It comes as nothing.
I really don’t know why page behaves like this?
Thanks!
<
EditFormSettings
ColumnNumber
=
"3"
CaptionDataField
=
"codice_Astuccio"
CaptionFormatString
=
"Modifica le caratteristiche del codice astuccio: {0}"
InsertCaption
=
"Nuovo astuccio"
>
<
FormTableItemStyle
Wrap
=
"False"
></
FormTableItemStyle
>
<
FormCaptionStyle
CssClass
=
"EditFormHeader"
></
FormCaptionStyle
>
<
FormMainTableStyle
GridLines
=
"None"
CellSpacing
=
"0"
CellPadding
=
"3"
BackColor
=
"White"
Width
=
"1024px"
/>
<
FormTableStyle
CellSpacing
=
"0"
CellPadding
=
"2"
Width
=
"330px"
Height
=
"110px"
BackColor
=
"White"
/>
<
FormTableAlternatingItemStyle
Wrap
=
"False"
></
FormTableAlternatingItemStyle
>
<
EditColumn
ButtonType
=
"ImageButton"
InsertText
=
"Inserisci astuccio"
UpdateText
=
"Modifica astuccio"
UniqueName
=
"EditCommandColumn1"
CancelText
=
"Cancella le modifiche"
>
</
EditColumn
>
<
FormTableButtonRowStyle
HorizontalAlign
=
"Right"
CssClass
=
"EditFormButtonRow"
></
FormTableButtonRowStyle
>
</
EditFormSettings
>