Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
326 views
Hi,
I am using Radgrid, I have to add tree in  every row. Now i am trying to use following code

   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(); 
        } 

but here i can't find the value for id. So could please help me how to find the cell value in ItemDataBound.

Regards,
Sagar
Dimo
Telerik team
 answered on 17 Sep 2008
2 answers
208 views

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

Jerome
Top achievements
Rank 1
 answered on 17 Sep 2008
3 answers
121 views
Hello,

First of all i want to say this is the greatest ASP.NET component on earth.

I created a menu at design but  discovered that I cannot access the ItemClient event of the radMenu. I was able to access same menu when I created it with server-side code. Is there another way to access menuCreated event after creating the menu in design time. I need to decided whether to enable/disable a menuItem.

Creating all my menu at design time will be very tedious for me.
Shinu
Top achievements
Rank 2
 answered on 17 Sep 2008
1 answer
100 views
Hi,

I have two radcomboBoxs in my page.
I would like to compare the selected value in the first combo with the second combo selected value.
What I did is 

<

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

Rosi
Telerik team
 answered on 17 Sep 2008
3 answers
116 views

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();


 

Sebastian
Telerik team
 answered on 17 Sep 2008
1 answer
154 views

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> 


I really would appreciate any help in sorting this out. If you need more clarification, just ask :).
Yavor
Telerik team
 answered on 17 Sep 2008
3 answers
258 views
I've got a somewhat wild idea that I would like to propose...

Google Calendar and Outlook 2007 both give the ability to "subscribe" to an internet calendar.  Would it be possible to write an http handler that would "expose" events in the Telerik Scheduler database and provide a read only calendar for Outlook and Google Calendar?

Disclaimer: I have not yet used Telerik Scheduler but plan to dive in once we are out of BETA.  I also do not have a very strong understanding of the .ical format.

Some immediate questions that come to mind:

1. How would recurring events work? (would the http handler automatically "fill in" events for the next 365 days, for example?

2. Is there any way to protect these calendars? (My hunch is no and that is OK)

Some Benefits:

1. Once the handler is set up, you could literally provide step by step instructions for your users on the site to add the calendar to Google or Outlook and it would be a set it and forget it type of deal.

2. I have a client who is constantly trying to juggle his schedule and if he could just "overlay" events on a web application with his Exchange calendar all from Outlook he would be a very happy camper.
Robert Strazzarino
Top achievements
Rank 1
 answered on 17 Sep 2008
1 answer
95 views
I am using RadGrid ASP.NET AJAX  for telerik version q2.
I open the radgrid in a popup. Now when I tried to filter by any column the I got this javascript error.

Sys.ArgumentOutOfRangeException: Value must be an integer.
Parameter name x.
Actual value value was NaN
.

Kindly suggests me for the above error
Vlad
Telerik team
 answered on 17 Sep 2008
1 answer
132 views
Hi,

We are using Telerik verion 2008.1.619.35
For radComboBox

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

Rosi
Telerik team
 answered on 17 Sep 2008
1 answer
112 views
Dear All,

How to perform hiding of the columns in the Telerik Grid?

Kindly let me know the help documentation.

Thanks a lot in advance
Princy
Top achievements
Rank 2
 answered on 17 Sep 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?