Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
133 views
When a user clicks on "Table Wizard" it brings up the dialog box for the Table Wizard. However, it throws a 'Sys' is undefined javascript error. At this point the tabs within the dialog box do not do anything when clicked, nor does the first tab "Table Design" show anything other than a few labels.

Any ideas? I have the following httpHandlers within my web.config:

<add path="Telerik.Web.UI.DialogHandler.aspx" type="Telerik.Web.UI.DialogHandler, Telerik.Web.UI, Version=2008.03.1314.20, Culture=neutral, PublicKeyToken=121fae78165ba3d4" verb="*" validate="false" /> 
      <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 

haven't been able to figure it out. I also have the "Editor Dialogs" folder within my web root. and I have the xml tools file within the web root as well. Am I missing some files within my web root, or is it a specific setting or something I'm missing?

Thanks.
Lini
Telerik team
 answered on 04 Sep 2009
1 answer
159 views
I got a treeview control which shows company organization, for instance
+CEO
         +Finance Departmen
         +Human Resource Manager
                +Human resource chief
                        +human resource departmen employees
         +Community Services

but when I created treeview it shows like +CEO we have to expand it to see below nodes, I want to set treeview node depth so we can see other departmen under CEO. How can I set node depth of treeview so some of them  come already expanded.
Thank you in advance
Søren Hartig
Top achievements
Rank 2
 answered on 04 Sep 2009
2 answers
190 views
hi 
Question 1
 In my webapplication i have telerik menu.when i was click button i will open a rad window(popup width is 800,600)
 when i was open a rad window i have  tranprency problem in rad menu.
Rad menu is coming to the front. How to I solve this problem 

Question 2

function

 

OpenPositionedWindow(oButton, url, windowName)

 

{

 

var oWnd = window.radopen(url,windowName);

 

}

 

 

 

function CallLetter(ResumeIds)

 

{

 

 

var oWnd = radopen("hrComments.aspx?ResumeIds=" +ResumeIds, "RadWindow1");

 

oWnd.center();

 

 

}

 

function TimeSlot(ResumeIds)

 

{

 

 

var oWnd = radopen("TimeSlote.aspx?ResumeIds=" +ResumeIds, "RadWindow1");

 

oWnd.center();

}



 

<asp:Button runat="server" ID="btnTime" OnClientClick="TimeSlot('12'); return false;" Text="Time Slot" />

 

 

<asp:Button runat="server" ID="Button1" OnClientClick="CallLetter('12'); return false;" Text="Send Call Letter" />

 

 

 

<telerik:RadWindowManager ID="RadWindowManager1" Width="800px" Height="600px" runat="server" VisibleStatusbar="true" Animation="None" Skin="Office2007" Modal="true"

 

 

Title="Details For this Person" >

 

 

</telerik:RadWindowManager>

 

I use the following code to open rad window.but i want change the hight and width dynamically
like when i was click  time slot button that window size is (400,400) and when i was click send call letter button that window siz is
(800,600) how to i  change my code




Regards

Friend
TonyG
Top achievements
Rank 1
 answered on 04 Sep 2009
3 answers
192 views
Hi,

I'm trying to make a simple webpage that will update time every second using the new XmlHttpPanel callback. I'm a noob on Javascript, so I ask for your help.

Here's my markup:

<script type="text/javascript"
    function UpdateTime(sender, args) { 
        var panel = $find("<%=RadXmlHttpPanel1.ClientID%>"); 
        panel.set_value(); 
        window.setInterval(UpdateTime, 1000); 
    } 
 
</script> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Default"
</telerik:RadAjaxLoadingPanel> 
<telerik:RadXmlHttpPanel ID="RadXmlHttpPanel1" runat="server" LoadingPanelID="RadAjaxLoadingPanel1" 
    Value="test" OnServiceRequest="XmlHttpPanel_ServiceRequest"
    <asp:PlaceHolder ID="ph" runat="server"></asp:PlaceHolder> 
</telerik:RadXmlHttpPanel> 
 
<script type="text/javascript"
    UpdateTime; 
</script> 
 

and here's my codebehind:

    Protected Sub XmlHttpPanel_ServiceRequest(ByVal sender As Object, ByVal e As RadXmlHttpPanelEventArgs) 
        Dim val As String = e.Value 
        ph.Controls.Add(New LiteralControl("<font color='#000000'>" & Now.ToString & "</font>")) 
    End Sub 

The time is updated on pagerefresh, but I can't figure out how to make it update automatically every second.

How do I do that and what is the best approach?

Thanks!
Morten
Pero
Telerik team
 answered on 04 Sep 2009
3 answers
116 views
Can the RadMenu control use the SPHierarchyDataSourceControl supplied in a MOSS 2007 Team site? As I cannot get it to render the text & url it just shows me the Microsoft.Sharepoint.Navigation.SPHierarchyNode.
Philip Nash
Top achievements
Rank 1
 answered on 04 Sep 2009
