Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
341 views
How can I Put Different colors for weekdays in Appointment...LIke sunday toSaturday..
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2009
1 answer
145 views
I wan to put different colors for days like sunday=green ,monday=blue tuesday=red wenesday=black ............................... like this.. how can it possible..
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2009
1 answer
173 views
hi

I am having this error:
Object reference not set to an instance of an object.

This is my aspx code:
  <asp:DataList ID="DataList1" runat="server"    
                        DataSourceID="sdsRoomSelect" RepeatColumns="7"   
                        RepeatDirection="Horizontal">  
                        <ItemTemplate> 
                           <br /> 
                            <p/> 
                            &nbsp;<asp:Button ID="Button1" CommandName="select" runat="server"  Text='<%# Eval("Room_No") %>' Width="50px" Height="50px" /> &nbsp;  
                            <br /> 
                            <br /> 
                        </ItemTemplate> 
                    </asp:DataList> 
 This is my Code-Behind:
Protected Sub DataList1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataListCommandEventArgs) Handles DataList1.ItemCommand  
        If e.CommandName = "select" Then  
            Dim ddl As Button = TryCast(DataList1.FindControl("Button1"), Button)  
            Dim strValue As String = ddl.Text  
            Response.Cookies("roomno").Value = strValue 
          End If  
    End Sub 
 Room No is not a primary key. How do I get the value of the room no when click?. Thanks
Shinu
Top achievements
Rank 2
 answered on 27 Oct 2009
1 answer
98 views
I am using a radgrid with the popup editor. My editor has 2 radcombo boxes on it that I need to load from server side. What is the appropriate way to do this?
Princy
Top achievements
Rank 2
 answered on 27 Oct 2009
1 answer
72 views
I'm trying to measure int on a line graph. I understand how to flip the orientation from vertical to horizontal on each chart. However, I'm in a situation where an int of 1 should be higher (not lower) than an int of 5.

Any thoughts?

Thanks in advance.
Schlurk
Top achievements
Rank 2
 answered on 26 Oct 2009
4 answers
88 views
Hi there,

I have implemented a custom provider for my RadScheduler, and everything appears to be working - at least, the overridden methods in that provider are being called when the scheduler loads up.
But in order to get it working completely, I have to have access to the public interface of my custom provider from the form on which my scheduler appears.  And that is a lot trickier than I had expected.  See, the scheduler has a "ProviderName" property, which is set, as expected, to "MyCustomProvider1".  But the Provider property does not refer to an instance of the MyCustomProvider class!  scheduler.Provider.Description even says "MyCustomProvider1" - but how do I get access to the MyCustomProvider object itself?

Thanks,
Shaul
Shaul Behr
Top achievements
Rank 1
 answered on 26 Oct 2009
6 answers
162 views
Ive set the height tag and it applies the height to some of the FileExplorer but it still extens another 500px or more below where I tell it to stop no matter what the height tag says.  Even applying a css with the height of the HTML/Form/body its still extanding past the area but it doesnt show (Though if there were items that went past the hight they wouldnt be viewable)

Picture - http://mmo-rpg.com/fileexp.png

<%@ Page Title="" Language="VB"  AutoEventWireup="false" CodeFile="mtr_files.aspx.vb" Inherits="bradford_mtr_mtr_files" %> 
<html> 
<head> 
<script type="text/javascript">     
function fileOpen(sender, args)     
{  
    var wndMng = sender.get_windowManager();  
    wndMng.set_width(600); //set desired width     
    wndMng.set_height(400); //set desired height  
    wndMng.set_behaviors(Telerik.Web.UI.WindowBehaviors.Resize + Telerik.Web.UI.WindowBehaviors.Move + Telerik.Web.UI.WindowBehaviors.Close);  
}  
 
