Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
190 views
I have a tooltip where the content is generated from a user control.  The tooltip is displayed when a user hovers over a node in the RadTree control.  The problem I have is when the tooltip appears on a node at the bottom of a tree, the page will scroll to the top and the tooltip will be displayed.  Is there a way to prevent the page from scrolling when the tooltip is displayed?

The usercontrol is loaded in the RadToolTipmanager1_AjaxUpdate event.  I am also using RadAjaxManager on the page but I guess it isn't configured correctly.

Thanks
Svetlina Anati
Telerik team
 answered on 09 Feb 2010
1 answer
88 views
When i hilight the cell in radscheduler in monthview how can i open the radtooltip.....
Vesko
Top achievements
Rank 2
 answered on 09 Feb 2010
7 answers
154 views
Hi,

I am using the RadControl for SharePoint 2007. I would like to check the following things

  • Currently i am using a custom radEditor dialog to open a Form page and when closed this form, the values will be populated to the RadEditor. Is it possible to open a Form without using a RadEditor Dialog. If yes, how can we pass back the values from the form to the RadEditor ?
  • Current are having two custom buttons to the RadEditor, these two buttons functionalities are added to the following js located in C:\Program Files\Common Files\Microsoft Shared\web server extensions\wpresources\RadEditorSharePoint\4.5.1.0__1f131a624888eeed\RadControls\Editor\Scripts\7_3_2\MOSSEditorTools.js. Is it possible to have these button functionality as a separate js file instead of touching the MossEditorTools.js. For your reference i have put below the code that we added in the js

var RadEditor1ClientObject = null;  
 RadEditorCommandList["AddNewVideo"] =  
    function CustomDialogCommand(commandName, editor, oTool)  
    {                
            RadEditor1ClientObject = editor;  
        editor.ShowDialog(  
            "/_layouts/Videos/Videos.aspx" 
            , null  
            , 1000
            , 450  
            , CustomDialogCallback  
            , null 
            , "Add New Video");

     };  
 
    function CustomDialogCallback(returnValue)  
    {  
        if (returnValue)  
        {         
            var flashContent ="<object codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\""+
                               " type=\"application/x-oleobject\" height=\""+returnValue.height+"\" standby=\"Loading Microsoft® Windows® Media Player components...\""+
                               " width=\""+returnValue.width+"\" align=\"middle\" classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\">"+
                            "<param name=\"FileName\" value=\"" + returnValue.url + "\">"+
                            "<param name=\"ShowStatusBar\" value=\"True\">"+
                            "<param name=\"DefaultFrame\" value=\"mainFrame\">"+
                            "<param name=\"autostart\" value=\"true\">" +
                            "<embed type=\"application/x-mplayer2\""+
                                " pluginspage = \"http://www.microsoft.com/Windows/MediaPlayer//""+
                                " src=\"" + returnValue.url + "\" align=\"middle\""+
                                " width="+returnValue.height+""+
                                " height="+returnValue.width+""+
                                " autostart=0"+
                                " showcontrols=0 >"+
                             "</embed>"+
                            "</object>";
       
           var filterIE = RadEditor1ClientObject.FiltersManager.GetFilterByName("IEKeepObjectParamsFilter"); 
         
           flashContent = (filterIE)?filterIE.GetDesignContent(flashContent):flashContent; 
           RadEditor1ClientObject.PasteHtml(flashContent);  
        }   
    } 
RadEditorCommandList["AddExistingVideo"] =  
    function CustomDialogCommand(commandName, editor, oTool)  
    {      
        RadEditor1ClientObject = editor;  
        editor.ShowDialog(  
            "/_layouts/Videos/Search/SearchVideo.aspx?ValidOpener=True" 
            , null  
            , 1000
            , 450  
            , CustomDialogAddExistingVideoCallback  
            , null 
            , "Add Existing Video");
    };  
 
    function CustomDialogAddExistingVideoCallback(returnValue)  
    {  
        if (returnValue)  
        {         
            var flashContent ="<object codebase=\"http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701\""+
                               " type=\"application/x-oleobject\" height=\""+returnValue.height+"\" standby=\"Loading Microsoft® Windows® Media Player components...\""+
                               " width=\""+returnValue.width+"\" align=\"middle\" classid=\"CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95\">"+
                            "<param name=\"FileName\" value=\"" + returnValue.url + "\">"+
                            "<param name=\"ShowStatusBar\" value=\"True\">"+
                            "<param name=\"DefaultFrame\" value=\"mainFrame\">"+
                            "<param name=\"autostart\" value=\"true\">" +
                            "<embed type=\"application/x-mplayer2\""+
                                " pluginspage = \"http://www.microsoft.com/Windows/MediaPlayer//""+
                                " src=\"" + returnValue.url + "\" align=\"middle\""+
                                " width="+returnValue.height+""+
                                " height="+returnValue.width+""+
                                " autostart=0"+
                                " showcontrols=0 >"+
                             "</embed>"+
                            "</object>";
       
           var filterIE = RadEditor1ClientObject.FiltersManager.GetFilterByName("IEKeepObjectParamsFilter"); 
         
           flashContent = (filterIE)?filterIE.GetDesignContent(flashContent):flashContent; 
           RadEditor1ClientObject.PasteHtml(flashContent);  
        }  
    } 

