or
GridTableView nestedView1 = (GridTableView)parentItem.ChildItem.NestedTableViews[0];
foreach (GridDataItem childItem1 in nestedView1.Items)
{
if (childItem1.OwnerTableView.Name == "Products")
{
string selectedText= childItem1["ProductId"].Text;
GridEditableItem NewItem1 = (GridEditableItem)e.Item;
TableCell NewProdId = NewItem1["ProductId"];
string NewTxtProdId = (NewProdId.Controls[0] as DropDownList).SelectedValue;
string selectedValue="";
//Find a way to get selectedvalue of childItem1
if (selectedValue == NewTxtProdId)
{
DisplayMessage("This product id is already selected.");
e.Canceled = true;
}
}
}
<
telerik:RadWindow
ID
=
"RadWindowPreindexarCarpeta"
runat
=
"server"
Modal
=
"True"
Behaviors
=
"Close, Move"
VisibleStatusbar
=
"False"
Width
=
"425px"
Height
=
"400px"
Title
=
"Editar tipo predefinido"
OnClientShow
=
"Garino_Axentria_DMP_Funciones_Indexacion_PreindexarCarpeta.onShow"
OnClientClose
=
"Garino_Axentria_DMP_Funciones_Indexacion_PreindexarCarpeta.onClose"
EnableViewState
=
"false"
>
<
ContentTemplate
>
<
AxDMP:PreindexarCarpetaTag
ID
=
"PreindexarCarpeta"
runat
=
"server"
/>
</
ContentTemplate
>
</
telerik:RadWindow
>
Garino_Axentria_DMP_Funciones_Indexacion_PreindexarCarpeta = {
show:
function
(carpetaId) {
var
activeTooltip = Telerik.Web.UI.RadToolTip.getCurrent();
if
(activeTooltip)
activeTooltip.hide();
$find(Garino_Axentria_DMP_VerPreindexarCarpetaWindow).show();
$find(Garino_Axentria_DMP_Funciones_Indexacion_PreindexarCarpetaAjaxPanel).ajaxRequest(
'carpetaId:'
+ carpetaId);
},
close:
function
() {
$find(Garino_Axentria_DMP_VerPreindexarCarpetaWindow).close();
},
refresh:
function
() {
var
explorer = $find(Garino_Axentria_DMP_BusquedaPorCarpeta_RadFileExplorerPorCarpeta);
if
(explorer) { explorer.refresh(); }
else
{ $find(Garino_Axentria_DMP_AjaxManagerId).ajaxRequest(); }
},
onShow:
function
() {
},
onClose:
function
() {
Page_IsValid =
true
;
Page_Validators = [];
}
}