I am binding some data to Radgrid and in one column of Radgrid i have image icon
on click of image icon Radtooltip will opened.
In Radtooltip 1 combobox and 1 textbox are there
my issue is that "SelectedIndexChanged event for combobox fires for some request and not fired for some request of same type".
Any help on this will be grateful.
3 Answers, 1 is accepted
The issue that you describe is very interesting but we need more details about your implementation.
What is the behaviour that you are trying to achieve?
Could you please paste the full code here?
Regards,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Radtooltip fired on click of image button in Radgrid
<telerik:RadToolTip ID="rdDoc" runat="server" ManualClose="True" Position="TopCenter"
RelativeTo="BrowserWindow" ShowCallout="False" ShowEvent="OnClick"
Modal="True" Title="<%$ CmbResources:, cmn_ChangeTask_status%>" Skin="Default1"
EnableEmbeddedSkins="false" OffsetY="240" OnClientShow="OnPopupShow" OnClientBeforeHide="OnClientClose">
<uc2:Doc ID="Doc1" runat="server" />
</telerik:RadToolTip>
Page on which Radcombox is there
<asp:Literal ID="litDocumentName" runat="server" Text="Document Name: "></asp:Literal></strong>
<asp:Literal ID="litDocumentNameValue" runat="server"></asp:Literal></p>
<br class="cmb_clrBth" />
<br class="cmb_clrBth" />
<p>
<asp:RadioButton ID="rdoVerify" runat="server" GroupName="DocStatus" Checked="true" Text="Verify" />
<asp:RadioButton ID="rdoReject" runat="server" GroupName="DocStatus" Text="Reject" /></p>
<br class="cmb_clrBth" />
<p>
<span class="cmb_requiredFieldIcon">*</span>
<asp:Label ID="lblReason" runat="server" Text="<% $CmbResources: lbl_ChangeTask_Reason %>"></asp:Label>
</p>
<p>
<telerik:RadComboBox ID="RCombReason" AutoPostBack ="true" OnSelectedIndexChanged = "RCombReason_SelectedIndexChanged" runat="server" EnableEmbeddedSkins="false"
Skin="Default" ZIndex="500001" EnableItemCaching ="true">
</telerik:RadComboBox>
</p>
<br class="cmb_clrBth" />
<p>
<span class="cmb_requiredFieldIcon" visible = "false" id= "spancomm" runat ="server">*</span>
<asp:Literal ID="litAddComments" runat="server" Text="<% $CmbResources:lbl_DocVrfy_AdditionalComments %>"></asp:Literal></p>
<p>
<telerik:RadTextBox ID="txtComments" runat="server" EnableEmbeddedSkins="false" Skin="Default"
Width="250px" TextMode="MultiLine" MaxLength="1000" onpaste="return false">
</telerik:RadTextBox></p>
<p>
</p>
<div class="cmb_ltFlt">
<div class="cmb_ltFlt">
<div class="cmb_btnG">
<asp:Button ID="btnsave" runat="server" Text="<% $CmbResources:, cmn_btnsaveasdraft %>"
CausesValidation="false" CssClass="cmb_btnG" Font-Bold="true" OnClick="btnsave_Click"
OnClientClick="myContentClickHandlerSave(); return false;" /></div>
</div>
<div class="cmb_ltFlt cmb_sp5">
</div>
<div class="cmb_ltFlt">
<div class="cmb_btnG">
<asp:Button CssClass="cmb_btnG" CausesValidation="false" runat="server" ID="btnCancel"
Text="cancel" OnClick="btnCancel_click"/>
</div>
</div>
</div>
Code on SelectedIndexChanged Event
protected void RCombReason_SelectedIndexChanged(object sender,RadComboBoxSelectedIndexChangedEventArgs e)
{
spancomm.Visible = false;
IsSelected = false;
DataTable dtReasonDocs = new DataTable("dtDocs");
dtReasonDocs = portalCache.GetData("getReasonforDocuments") as DataTable;
string reasonID = string.Empty;
reasonID = RCombReason.SelectedValue.ToString();
if (dtDocs!= null)
{
for (int i = 0; i < dtDocs.Rows.Count; i++)
{
if (dtDocs.Rows[i]["ID"].ToString().Equals(reasonID, StringComparison.OrdinalIgnoreCase))
{
if (dtDocs.Rows[i]["ApprovalRequired"].ToString().Equals(ApplicationConstants.Y, StringComparison.OrdinalIgnoreCase))
{
spancomm.Visible = true;
break;
}
}
}
}
}
Please excuse us for delayed reply.
Let me suggest you use RadTooltipManager and load the RadTooltip control upon AJAX - as is demonstrated at this online demo.
I hope this helps.
All the best,
Kalina
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.