Kindly Advise,
Stanimir
Telerik team
 answered on 09 Feb 2010
3 answers
111 views
Hi,

I have a page which has a roddock control.
To this control I've  added a user control of RadScheduler.
Now, whenever I'm trying to add an event and clicking on the "more.." link to save the event, the edit form which is opened contains nothing but the two buttons (Insert/Update & Cancel). I already figured out that it happens because of a javascript error which occur when I click on the "more" link:

Error: missing : after property id
Line: 10, Column: 225
Source Code:
T\'","M/d/yyyy","h:mm tt","yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss","yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'","MMMM, yyyy","AM","PM","/",":",0],"_ViewRepeatableDays":{},"_ViewsHash":{ctl00_ContentPlaceHolder1_RadDocka0909fc7-a808-42a7-8109-567edf651784_C...

Can you advise, please?
Veselin Vasilev
Telerik team
 answered on 09 Feb 2010
4 answers
395 views
Hi,
I just want to change the listbox selected color and hover color, how can I change that ?
i tried searching but didn't find anything
Please help, its urjent
Regards
Arijit
Veselin Vasilev
Telerik team
 answered on 09 Feb 2010
1 answer
160 views
I have an asp:Panel that contains about 10 TextBox fields inside of it.  I set up a RadInputManager to ensure that the Textboxes are not empty, however, one of the TextBoxes is not required, but because it is wrapped in a asp:Panel, it thinks it needs to be validated.  Is there a way to override the validation?
Radoslav
Telerik team
 answered on 09 Feb 2010
2 answers
160 views
Hi,

I have a page setup that consists of a script manager, tabstrip, a multipage, and two pageviews each with their own distinct ListView bound to independent Linq datasources that are reading two different tables...

There is NO backend code to the project that I'm working on yet; however, when I when I click the edit item button on any of the list items belonging to the listview that is located on the second pageview, I get the following error:

"Microsoft JScript runtime error: Object doesn't support this property or method" From what I can see in the debug window, the error is being thrown at a.beginUpdate(); If I continue past that error, everything seems to load just fine...but I'm not sure that I have any confidence using the RadListView with this error being raised...

There does not seem to be any issue when clicking the edit button on the first listview...I have recreated the project and removed any backend code and stripped it down to the basics and the issue is still there with two list views on the same page...

Does anyone have any idea what needs to be done to solve this?

Thanks.
Rosen
Telerik team
 answered on 09 Feb 2010
4 answers
88 views
the default loading panel is at footer pager. can it be moved to some head field(the column is a command template, head is empty)
Pam Redrum
Top achievements
Rank 1
 answered on 09 Feb 2010
2 answers
164 views
Hi,

i have created a dynamically docking control. At Page_Init (not Postback) I initialize the Docks. But when I move one of the docks every dock is in his start position in the dockingzone after postback, so I can't change the position of the single docks.

ViewState is disabled.

I hope someone can help me. Thx for help.

ascx:
<asp:UpdatePanel  runat="server" ID="UpdatePanel1"
    <ContentTemplate> 
                <rad:RadDockLayout runat="server" ID="RadDockLayout1" OnSaveDockLayout="RadDockLayout1_SaveDockLayout" OnLoadDockLayout="RadDockLayout1_LoadDockLayout" > 
                    <rad:RadDockZone ID="RadDockZoneFelder" runat="server" /> 
                </rad:RadDockLayout> 
                </ContentTemplate> 
  </asp:UpdatePanel> 

 

vb.net:
 
