Hello.
I have one radgrid, when click in button for insert, the tooltips show me validationsumary, but when click button in update, the position of tooltips is not correct. And the tooltips insert to set position after click in button insert.
I will have to set isClientId = true.... after this the problem with position for radtooltips
Is this my code:
i attach 2 images, the image one is working fine with insert, but image two a three is the problem i have.
Thank..
Bets Regards,
I have one radgrid, when click in button for insert, the tooltips show me validationsumary, but when click button in update, the position of tooltips is not correct. And the tooltips insert to set position after click in button insert.
I will have to set isClientId = true.... after this the problem with position for radtooltips
Is this my code:
<
telerik:RadToolTip
runat
=
"server"
ID
=
"RadToolTipInsert"
Position
=
"TopLeft"
ShowEvent
=
"FromCode"
Width
=
"400px"
RelativeTo
=
"Element"
OnClientBeforeShow
=
"CheckIfShowInsert"
Skin
=
"Sitefinity"
ManualClose
=
"True"
Animation
=
"Fade"
EnableShadow
=
"True"
Title="<span
class
=
'MsgTextoToolTip'
><
b
> No es posible guardar debido a lo siguiente:</
b
></
span
> "
RenderInPageRoot="True">
<
asp:ValidationSummary
ID
=
"valSumaryInsert"
runat
=
"server"
ValidationGroup
=
"insert_group"
/>
</
telerik:RadToolTip
>
<
telerik:RadToolTip
ID
=
"RadToolTipUpdate"
runat
=
"server"
Animation
=
"Fade"
EnableShadow
=
"True"
ManualClose
=
"True"
OnClientBeforeShow
=
"CheckIfShowUpdate"
Position
=
"TopLeft"
RelativeTo
=
"Element"
ShowEvent
=
"FromCode"
Width
=
"400px"
Title="<span
class
=
'MsgTextoToolTip'
><
b
> No es posible guardar debido a lo siguiente:</
b
></
span
> "
RenderInPageRoot="True" IsClientID="True" TargetControlID="ToolTipsPositionEditMode"
>
<
asp:ValidationSummary
ID
=
"valSummaryUpdate"
runat
=
"server"
ValidationGroup
=
"update_group"
/>
</
telerik:RadToolTip
>
<
EditItemTemplate
>
<
asp:ImageButton
ID
=
"btnUpdate"
runat
=
"server"
BorderStyle
=
"None"
BorderWidth
=
"0px"
commandname
=
"Update"
ImageUrl
=
"~/Imagenes/PedidoExpress/diskyellow16.png"
ValidationGroup
=
"update_group"
onclientclick
=
"ShowTooltipUpdate();"
ToolTip
=
"Guardar los cambios realizados"
/>
<
InsertItemTemplate
>
<
asp:ImageButton
ID
=
"btnInsert"
runat
=
"server"
BorderStyle
=
"None"
BorderWidth
=
"0px"
commandname
=
"PerformInsert"
ImageUrl
=
"~/Imagenes/PedidoExpress/diskgreen16.png"
ValidationGroup
=
"insert_group"
onclientclick
=
"ShowTooltipInsert()"
ToolTip
=
"Agregar beneficiario al pedido"
/>
function
CheckIfShowInsert(sender, args) {
var
summaryElem = document.getElementById(
"<%= valSumaryInsert.ClientID %>"
);
if
(summaryElem.style.display ==
"none"
) {
args.set_cancel(
true
);
}
}
function
ShowTooltipInsert() {
window.setTimeout(
function
() {
var
tooltip = $find(
"<%= RadToolTipInsert.ClientID %>"
)
tooltip.show();
}, 10);
}
function
CheckIfShowUpdate(sender, args) {
var
summaryElem = document.getElementById(
"<%= valSummaryUpdate.ClientID %>"
);
if
(summaryElem.style.display ==
"none"
) {
//API: if there are no errors, do not show the tooltip
args.set_cancel(
true
);
}
}
function
ShowTooltipUpdate() {
var
tooltip = $find(
"<%= RadToolTipUpdate.ClientID %>"
)
setTimeout(
function
()
{
tooltip.show();
}, 20);
}
i attach 2 images, the image one is working fine with insert, but image two a three is the problem i have.
Thank..
Bets Regards,