Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
94 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
168 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 Object, ByVal 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
101 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
200 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
100 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
1 answer
148 views
Hi,

My PaneBar works with ExpandMode="SingleExpandedItem". When I select an item it is highlighted. When I hover over various items within the same group it is highlighted correctly all the time. But when I expand another group and then - expand back the previous one, the selected item is no longer highlighted.
Is it possible to keep the selected item highlighted in this context?
All above is at the client side only.
I know that I can manually set some properties of the selected item in OnItemClicked event handler - but it would be great to use the built-in functionality.

Regards
Tomasz
Paul
Telerik team
 answered on 26 Oct 2009
8 answers
205 views
Hi, It might be very simple question but I am confusing.

On scheduler, depends on user selection recurrence we are storing data in Database.
When I do reopen that webpage, on some click event I am reloading that recurrence data from database and trying to bind it to control.

I am using code like this when binding to control.

RadScheduler.DataStartField =

Convert.ToDateTime(partyUnavailability.StartDate).ToString();

RadScheduler.DataEndField =

Convert.ToDateTime(partyUnavailability.EndDate).ToString();

RadScheduler.DataSourceID = partyUnavailability.Id.ToString();

I am giving all necessary fields to bind it control. Even though its not displaying on scheduler.

Please Correct  me if  I am wrong.

-Rama

Mark
Top achievements
Rank 2
 answered on 26 Oct 2009
4 answers
201 views
I've setup a radgrid to open in edit mode but also want the focus to be on a specific text box "Allowed" on the first row of the radgrid.The following code sets the radgrid to edit, but i have been unsuccessful in getting any of the focus routines to work correctly.

 

Private Sub RadGrid1_PreRender(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadGrid1.PreRender

 

 

    If Not IsPostBack Then

 

 

        For Each item As GridItem In RadGrid1.MasterTableView.Items

 

 

            If TypeOf item Is GridEditableItem Then

 

 

                Dim editableItem As GridEditableItem = CType(item, GridDataItem)

 

                editableItem.Edit =

True

 

 

            End If

 

 

        Next

 

        RadGrid1.Rebind()

 

    End If

 

 

End Sub

Any suggestions would be appreciated.

 

Paul
Top achievements
Rank 1
 answered on 26 Oct 2009
4 answers
208 views
I'm updating an objectdatasource.  When the grid containing the htmleditorcolumn is outside the ajax panel it works fine.  When the grid is inside the radajaxpanel the htmleditorcolumn is the only column that will not update the datasource.  I am using version 2008.2 723. 

After further testing, it appears to always work in IE but it behaves as described above in Firefox and Safari.

Thanks,

Mike
Mike
Top achievements
Rank 1
 answered on 26 Oct 2009
1 answer
151 views
I am working through this tutorial from the RadControls courseware, when executing the script "NetworkServicePermissions.sql", the following sql error(s) occur:
Msg 15259, Level 16, State 1, Line 5
The DEFAULT_SCHEMA clause cannot be used with a Windows group or with principals mapped to certificates or asymmetric keys.
Msg 15151, Level 16, State 1, Line 8
Cannot find the user 'NETWORK SERVICE', because it does not exist or you do not have permission.
This limitation is either by design or a bug in TSQL, do you currently have a work-around for this script?


Veselin Vasilev
Telerik team
 answered on 26 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?