Private Property CurrentDockStates() As List(Of DockState) 
            Get 
                'Store the info about the added docks in the session. For real life 
                ' applications we recommend using database or other storage medium 
                ' for persisting this information. 
                Dim _currentDockStates As List(Of DockState) = DirectCast(Session("CurrentDockStatesDynamicDocks"), List(Of DockState)) 
                If [Object].Equals(_currentDockStates, NothingThen 
                    _currentDockStates = New List(Of DockState)() 
                    Session("CurrentDockStatesDynamicDocks") = _currentDockStates 
                End If 
                Return _currentDockStates 
            End Get 
            Set(ByVal value As List(Of DockState)) 
                Session("CurrentDockStatesDynamicDocks") = value 
            End Set 
        End Property 
 
        Private Sub CreateSaveStateTrigger(ByVal dock As RadDock) 
            'Ensure that the RadDock control will initiate postback 
            ' when its position changes on the client or any of the commands is clicked. 
            'Using the trigger we will "ajaxify" that postback. 
            dock.AutoPostBack = True 
            dock.CommandsAutoPostBack = True 
 
            Dim saveStateTrigger As New AsyncPostBackTrigger() 
            saveStateTrigger.ControlID = dock.ID 
            saveStateTrigger.EventName = "DockPositionChanged" 
            UpdatePanel1.Triggers.Add(saveStateTrigger) 
 
            saveStateTrigger = New AsyncPostBackTrigger() 
            saveStateTrigger.ControlID = dock.ID 
            saveStateTrigger.EventName = "Command" 
            UpdatePanel1.Triggers.Add(saveStateTrigger) 
        End Sub 
 
        Private Function CreateRadDockFromState(ByVal state As DockState) As RadDock 
            Dim dock As New RadDock() 
            dock.DockMode = DockMode.Docked 
            dock.ID = String.Format("radDock{0}", state.UniqueName) 
            dock.Text = state.UniqueName 
 
            'dock.Controls.Add(Me.erzeugeNeuenTabellenEintragFeld(state.UniqueName)) 
 
            dock.ApplyState(state) 
            dock.Commands.Add(New DockCloseCommand()) 
            dock.Commands.Add(New DockExpandCollapseCommand()) 
 
            Return dock 
        End Function 
 
        Protected Sub RadDockLayout1_LoadDockLayout(ByVal sender As ObjectByVal e As DockLayoutEventArgs) 
            'Populate the event args with the state information. The RadDockLayout control 
            ' will automatically move the docks according that information. 
            For Each state As DockState In CurrentDockStates 
                e.Positions(state.UniqueName) = state.DockZoneID 
                e.Indices(state.UniqueName) = state.Index 
            Next 
        End Sub 
 
        Protected Sub RadDockLayout1_SaveDockLayout(ByVal sender As ObjectByVal e As DockLayoutEventArgs) 
            'Save the dock state in the page Session. This will enable us 
            ' to recreate the dock in the next Page_Init. 
            CurrentDockStates = RadDockLayout1.GetRegisteredDocksState() 
        End Sub 
 
        Protected Sub RadDock1_DockPositionChanged(ByVal sender As ObjectByVal e As DockPositionChangedEventArgs) 
            Dim dock As RadDock = DirectCast(sender, RadDock) 
            If e.DockZoneID = [String].Empty Then 
                dock.Text = [String].Format("I used to be in {0} but now I am floating.", _ 
                                            dock.DockZoneID) 
            Else 
                If dock.DockZoneID = [String].Empty Then 
                    dock.Text = "I used to be floating, but now I am docked in " + _ 
                                 e.DockZoneID 
                ElseIf dock.DockZoneID <> e.DockZoneID Then 
                    dock.Text = [String].Format("I moved from {0} to {1}.", _ 
                                                dock.DockZoneID, e.DockZoneID) 
                Else 
                    dock.Text = [String].Format("I moved from position {0} to position {1}.", _ 
                                                 dock.Index.ToString(), e.Index.ToString()) 
                End If 
            End If 
            If Not Me.Session("liste_felder"Is Nothing Then 
                Dim tobjListeFelder As ArrayList 
 
                tobjListeFelder = Me.Session("liste_felder"
 
            End If 
        End Sub 
 
        ''' <summary> 
        ''' Seite initialisieren 
        ''' </summary> 
        Protected Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles MyBase.Init 
            Me._id_produkt = Me.globalContext.QueryString("id_produkt"
            btnZurueck.url = Me.globalContext.URLContext.ermittleURL_AlleParameterAdmin(Me.globalContext.URLContext.id_seite, Me.globalContext.URLContext.id_seite, Me.globalContext.URLContext.id_vonmodul, -1, Me._id_produkt, -1, , , , , , , True"id_produkt="
 
            If Not Me.IsPostBack() Then 
                Dim tAnzahl As Integer 
                Dim tobjKonditionendefinitionenListe As New class_banken_produktdb_konditionendefinitionen_liste() 
 
                ' Anzahl der schon definierten Felder ermitteln 
                tAnzahl = tobjKonditionendefinitionenListe.ermittleAnzahlBeiProduktvonTab_banken_konditionendefinitionen(Me._id_produkt) 
 
                ' Anzahl und Felder initialisieren 
                If tAnzahl = 0 Then 
                    Me.Session.Add("anzahl_felder", 0) 
                    Me.Session.Add("liste_felder"New ArrayList()) 
                Else 
                    Me.Session.Add("anzahl_felder", tAnzahl) 
                    Me.Session.Add("liste_felder"Me.setzeListeFelder()) 
                End If 
 
                ' Erzeugt die Controls 
                Me.erzeugeInhalte() 
            Else 
                ''Recreate the docks in order to ensure their proper operation 
                Dim i As Integer = 0 
                While i < CurrentDockStates.Count 
                    Dim dock As RadDock = CreateRadDockFromState(CurrentDockStates(i)) 
                    'We will just add the RadDock control to the RadDockLayout. 
                    ' You could use any other control for that purpose, just ensure 
                    ' that it is inside the RadDockLayout control. 
                    ' The RadDockLayout control will automatically move the RadDock 
                    ' controls to their corresponding zone in the LoadDockLayout 
                    ' event (see below). 
                    RadDockLayout1.Controls.Add(dock) 
                    'We want to save the dock state every time a dock is moved. 
                    CreateSaveStateTrigger(dock) 
                    System.Math.Max(System.Threading.Interlocked.Increment(i), i - 1) 
                End While 
            End If 
        End Sub 
 
        ''' <summary> 
        ''' Setzt die Liste mit den vorhanden Controls 
        ''' </summary> 
        Private Function setzeListeFelder() As ArrayList 
            Dim tobjListe As New ArrayList 
            Dim tobjKonditonendefinitionen As class_banken_produktdb_konditionendefinitionen 
            Dim tobjKonditionendefinitionenListe As New class_banken_produktdb_konditionendefinitionen_liste() 
 
            ' Alle vorhanden Definitionen ermitteln und die IDs als Liste zurückliefern, somit kann später ein 
            ' Abgleich gemacht werden ob die Definition schon in der DB ist oder nicht, d.h. neu geschrieben werden 
            ' muss oder nicht 
            tobjKonditionendefinitionenListe.ermittleListeBeiProduktvonTab_banken_konditionendefinitionen(Me._id_produkt) 
            For Each tobjKonditonendefinitionen In tobjKonditionendefinitionenListe 
                tobjListe.Add(tobjKonditonendefinitionen.getValue("id")) 
            Next 
 
            Return tobjListe 
        End Function 
 
        ''' <summary> 
        ''' Erzeugt den Inhalt für die dynamisch angelegten Felder 
        ''' </summary> 
        Private Sub erzeugeInhalte() 
            ' Erzeuge die Inhalte für die liste_felder 
            If Not Me.Session("liste_felder"Is Nothing Then 
                For Each tid_definition As Integer In Me.Session("liste_felder"
                    Dim tobjRadDock As New RadDock() 
 
                    tobjRadDock.ID = "radDock" & tid_definition 
                    tobjRadDock.DockMode = DockMode.Docked 
                    tobjRadDock.UniqueName = tid_definition 
                    tobjRadDock.Title = tid_definition 
                    tobjRadDock.Text = tid_definition 
                    'tobjRadDock.AutoPostBack = True 
                    'AddHandler tobjRadDock.DockPositionChanged, AddressOf RadDock1_DockPositionChanged 
                    tobjRadDock.Controls.Add(Me.erzeugeNeuenTabellenEintragFeld(tid_definition)) 
                    Me.RadDockZoneFelder.Controls.Add(tobjRadDock) 
                    CreateSaveStateTrigger(tobjRadDock) 
 
 
                    'Me.paInhaltKonditionDefinitionen.Controls.Add(Me.erzeugeNeuenTabellenEintragFeld(tid_definitiion)) 
                Next 
            End If 
        End Sub 
 



Pero
Telerik team
 answered on 09 Feb 2010
5 answers
277 views
Hi,

I would like to change the default size of RadEditor for some SharePoint custom lists. I've tried to do some hack by SharePoint Designed, but I was not success. Please can you help me and recommend me the best way how to do it?

Thanks,
Martin
Stanimir
Telerik team
 answered on 09 Feb 2010
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?