</script>    
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">  
    </telerik:RadScriptManager> 
    <telerik:RadFileExplorer ID="RadFileExplorer1" runat="server" Height="205px" 
        Skin="Office2007" VisibleControls="TreeView, Grid, Toolbar, ContextMenus" onclientfileopen="fileOpen">  
    <Configuration SearchPatterns="*.*"></Configuration> 
    </telerik:RadFileExplorer>   
    </form> 
</body> 
</html> 

Imports System.IO  
 
Partial Class bradford_mtr_mtr_files  
    Inherits System.Web.UI.Page  
 
    Protected Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Init  
 
        Dim heatcode As String = Request.QueryString("mtr_heatcode")  
        Dim folder As String()  
 
        If IO.Directory.Exists("c:\inetpub\wwwroot\bradford\mtr\mtr_docs\" + heatcode) = False Then 
            folder = New String() {"~/bradford/mtr/mtr_docs/"}  
            'IO.Directory.CreateDirectory("c:\inetpub\wwwroot\bradford\mtr\mtr_docs\" + heatcode)  
        Else 
            folder = New String() {"~/bradford/mtr/mtr_docs/" + heatcode}  
        End If 
 
        RadFileExplorer1.Configuration.ViewPaths = folder  
        RadFileExplorer1.Configuration.UploadPaths = folder  
        RadFileExplorer1.Configuration.DeletePaths = folder  
        RadFileExplorer1.Configuration.MaxUploadFileSize = 10485760  
    End Sub 
 
End Class 
 
McKinzie
Top achievements
Rank 1
 answered on 26 Oct 2009
1 answer
96 views
I have a RadTreeView declared on an .ascx page.  All nodes are dynamically added later on a postback.  I'm getting the following error:

Failed to load viewstate.  The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request.  For example, when adding controls dynamically, the controls added during a post-back must match the type and position of the controls added during the initial request.

I'm able to get around this in the case where I will always have just one root node by adding a dummy node to the tree view on the initial load of the page, then clearing that node prior to adding the actual root node followed by its children.  I'm not able to get around it though in the case where I have multiple root nodes, because the number of root nodes depends on some user selections prior to a postback where the nodes are loaded.

I did just upgrade to the AJAX controls from the classic controls, and I was not having this problem with the classic controls.

Thanks,
Jason

Jason
Top achievements
Rank 1
 answered on 26 Oct 2009
2 answers
195 views
Hello
I'm doing the most basic instance of a Rad Window on my site, but the rad windows are not opening when I click the link.

 <telerik:RadWindow ID="RadWindow1"  Title="Sign Up" runat="server" NavigateUrl="~/Resources/SignUpModal.aspx" Modal="true" OpenerElementID="signup1" Width="300" Height="550">
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow2"  Title="Login" runat="server" NavigateUrl="~/Resources/LoginModal.aspx" Modal="true" OpenerElementID="login1" Width="300" Height="350">
            </telerik:RadWindow>
            <li><asp:HyperLink CssClass="signup" ID="signup1" runat="server" Text="signup" /></li>
            <li><asp:HyperLink CssClass="login" ID="login1" runat="server" Text="login" NavigateUrl="#" /></li>

see: http://keyconcepts.simpletick.com/
Randy
Top achievements
Rank 1
 answered on 26 Oct 2009
2 answers
97 views
HI guys,

I was using this sample to build a small prototype on a self referencing hireachical grid
http://www.telerik.com/help/aspnet-ajax/grdselfreferencinghierarchy.html

It works fine, the grid shows nested items.
My grid has these diferences then from the sample.

1) I have put the expand-collapse button on a GridButtonColumn
2) I am using an XML file to load the data into the grid
3) I have only one level children


The problem I am having is these
1) The child item records do not shift properly, that is the child item shows up in the next level without ample spacing up, and does not give the user an impression that it is a nested item (Please see attached screen shot)

2) I want to filter out the child items when I am showing the grid initially and only show the root items (I am using an xml file as my datsource)


Can some one help me on this,
Thanking you,
Nairooz Nilafdeen
Nairooz Nilafdeen
Top achievements
Rank 1
 answered on 26 Oct 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?