Hi there,
Im currently using radtooltip with a templated databinded button, the event must check some and shows the tooltip, everything works ok, but when another button fires the event and the condition does not match the tooltip still appearing, I digg on the demos site and find this http://demos.telerik.com/ASPNET/Prometheus/ToolTip/Examples/ShowEvent/DefaultCS.aspx im trying to implement the js code described for that situation but the object SYS throws an exception, do you have any other solution for that bug,
thanks in advance
AV.
here is the code:
the code behind of item command
Im currently using radtooltip with a templated databinded button, the event must check some and shows the tooltip, everything works ok, but when another button fires the event and the condition does not match the tooltip still appearing, I digg on the demos site and find this http://demos.telerik.com/ASPNET/Prometheus/ToolTip/Examples/ShowEvent/DefaultCS.aspx im trying to implement the js code described for that situation but the object SYS throws an exception, do you have any other solution for that bug,
thanks in advance
AV.
here is the code:
<telerik:RadGrid ID="rgPersonasBloqueadas" runat="server" AllowPaging="True" AllowSorting="True" |
GridLines="None" ShowGroupPanel="True" OnGroupsChanging="rgPersonasBloqueadas_GroupsChanging" |
OnPageIndexChanged="rgPersonasBloqueadas_PageIndexChanged" |
OnSortCommand="rgPersonasBloqueadas_SortCommand" |
onitemcommand="rgPersonasBloqueadas_ItemCommand" |
onitemdatabound="rgPersonasBloqueadas_ItemDataBound"> |
<MasterTableView> |
<RowIndicatorColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</RowIndicatorColumn> |
<ExpandCollapseColumn> |
<HeaderStyle Width="20px"></HeaderStyle> |
</ExpandCollapseColumn> |
<Columns> |
<telerik:GridTemplateColumn UniqueName="TemplateColumn"> |
<ItemTemplate> |
<asp:Button ID="btnMostrarCliente" runat="server" CausesValidation="false" CommandName="Select" CommandArgument='<%# obtenerCriterio(Eval("Identificacion"),Eval("CodigoAlmacen"))%>' Text="..."/> |
<telerik:RadToolTip ID="rttMensaje" runat="server" Skin="Vista" ManualClose="true" ContentScrolling="Auto" RelativeTo="Element" Width="250px" Height="50px" Sticky="true" IsClientID="true"></telerik:RadToolTip> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
</Columns> |
</MasterTableView> |
<ClientSettings AllowDragToGroup="True"> |
</ClientSettings> |
<FilterMenu EnableTheming="True"> |
<CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
</FilterMenu> |
</telerik:RadGrid> |
protected void rgPersonasBloqueadas_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) |
{ |
switch (e.CommandName) |
{ |
case "Select": |
GridDataItem item = e.Item as GridDataItem; |
if (!clienteBloqueado(e.CommandArgument.ToString())) |
{ |
actualizarCache(e.CommandArgument.ToString()); |
cambiarColor(e); |
RadWindow rnd = new RadWindow(); |
rnd.ID = "rwInfoUsuario"; |
rnd.Modal = true; |
rnd.VisibleOnPageLoad = true; |
rnd.Behaviors = WindowBehaviors.Close | WindowBehaviors.Move; |
rnd.Width = Unit.Pixel(800); |
rnd.Height = Unit.Pixel(600); |
rnd.NavigateUrl = "~/Paginas/InfoUsuario.aspx?ID=" + e.CommandArgument.ToString(); |
rwmVentana.Windows.Add(rnd); |
} |
else if (item["UsuarioEnUso"].Text != HttpContext.Current.User.Identity.Name) |
{ |
((RadToolTip)e.Item.FindControl("rttMensaje")).TargetControlID = ((Button)e.Item.FindControl("btnMostrarCliente")).ClientID; |
((RadToolTip)e.Item.FindControl("rttMensaje")).Text = "El usuario " + item["UsuarioEnUso"].Text + " se encuentra llamando actualmente a este cliente."; |
((RadToolTip)e.Item.FindControl("rttMensaje")).Show(); |
((Button)e.Item.FindControl("btnMostrarCliente")).Enabled = false; |
} |
break; |
} |
} |