Hi
I want to open a tooltip on click of a hyper link in radGrid,
I declared hyperlink in Template column as follows
<telerik:GridTemplateColumn HeaderText="Request Status">
<ItemTemplate>
<asp:LinkButton ID="lnkHyper" runat="server" Text="Click"
OnClick="lnkHyper_Click"></asp:LinkButton>
</ItemTemplate>
</telerik:GridTemplateColumn>
and my tooltip is as follows:
<telerik:RadToolTip ID="ConfirmToolTip" runat="server" Height="200px" Width="500px" TargetControlID="lnkHyper"
ManualClose="True" Position="Center" ShowCallout="False" Title="Confirmation Required"
Modal="True" Skin="Default1" EnableEmbeddedSkins="false" ShowEvent="OnClick" IsClientID="true">
<div>
<div>
<asp:Literal ID="ltClaim" Text="Do You Want to Confirm" runat="server" />
</div>
<div class="cmb_btnG cmb_ltFlt">
<asp:Button ID="btnOK" Text="OK" runat="server" CssClass="cmb_btnG" OnClick="btnOK_Click" />
</div>
<div class="cmb_sp13 cmb_ltFlt">
</div>
<div class="cmb_btnG ">
<asp:Button ID="btnCancel" Text="Cancel" runat="server" CssClass="cmb_btnG" />
</div>
</div>
</telerik:RadToolTip>
In code behind I am writing following code to open the tooltip but my tooltip never opens, I am also debugged the code, debugger passes through the code but still the tooltip is not opening
protected void lnkHyper_Click(object sender, EventArgs e)
{
LinkButton _lnkhyper = (LinkButton)sender;
TableCell cell = _lnkhyper .Parent as TableCell;
GridDataItem item = cell.Parent as GridDataItem;
bool reqired=true;
if(required)
{
ConfirmToolTip.Show();
return;
}
}
I am unable to figure out the problem can any one help
Thanks
hello all,
I have used telerik controls through out my application.
when i run my application i get the folloing error:
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.21022; InfoPath.1; .NET CLR 3.5.30729; .NET CLR 3.0.30618; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Sun, 5 Jul 2009 13:28:37 UTC
Message: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near 'Object reference not'.
Line: 4723
Char: 21
Code: 0
URI: http://admin.ikorusa.com/ScriptResource.axd?d=IvyElxg_oludDqEAbN3taHXP_hYWE1l6v7YqTKOwyAQ5KYIUVPsPJ6XGD5RTPu2ATOsn_nsGnkDFpewNr9OccJEXSaj3B7gn8XHc-Z5TK4M1&t=634123f4
please reply soon
thankx in advance
ritzie
| <telerik:RadGrid ID="RadGrid_Search" runat="server" DataSourceID="DS_Facility_Hardware_Search" |
| GridLines="None" Width="672px" AllowPaging="True" Height="349px" Style="margin-right: 0px"> |
| <HeaderContextMenu EnableTheming="True"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </HeaderContextMenu> |
| <PagerStyle PageButtonCount="5" /> |
| <MasterTableView AutoGenerateColumns="False" DataSourceID="DS_Facility_Hardware_Search"> |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridTemplateColumn> |
| <ItemTemplate> |
| <asp:ImageButton ID="BtnMoreInfo" runat="server" ImageUrl="~/EDRC/Images/More_Info.png"> |
| </asp:ImageButton> |
| </ItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn DataField="FacilityID" DataType="System.Int32" HeaderText="FacilityID" |
| ReadOnly="True" SortExpression="FacilityID" UniqueName="FacilityID" Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="SFFacilityID" DataType="System.Int32" HeaderText="SFFacilityID" |
| SortExpression="SFFacilityID" UniqueName="SFFacilityID" Visible="false"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="FacilityName" HeaderText="FacilityName" SortExpression="FacilityName" |
| UniqueName="FacilityName"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn DataField="Website" HeaderText="Website" SortExpression="Website" |
| UniqueName="Website"> |
| </telerik:GridBoundColumn> |
| </Columns> |
| </MasterTableView> |
| <FilterMenu EnableTheming="True"> |
| <CollapseAnimation Duration="200" Type="OutQuint" /> |
| </FilterMenu> |
| <%-- <ClientSettings EnablePostBackOnRowClick="true"> |
| </ClientSettings>--%> |
| <ClientSettings EnableRowHoverStyle="true"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| </telerik:RadGrid> |
| </td> |
| </tr> |
| </table> |
| <div style="z-index: 10"> |
| <telerik:RadToolTipManager runat="server" ID="RadToolTipManager1" Width="520" Height="380" |
| OnAjaxUpdate="RadToolTipManager1_AjaxUpdate" AutoTooltipify="true" ShowEvent="OnClick" |
| ManualClose="true" Modal="true" Position="TopLeft" AutoCloseDelay="0"> |
| </telerik:RadToolTipManager> |
| </div> |
| </ContentTemplate> |
| </asp:UpdatePanel> |
| Private Sub RadGrid_Search_ItemDataBound(ByVal sender As Object, ByVal e As Telerik.Web.UI.GridItemEventArgs) Handles RadGrid_Search.ItemDataBound |
| If e.Item.ItemType = GridItemType.Item OrElse e.Item.ItemType = GridItemType.AlternatingItem Then |
| Dim target As Control = e.Item.FindControl("BtnMoreInfo") |
| If Not [Object].Equals(target, Nothing) Then |
| If Not [Object].Equals(Me.RadToolTipManager1, Nothing) Then |
| Dim currentRow As DataRowView = DirectCast(e.Item.DataItem, DataRowView) |
| Me.RadToolTipManager1.TargetControls.Add(target.ClientID, currentRow.Row("SFFacilityID").ToString(), True) |
| End If |
| End If |
| End If |
| End Sub |
| Public Sub RadToolTipManager1_AjaxUpdate(ByVal sender As Object, ByVal e As Telerik.Web.UI.ToolTipUpdateEventArgs) Handles RadToolTipManager1.AjaxUpdate |
| Dim ctrl As Control = Page.LoadControl("Controls/TTip.ascx") |
| Dim lblFacilityName As Label = ctrl.Controls(0) |
| Dim details As TTip = DirectCast(ctrl, TTip) |
| UpdatePanel5.ContentTemplateContainer.Controls.Add(ctrl) |
| Dim params(0) As SqlClient.SqlParameter |
| params(0) = New SqlClient.SqlParameter() |
| params(0).Value = 'WHAT DO I CALL HERE? |
| params(0).ParameterName = "@SFFacilityID" |
| Dim rd As SqlClient.SqlDataReader = Data.SqlHelper.ExecuteReader(EDRCConnString, "dbo.FacilityRefinedSelect", params) |
| While rd.Read |
| lblFacilityName.Text = rd.GetString(2) |
| End While |
| rd.Close() |
| End Sub |
1. Drag and drop does not work (js error) if used in a masterpage scenario IF the scriptmanager is in masterpage, for this to work, the script manager has to be added to the actual page and not masterpage
2. drag and drop does not workif the lists are inside a multipview with
RenderSelectedPageOnly
="true"
if you guys cant repro these easily i can try to put a sample togather.