Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
85 views
This seems like an issue others must have, so I apologize if this has been covered somewhere already...  I noticed that when deleting a flash object from design mode in Firefox that it only removes the "embed" portion and not the "object".  So it appears to have removed the SWF, but in IE the object code still renders.  In Firefox there seems to be no way to remove a SWF from design mode? I was able to test this in your "Editor/Save in Database" example page. 

Cheers,
CG
Lini
Telerik team
 answered on 14 Dec 2009
25 answers
389 views
I am having a problem exporting from my grid to Excel.  When issuing the export it creates the file for export and I can save the excel file to disc and open from disc fine. However when I try to open the document directly from the server response I get an error as shown in the file attached to this forum post.

I am not sure whats going on because this used to work fine.  And it's happening across the application, not specific to 1 grid.  I know that there have been 2 updates to the telerik controls since these were implemented...  the most recent version prior to Q3.  and Q3.

I have a link button on the commanditem bar and use the ItemCommand event for the export as:

Protected Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
COMMAND_NAME = e.CommandName

Select Case COMMAND_NAME

    Case "RemoveFilters"
 bResetSelections = True
    Case RadGrid.ExportToExcelCommandName
 Dim t As DateTime = Now()
 bExport = True
 Dim sHTML As String = ""
 sHTML += "<div align='left' style='font-weight:bold;color:Blue;font-size:large'>Regulation Tracking System</div>"
 sHTML += "<div align='left' style='font-weight:bold;color:Blue'>Regulation Records Data Dump</div>"
 sHTML += "<div align='left' style='font-weight:bold;color:Blue'>" + t.ToLongDateString() + "</div>"
 sHTML += "<div>&nbsp;</div>"
 RadGrid1.MasterTableView.Caption = sHTML
 RadGrid1.ExportSettings.FileName = RTS.GetFileName("RegulationRecords")
 RadGrid1.ExportSettings.IgnorePaging = True
 RadGrid1.ExportSettings.ExportOnlyData = True
 RadGrid1.ExportSettings.OpenInNewWindow = True
 RadGrid1.MasterTableView.ExportToExcel()

End Select

End Sub




Mark Galbreath
Top achievements
Rank 2
 answered on 14 Dec 2009
3 answers
255 views
Hi

I'm implementing a custom FileBrowserContentProvider so that I can access images from a db instead of a filesystem and it is all working fine. I convert the the db images to relative paths and insert them in the page. The folders and files all load up correctly.

The only problem I have is that when I select an image and click on the Image Manager button I cannot get it to open the folders to the selected image. And yet if I navigate to the folder the image is in, the image is shown as selected and shows in the preview pane.

So the image is selected properly but it does not seem to be firing ResolveRootDirectoryAsTree to open the folders in the path to it.

The code I got from telerik has notes that indicate "all subdirectories contained in the SelectedUrl property are loaded"

But they don't load.

Is this a bug or have I missed something?

 

''' <summary>

 

 

''' Loads a root directory with given path, where all subdirectories

 

 

''' contained in the SelectedUrl property are loaded

 

 

''' </summary>

 

 

''' <remarks>

 

 

''' The ImagesPaths, DocumentsPaths, etc properties of RadEditor

 

 

''' allow multiple root items to be specified, separated by comma, e.g.

 

 

''' Photos,Paintings,Diagrams. The FileBrowser class calls the

 

 

''' ResolveRootDirectoryAsTree method for each of them.

 

 

''' </remarks>

 

 

''' <param name="path">the root directory path, passed by the FileBrowser</param>

 

 

''' <returns>The root DirectoryItem or null if such does not exist</returns>

 

 

Public Overloads Overrides Function ResolveRootDirectoryAsTree(ByVal path As String) As DirectoryItem

 

 

' The files are added in ResolveDirectory()

 

 

 

 

Dim returnValue As New DirectoryItem(GetName(path), GetDirectoryPath(path), path, String.Empty, GetPermissions(path), Nothing, _

 

GetChildDirectories(path))

 

Return returnValue

 

 

End Function

 


thanks

Bob paul


Fiko
Telerik team
 answered on 14 Dec 2009
1 answer
134 views
Hello,

i'm trying to use related comboboxes.
At first glance everything seems to be fine.

But when i try to scroll to the end of Combo2 the combo flickers shortly and i have now duplicated entries in my Combo2.
The reason is that the "Combo2_ItemsRequested-event" is being called multiple times.

Does anybody have an explanation and a solution for this issue?

Thanks in advance!

here is my code

<telerik:RadComboBox ID="Combo1" Runat="server" Height="22px"  
     Width="340px" MaxHeight="150px" 
     Filter="Contains" 
     ExpandDelay="50" HighlightTemplatedItems="True" 
     OnClientSelectedIndexChanging="LoadCombo2" 
     OnItemsRequested="Combo1_ItemsRequested" 
</telerik:RadComboBox> 

<telerik:RadComboBox ID="Combo2" Runat="server" 
      MaxHeight="150px"  
      OnClientItemsRequested="ItemsLoaded" 
      OnItemsRequested="Combo2_ItemsRequested" 
      style="z-index: 1; position: relative; width: 340px; display:table-cell; top: 0px; height: 21px; left: 0px;"  
      ShowWhileLoading="False"