4 answers
210 views

Hi there,

I'm using the RadEditor to submit documents via cut and paste method from MS Word and other RichText editors; However, the formatting gets corrupted on paste. Its as if the RadEditor doesn't pickup the fonts I'm using in some of the documents, and with some documents even the Bulleted Lists don't display like they should in the MS Word document.

How do I prevent the RadEditor from doing any sort of formatting on the content. I want the documents to be as they are when copied and pasted into the RadEditor.


I have disabled any sort of formatting or stripping that is obvious and built into the properties that I could find on the surface of the RadEditor control.


Please give me a hand, I would love to get to the bottom of this issue as soon as humanly possible. (unless you have a faster method)
Martin
Telerik team
 answered on 04 Sep 2009
1 answer
56 views
Hi,

I was wondering if anyone can help me with a problem that I am having with the ImageManager in RadEditor. I am using it inside a webpart and was working fine untill I installed the 2009 Q2 RadControls.
The problem that I am having is that the URL of the file path is not being displayed, I cannot see any of the folders/files in the specified path . I specifically set the uploadPaths, ViewPaths, and DeletePaths properties as shown here: http://www.telerik.com/support/kb/aspnet-ajax/editor/uploading-images-to-the-server-upload-tab-is-disabled.aspx 

Please let me know if there is a property that I am forgetting to set or I if am missing something.

_a_radEditor =

new RadEditor();

 

_a_radEditor.ID =

"a_RadEditor";

 


 

 

_a_radEditor.ImageManager.UploadPaths =

new string[] { tempURL };

 

_a_radEditor.ImageManager.ViewPaths =

new string[] { tempURL };

 

_a_radEditor.ImageManager.DeletePaths =

new string[] { tempURL };

 

 

 

 

Thank You,
Alex

Stanimir
Telerik team
 answered on 04 Sep 2009
3 answers
409 views

I have an existing ASP.NET web application built in VS 2005 (.NET2.0) that contains existing Telerik ASP.NET Q1 2009 controls on the content page (RadAjaxManager, RadGrid plus a number of asp:dropdown, asp:ListBox and asp:Panel controls). The master page contains a RadMenu control, but I don't believe this is causing my issue.

My issue is that I am now planning on replacing some of the dropdown and ListBox controls with one telerik:TreeView control (ASP.NET AJAX Q2 2009 NET20). My understanding is that I need the telerik:RadScriptManager as well to get this the tree view to work. Unfortunately the page loads with an error "A compilation error has occurred.". In a test page without the classic controls the page loads OK, and the exisitng works fine without the new controls. In attempting to debug the code, I never find where the issue is. Just trying to load the page just kick me right out. The event viewer logs the below warning:

Event Type: Warning
Event Source: ASP.NET 2.0.50727.0
Event Category: Web Event
Event ID: 1310
Date:  2009-08-31
Time:  11:23:24 AM
User:  N/A
Computer: CA22665-FKOEH04
Description:
Event code: 3007
Event message: A compilation error has occurred.
Event time: 8/31/2009 11:23:24 AM
Event time (UTC): 8/31/2009 3:23:24 PM
Event ID: c9bb7c1195fb49c989b19c780fe66e2c
Event sequence: 21
Event occurrence: 1
Event detail code: 0
 
Application information:
    Application domain: /LM/w3svc/1/ROOT/PIMS2008-5-128962057617439474
    Trust level: Full
    Application Virtual Path: /PIMS2008
    Application Path: D:\TFS\PIMS\PIMS - Current\solutions\wwwroot\PIMS_2008\
    Machine name: CA22665-FKOEH04
 
Process information:
    Process ID: 4340
    Process name: aspnet_wp.exe
    Account name: CA22665-FKOEH04\ASPNET
 
Exception information:
    Exception type: HttpCompileException
    Exception message: D:\TFS\PIMS\PIMS - Current\solutions\wwwroot\PIMS_2008\UserProfileTreeViewTest.aspx(203): error BC30456: 'cbViewLocation_CheckedChanged' is not a member of 'ASP.userprofiletreeviewtest_aspx'.
 
Request information:
    Request URL: http://localhost/PIMS2008/UserProfileTreeViewTest.aspx
    Request path: /PIMS2008/UserProfileTreeViewTest.aspx
    User host address: 127.0.0.1
    User: fkoehlmann
    Is authenticated: True
    Authentication Type: Forms
    Thread account name: CA22665-FKOEH04\ASPNET
 
