Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
166 views
Probably a really obvious mistake, but I have been scratching my head for a couple of hours now. I can't seem to get javascript to find my tree view, I started off in a splitter area, and then took it out, and have now created the most basic page I can to try and find a tree view with the Javascript API.

When I run this I get a Javascript error telling me

"Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET CLR 1.1.4322; InfoPath.2; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)
Timestamp: Mon, 16 Nov 2009 13:32:20 UTC

Message: 'tree' is null or not an object
Line: 67
Char: 18
Code: 0"
 

So it's not finding the tree, never mind the nodes. Any suggestions would be gratefully received.

Jon

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default4.aspx.cs" Inherits="LMS_LMS_Default4" %> 
<%@ Register Assembly="Telerik.Web.UI" 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 runat="server">  
    <title>Untitled Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
<asp:ScriptManager ID="ScriptManager1" runat="server">    
</asp:ScriptManager>    
    <div> 
    <telerik:RadTreeView ID="LessonTree" runat="server">    
    <CollapseAnimation Duration="100" Type="OutQuint" />    
    <ExpandAnimation Duration="100" />    
    <Nodes>    
        <telerik:RadTreeNode Text="Item1"</telerik:RadTreeNode>    
        <telerik:RadTreeNode Text="Item2"</telerik:RadTreeNode>    
        <telerik:RadTreeNode Text="Item3"</telerik:RadTreeNode>    
    </Nodes>    
</telerik:RadTreeView>    
 
 
<script type="text/javascript">    
   var tree = $find("<%= LessonTree.ClientID %>");  
   for (var i=0; i<tree.get_nodes().get_count();i++)     
   {           
       var node = tree.get_nodes().getNode(i);           
       alert(node.get_text());     
   }  
 
</script>    
 
    </div> 
    </form> 
</body> 
</html> 
 
Jonathan
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
108 views
I am trying to change the font size and weight of appointment text shown in scheduler from code behind but it is not taking any effect.

 protected void Page_Init(object sender, EventArgs e)
    {

        List<Appointment> list = (List<Appointment>)this.VacationScheduler.Provider.GetAppointments(this.VacationScheduler);

        foreach (Appointment p in list)
        {
            p.CssClass = "boldy";
            p.Font.Italic = true;
        }
    }

CSS:
-------
 <style type="text/css">
    
    .boldy
    {
        font-style:italic !important;
        font-weight:bold !important;
    }
    
    </style>

It is not taking effect.

Any suggestions?
Peter
Telerik team
 answered on 16 Nov 2009
1 answer
84 views
Hello,

I'm using RadGrid and I have following column:

 <telerik:GridTemplateColumn  HeaderText="MyField" DataType="System.String" >
          <ItemTemplate>
                     <%# getSomeInfo() %>
          </ItemTemplate>
</telerik:GridTemplateColumn>

'getSomeInfo' is not conected to any datasource field.

Please can you help me organise filter and sorting capability of this column

Best Regards
Zl. Rusev

Vlad
Telerik team
 answered on 16 Nov 2009
1 answer
122 views
Hello

I am trying to make a bar chart display the labels below the X axis where now 0, 1, 2 , 3, 4 etc numbers can be found and not on the bar how they are displayed by default.

Thanks in advance for your help
Mihai Dinculescu
Top achievements
Rank 1
 answered on 16 Nov 2009
2 answers
153 views
Hi guys,

Is there a way to Persist RadScheduler Appointments to a file or something ( Serialization).

I don't want to create a schema for the appoitments in the DB or putting them in an XML schema storage.

Any built-in Serialization for it?

Thanks.


Joseph
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
90 views
I'd like to implement my own version of a popup when the user mouses over an appointment on the schedule control.  I've tried adding it to the attributes collection on both the Appointment object and the AppointmentControl object, but neither of these has worked.  Is there a way to add this attribute to appointments?
Peter
Telerik team
 answered on 16 Nov 2009
1 answer
287 views
Hi,
    I have a Rad Grid with enableviewstate=false. It calls all the methods, so it does get data at the backend. I debugged and check all the methods. As there is no view state so i have to generate the Grid and then fill it with new data on pageindexchnaged. It does call all the methods in proper way.
   Issue is that it does not show anything, not even header or page, does even say that it does not have data like it usually do first time. I am working inside MS CRM 4 IFrame. SO, no viewstate on the whole app. It may be issue due to ajax ?
  So, what could go wrong ?

Regards,

Osman
Osman Saeed
Top achievements
Rank 1
 answered on 16 Nov 2009
1 answer
139 views
I'm using RAD sheduler in Time line view. My Appointment subjects are little bit long and I need to expand the subject when it gets overflow within cell.
Following image shows the existing 1 and what I needed.

http://img690.imageshack.us/img690/1329/imageim.png


How can I auto-expand these cells.
Peter
Telerik team
 answered on 16 Nov 2009
1 answer
109 views
I am using a radgrid to display some data, and I am trying to figure out which method would be better to use.
Here are my preferences:
I would like to use a webservice to retrieve the data.
I would like to be able to use the server side OnItemDataBound event to process the data, changing date formats, enabling an image column, etc.
I would like to use some form of an AJAX request for the paging and sorting without the postback flashing.

Can I accomplish this with the radgrid?
Sebastian
Telerik team
 answered on 16 Nov 2009
1 answer
85 views
Hi,

I am using a 2- level hierarchical

 

grid.

 

Requirement is "to open different radwindows with different unq_id on doubleclick of a row in Master table and detail table of a hierarchical grid."
I am using  Javascript for this purpose.
I am able to get master grid rowindex and its unq-id (unique cloumn value) but I am not able to do this for DetailsView.
I need this unq-id because using this unq_d I have to show recorsd in the radwindow to view.

Can you please help me......I am using old  " Telerik.Webcontrols namesapce."

<ClientEvents OnRowDblClick="RowDblClick" />

 

 

function RowDblClick(rowIndex)

 

{

 

var grid = window["<%= RadGrid1.ClientID %>"];

 

 

 

var row = grid.MasterTableView.Rows[rowIndex];   // Clicked row

 

 

 

var value = row.KeyValues['UNQ_ID'];

 

window.radopen(

 

"Segment1.aspx?UNQ_ID=" + value , "UserListDialog");

 

 

}

 

 

 

 

 

 

<radW:RadWindowManager ID="RadWindowManager1" runat="server" Skin="Blue">

 

 

 

<Windows>

 

 

 

<radW:RadWindow ID="UserListDialog" runat="server" Title="Editing record" Height="400px"

 

 

 

Width="300px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true" />

 

 

 

</Windows>

 

 

 

</radW:RadWindowManager>

 

 

 

 

Thanks.
Priyanka

 

 

 

 

 

 

Tsvetoslav
Telerik team
 answered on 16 Nov 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?