</telerik:RadComboBox>   

<script type="text/javascript"
    var cboSecond; 
     
    function pageLoad() { 
        cboSecond = $find("Combo2"); 
    } 
 
    function LoadCombo2(combo, eventArqs) { 
        var item = eventArqs.get_item(); 
         
        Combo2.requestItems(item.get_value(), false); 
    } 
 
    function ItemsLoaded(combo, eventArqs) { 
        if (combo.get_items().get_count() > 0) { 
            combo.set_text(combo.get_items().getItem(0).get_text()); 
            combo.get_items().getItem(0).highlight(); 
        } 
    } 
 
</script> 

code on the server side

Protected Sub Combo2_ItemsRequested(ByVal o As Object, ByVal e As Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs) Handles Combo2.ItemsRequested 
    If IsNumeric(e.Text) Then 
        Dim id As Long = System.Convert.ToInt32(e.Text) 
        LoadCombo2(id) 
    End If 
End Sub 
 
Private Sub LoadCombo2(ByVal id As Long) 
        Dim sqlda As SqlDataAdapter 
        Dim sqltbl As New DataTable 
        Dim sSQLAffiliates As String 
 
        sSQLAffiliates = GetAffiliateSQL(id) 
 
        sqlda = New SqlDataAdapter(sSQLAffiliates, sqlconn) 
        sqlda.Fill(sqltbl) 
 
        With Me.Combo2 
            .DataTextField = "Affiliate" 
            .DataValueField = "Affiliate_ID" 
            .DataSource = sqltbl 
            .DataBind() 
        End With 
End Sub 
Simon
Telerik team
 answered on 14 Dec 2009
1 answer
67 views
Hi,
 I am using Rad controls of 2008 version . I need to change the height between rows, i tried changing the style sheets  as  suggested in one of the columns.It is changed only in the 2009 version but in the 2008 version it does not change. Please provide solution for this. 

Thanks
abid
Yana
Telerik team
 answered on 14 Dec 2009
1 answer
124 views
Problem: I am unable to get RadControls to work in MOSS 2007.
Setup:
I have a Win2008 VM with Visual Studio 2008, MOSS 2007 and VSeWSS 1.3 CTP installed and latest service packs.
I have followed:
http://www.telerik.com/help/aspnet-ajax/moss-install-aspnet-ajax-35.html
To setup MOSS for AJAX 3.5, and double-checked my work

I am trying to use:
http://www.telerik.com/help/aspnet-ajax/create-ajax-enabled-sharepoint-webpart-radcontrols.html
To test the setup and capabilities. 

Problems:
1. Is this webpart intended for partial or full trust, or does it matter.
2. Bug: you do not declare the Label "label"
3. There are references missing.  Telerik.Web.UI and System.Web.Extensions most likely.

Results:
With Full Trust, after declaring the label and adding the references, I can build and deploy.  The webpart shows in the webparts list.  Adding it causes an error page with unexpected error.  No error reference, id, or description.  The only solution to getting that page to run again is retracting the webpart solution.

With partial trust, the same changes and references added, renamed, I can build and deploy.  Adding the webpart to a page generates an error popup on add: Unable to add selected web part(s).  TelerikQQ Web Part: Could not load file or assembly 'Telerik.Web.UI, Version=2009.3.1103.35, Culture=neutral, PublicKeyToken=121fae78165ba3d4' or one of its dependencies.  The system cannot find the file specified. 

Can I get a suggested next action to debug or test MOSS setup from those who have been able to get RadControls to deploy in MOSS?

Thanks!
Mark







Stanimir
Telerik team
 answered on 14 Dec 2009
3 answers
201 views
This is weird. 

For some reason the RadDateTimePicker is only showing the time selection, not the calendar popup.  Is there some style that get's rid of it? 

The funny thing is that I copied the markup from a simple project I have which does show it correctly.

In looking at the markup, I see the a tag for "open the calendar popup" being rendered; however, it's just not displaying.

UPDATE:
I just realized the time icon is actually rendering right on top of the calendar icon.  So, it is being displayed.. kind of.
chris lively
Top achievements
Rank 1
 answered on 14 Dec 2009
2 answers
104 views
Hi Telerik Team

I have just downloaded and installed Q3 2009 and I am experimenting with the custom tool strips to reduce the size of the tool bar in the editor, neat :-)

I tried adding Font Name and Real Font Size to one of my custom group tabs but neither of them seem to function. Are these two items not functional when added to a custoom tool strip group?
Paul Taylor
Top achievements
Rank 1
 answered on 14 Dec 2009
3 answers
242 views
Very simple:  I want to display an alert onError with a datepicker but, I don't want the alert to display when they leave the field.  Currently, the onError event fires for invalid dates when the user leaves the field.  I either need to supress that event during that case or make the onError method smart enough to know if it is called during a Blur of the field.

Thoughts?

- Adam
Pavlina
Telerik team
 answered on 14 Dec 2009
5 answers
109 views
Not sure how I should do this but I need to print schedule of current view Day/Week/Month

Peter
Telerik team
 answered on 14 Dec 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?