Thread information:
    Thread ID: 1
    Thread account name: CA22665-FKOEH04\ASPNET
    Is impersonating: False
    Stack trace:    at System.Web.Compilation.BuildManager.CompileWebFile(VirtualPath virtualPath)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultInternal(VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVPathBuildResultWithNoAssert(HttpContext context, VirtualPath virtualPath, Boolean noBuild, Boolean allowCrossApp, Boolean allowBuildInPrecompile)
   at System.Web.Compilation.BuildManager.GetVirtualPathObjectFactory(VirtualPath virtualPath, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath(VirtualPath virtualPath, Type requiredBaseType, HttpContext context, Boolean allowCrossApp, Boolean noAssert)
   at System.Web.UI.PageHandlerFactory.GetHandlerHelper(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.UI.PageHandlerFactory.System.Web.IHttpHandlerFactory2.GetHandler(HttpContext context, String requestType, VirtualPath virtualPath, String physicalPath)
   at System.Web.HttpApplication.MapHttpHandler(HttpContext context, String requestType, VirtualPath path, String pathTranslated, Boolean useAppConfig)
   at System.Web.HttpApplication.MapHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details:

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.



I have reviewed some of the forums messages and it seems that some people have had difficulty when combining the older classic controls with the newer ajax ones, but I didn't see anything like this. Do I need to update my old controls? If so what issue will I encounter when upgrading the RadGrid?

Thanks, Fred.

Veselin Vasilev
Telerik team
 answered on 04 Sep 2009
1 answer
254 views
Hi,

The items transfer fine between the two list boxes unless its the last item in the list box, where I get the following error:

Error occurs on first line of RadListBoxContacts_Transferred (VB code)
e.SourceListBox.SelectedItem.DataKey

Error:
'Object reference not set to an instance of an object.'

 please see code below:

ASPX
<telerik:RadListBox ID="RadListBoxContacts" runat="server" Skin="Telerik" AutoPostBack="true" 
                                                                AutoPostBackOnTransfer="true" DataKeyField="contactID" DataTextField="Description" 
                                                                Width="240px" Height="200px" AllowTransfer="true" TransferToID="RadListBoxServiceContacts" 
                                                                ButtonSettings-ShowTransferAll="false" EnableViewState ="true">  
                                                                <ButtonSettings ShowTransferAll="False" /> 
                                                            </telerik:RadListBox> 
 
 
<telerik:RadListBox ID="RadListBoxServiceContacts" runat="server" Skin="Telerik" 
                                                                DataKeyField="contactID" DataTextField="Description" Width="245px" Height="200px" 
                                                                AutoPostBack="True" EnableViewState ="true" > 
                                                            </telerik:RadListBox> 

VB
Private Sub RadListBoxServiceContacts_Deleted(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadListBoxEventArgs) Handles RadListBoxServiceContacts.Deleted  
        Session("Avalability") = "Delete" 
        Me.lblServiceContactDescription.Text = "Select a contact to view details" 
        Me.lblServiceContactDetails.Text = "" 
    End Sub 
    Private Sub RadListBoxServiceContacts_Inserted(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadListBoxEventArgs) Handles RadListBoxServiceContacts.Inserted  
        Session("Avalability") = "Insert" 
        Me.lblContactDescription.Text = "Select a contact to view details" 
        Me.lblContactDetails.Text = "" 
    End Sub 
 
    Private Sub RadListBoxContacts_Transferred(ByVal sender As ObjectByVal e As Telerik.Web.UI.RadListBoxTransferredEventArgs) Handles RadListBoxContacts.Transferred  
 
        Dim contactID As String = CStr(e.SourceListBox.SelectedItem.DataKey)  
        Dim serviceID As String = CStr(Me.RadListBoxServices.SelectedItem.DataKey)  
 
        If CStr(Session("Avalability")) = "Delete" Then 
            objWebService.removeContactFromService(contactID, serviceID)  
        ElseIf CStr(Session("Avalability")) = "Insert" Then 
            objWebService.addContactToService(contactID, serviceID)  
        End If 
        Me.RadListBoxContacts.Items.Clear()  
        Me.RadListBoxServiceContacts.Items.Clear()  
 
        Me.RadListBoxServiceContacts.DataSource = objWebService.getServicesContacts(CInt(Me.RadListBoxServices.DataKeys.Item(Me.RadListBoxServices.SelectedIndex)))  
        Me.RadListBoxServiceContacts.DataBind()  
 
        Me.RadListBoxContacts.DataSource = objWebService.getEmployeeContactsNotInService(CInt(Me.RadListBoxServices.DataKeys.Item(Me.RadListBoxServices.SelectedIndex)), Me.RadComboBoxSelectedEmployee.SelectedValue, "")  
        Me.RadListBoxContacts.DataBind()  
 
    End Sub 

The last four lines are executed in the Page_Load to initially populate the list boxes

As can be seen above the list boxes are re-bound to the database via a web service every time an item is inserted or deleted.

Any help or pointes in the right direction would be great.

Many Thanks.
Genady Sergeev
Telerik team
 answered on 04 Sep 2009
3 answers
207 views
The RadTreeNode js class has the function toJsonString, but what good is it without a function to deserialize it back into a RadTreeNode object.

I tried using _loadFromDictionary but it didn't seem to work and it is a private method.

Am I missing something?

Thanks
Atanas Korchev
Telerik team
 answered on 04 Sep 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?