| protected void RadGrid4_ItemDataBound(object sender, GridItemEventArgs e) |
| { |
| if (e.Item is GridDataItem) |
| { |
| GridDataItem dataItem = (GridDataItem)e.Item; |
| RadTreeView treeview = (RadTreeView)data["Tree"].FindControl("RadTreeView1"); |
| int id= Convert.ToInt32(dataItem["CategoryID"].ToString()); |
| //Write query to select Name based on the category id for each treeview and populate Dataset |
| treeview.DataTextField = "Name"; |
| treeview.DataSource = dsSet; |
| treeview.DataBind(); |
| } |
| } |

Hi,
In the code below, I am trying to put a RadDatePicker in a RadToolTip. However, the calendar shows behind the tooltip and I am not able to select the date from the calendar. I've heard that the z-index is the cause of this problem and I've followed the solution in the thread
RadDatePicker doesnt work with tooltip but it still doesn't work. I would like to ask is there any alternative solution? Thank you very much.
| <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %> |
| <%@ Register Assembly="Telerik.Web.UI, Version=2008.2.723.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head id="Head1" runat="server"> |
| <title>Untitled Page</title> |
| </head> |
| <body > |
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function ShowTooltip() |
| { |
| $find("<%= RadToolTip1.ClientID %>").show(); |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <form id="form1" runat="server"> |
| <asp:ScriptManager runat="server" ID="ScriptManager"> |
| </asp:ScriptManager> |
| <button onclick="ShowTooltip()" >Test</button> |
| <telerik:RadToolTip ID="RadToolTip1" runat="server" |
| Modal="True" IsClientID="True" Sticky="True" |
| ManualClose="True" Animation="None" Position="Center" |
| RelativeTo="BrowserWindow" > |
| <telerik:RadDatePicker Runat="server"> |
| </telerik:RadDatePicker> |
| </telerik:RadToolTip> |
| </form> |
| </body> |
| </html> |
Regards,
Jerome
<
script language="javascript" type="text/javascript">
var firstCombo = <%=srcStudyMinLengthSelector.ClientID%>;
function SecondComboHandleEndChanging(sender, eventarqs) {
sender.get_text(); // this is the second combo selected value
alert(firstCombo .value); // this returns the first combo selected text not value
alert(firstCombo .text); // undefined
alert(firstCombo .get_value()); // javascript error 'no method'
}
</
script>
Your help would be appreciated,
Toby
I am trying to edit connected webpart to use the RadMager/Radpanel instead on an ajax update panel are there any C# examples, on this implimentation.
private void SetupSharePointAjax()
{
this._hostPanel = new UpdatePanel();
this._hostPanel.ID = AJAXCommon.AJAX_HOSTPANEL_NAME + this.ClientID;
this._hostPanel.UpdateMode = UpdatePanelUpdateMode.Conditional;
this._hostPanel.ChildrenAsTriggers = true;
this.Controls.Add(_hostPanel);
if (this.Page.Form != null)
{
ScriptManager.RegisterStartupScript(
this, typeof(ClientsWebPart),
AJAXCommon.SHAREPOINT_AJAX_POSTBACK_SCRIPTNAME,
AJAXCommon.SHAREPOINT_AJAX_POSTBACK_SCRIPT,
true);
private
void CreateGrid()
{
_gridView.Columns.Clear();
AddColumnsToGrid();
this._scriptManager = ScriptManager.GetCurrent(this.Page);
if (_scriptManager == null) // Add a script manager
{
this._scriptManager = new ScriptManager();
this._scriptManager.EnablePartialRendering = true; // needed for Update Panel to work
this._scriptManager.EnableScriptLocalization = true;
this.Controls.AddAt(0, this._scriptManager); // Script Manager should be the first control on the form
}
this.SetupSharePointAjax();
Hi,
I have a RadGrid that's populated by an sql data source (called "sdsInfoTable" which reads from an SQL Table called "InfoTable").
A GridDropDownColumn in the RadGrid is used for editing/updating one of the fields in InfoTable ("Relationship").
The values in the RadComboBox used in the GridDropDownColumn populates from another sql datasource ("sdsRelationships").
Here's my issue: When the RadGrid is not in EditMode, the Relationship column is simply displaying the first value obtained from sdsRelationships, instead of the value it should display from sdsInfoTable. How can I make it so that it displays the correct value?
Here's some of the code:
| <telerik:GridDropDownColumn DataField="Relationship" HeaderText="Relationship" SortExpression="Relationship" |
| UniqueName="Relationship" DataSourceID="sdsRelationships" ListTextField="Relationship" ListValueField="RelationshipID"> |
| </telerik:GridDropDownColumn> |
| <asp:SqlDataSource ID="sdsRelationships" runat="server" ConnectionString="<%$ ConnectionStrings:InfoConnectionString %>" |
| SelectCommand="SELECT [RelationshipID], [Relationship] FROM [Relationships]"></asp:SqlDataSource> |
| <asp:SqlDataSource ID="sdsInfoTable" runat="server" ConnectionString="<%$ ConnectionStrings:InfoConnectionString %>" |
| SelectCommand="SelectInfoTable" SelectCommandType="StoredProcedure"> |
| <SelectParameters> |
| <asp:QueryStringParameter DefaultValue="1" Name="RequestID" QueryStringField="rid" |
| Type="Int32" /> |
| </SelectParameters> |
| </asp:SqlDataSource> |

OnClientSelectedIndexChanged
="HandleEndChanging"
function
HandleEndChanging(sender, eventarqs) {
var item = eventarqs.get_item();
alert("Change to new item('" + sender.get_text() + "')");
alert(0)
eventarqs.set_cancel(true); // Object doesn't support this property or method
alert(1)
}
alert(0) is called correctly and then eventarqs.set_cancel(true); generates a javascript error
"Object doesn't support this property or method"
Am I missing something here?
Thanks,
Toby