Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
146 views
Hello,
   I just installed Rad Editor Lite and I got it working just fine. I also added the Ajax Spell Check, and it is awesome! I am having an issue though:

I added the ApplyClass tool in the ListToolsFile.xml and now the ApplyClass dropdown appears on the wiki editor like i wanted, except that it is broken. It shows a "bad image" like a webpage would when it cannot find an image, and the function does not work. I followed the guidelines and created the CssEditor.css file in the proper location (_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Editor/), and i even added the line to the CORE.CSS file that is outlined in the "Defining Custom CSS Styles" guide in the .chm file.

I think i put it in the right place, but is there a specific place to put the @import url("/_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Editor/CssEditor.css"); line? It is near the top after the comment of the version: 

/* _lcid="1033" _version="12.0.4518"
@import url("/_wpresources/RadEditorSharePoint/4.5.6.0__1f131a624888eeed/RadControls/Editor/CssEditor.css");
_LocalBinding */


After doing this, i added classes to the ListToolsFile.xml such as this:

<classes>
        <class name="Filename" value=".GUI-Filename" />
        <class name="Menu" value=".GUI-Menu" />
        <class name="Button" value=".GUI-Button" />
 <class name="User Input" value=".GUI-UserInput" />
 <class name="Prompt" value=".GUI-Prompt" />
 <class name="Icon" value=".GUI-Icon" />
    </classes>

which matches what is in my CssEditor.css file:

.GUI-Filename { font-family: Courier; text-decoration: underline }
.GUI-Menu    { font-weight: bold }
.GUI-Button  { text-decoration: underline; font-weight: bold }
.GUI-UserInput { font-family: Courier; font-style: italic }
.GUI-Prompt  { font-family: Courier; font-weight: bold }
.GUI-Icon {
 font-style: oblique;
 font-weight: bold;
}

Is this not the correct setup that i need? Are there any steps i am missing? Is my CSS set up wrong? Also, I noticed that the HtmlEditorTableFormats.css and HtmlEditorCustomStyles.css files do not exist in my installation, but I am running Windows Sharepoint Services 3.0 on a Windows Server 2003 environment. The .chm file says they should be located here: /Program Files/Common Files/Microsoft Shared/web server extensions/12/Template/Layouts/1033/Styles

Any help would be useful. Some links in other forum threads for Telerik guides are broken now.

-Brad
Brad
Top achievements
Rank 1
 answered on 12 May 2009
2 answers
127 views
Hi
does anyone know why i am getting the following problem?

i am putting 12/05/2009 12:00:00 into the appointment object , the date is showing correctly, but the time is being put in a 3pm?

Any help would be appreciated

Thanks

Bob
bob
Top achievements
Rank 1
 answered on 12 May 2009
2 answers
227 views
Hi,

I'm using a RADScheduler in timelineview only.
It show the time from 6.00 to 20.00h in 60 timeslots, so every slot represents 15 minutes.
Worked fine before I upgraded to Q1 2009.
Now the timeslot-headers show the right time, but the first timeslot-object from left, which should contain startTime='date + 06:00' now contains startTime='date+00:00'.
No matter what I set the Radscheduler.TimelineView.StartTime-Property to, the frist slot always has startTime 00:00, but the header show right startTime!


Here's the markup:

<telerik:RadScheduler ID="RadScheduler1" runat="server" DataEndField="dnp_bisdat"  
        DataKeyField="dnp_id" DataSourceID="sql_Source"  
        DataStartField="dnp_vondat" DataSubjectField="dat_name" 
        OverflowBehavior="Expand" SelectedView="TimelineView"  
        HoursPanelTimeFormat="htt" ValidationGroup="RadScheduler1"  
        ShowViewTabs="False"          
        Culture="de-DE" TimeZoneOffset="00:00:00"  OnClientTimeSlotClick="TimeSlotClick">
    <TimelineView SlotDuration="00:15:00" StartTime="06:00" NumberOfSlots="60" 
                  TimeLabelSpan="4" HeaderDateFormat="d" GroupBy="User"  
                  GroupingDirection="Vertical" ColumnHeaderDateFormat="HH:mm" />  
    <ResourceTypes> 
        <telerik:ResourceType DataSourceID="sql_user"  
            ForeignKeyField="dnp_usr_id" KeyField="usr_id" Name="User"  
            TextField="usr_name" /> 
    </ResourceTypes> 
</telerik:RadScheduler> 
 

and small Javascript for debug:
        function TimeSlotClick(sender, args) 
        { 
            alert(args.get_time()); 
        } 

If you click leftmost slot in the first row you'll see the issue.

Hope you can help me on this

thanks in advance,
Lukas
Peter
Telerik team
 answered on 12 May 2009
2 answers
118 views
Hello, I am trying to add a RadSkinManager to my page programmically (using a BasePage that is inherited by all my web forms - master page isn't necessary or preferred for this project). For whatever reason, it is getting ignored. Below is my code (ScriptManager and RadFormDecorator work perfectly): Thanks for any help!

                //add a script manager to page form
                ScriptManager smMain = new ScriptManager();
                smMain.ID = "smMain";
                Page.Form.Controls.AddAt(0, smMain);

                //add a RadSkinManager to page form (used for RadControls themeing)
                RadSkinManager skmSkin = new RadSkinManager();
                skmSkin.ID = "skmSkin";
                skmSkin.Skin = "Forest"; //actual value read from web.config
                Page.Form.Controls.AddAt(1, skmSkin);

                //add a RADFormDecorator to page form (used for non-RadControls controls theming)
                RadFormDecorator tfdMain = new RadFormDecorator();
                tfdMain.ID = "rfdMain";
                tfdMain.Skin = "Forest"; //actual value read from web.config
                tfdMain.ControlsToSkip = FormDecoratorDecoratedControls.None;
                tfdMain.DecoratedControls = FormDecoratorDecoratedControls.All;
                Page.Form.Controls.AddAt(2, tfdMain);
Zach
Top achievements
Rank 1
 answered on 12 May 2009
5 answers
144 views
Hi there,

Has anyone got any examples of dynamically adding/removing zones and docks which are persisted on postback. There are many examples showing docks only but nothing on zones. I basically need to create something similar to this example

http://demos.telerik.com/aspnet-ajax/dock/examples/myportal/defaultcs.aspx

but with the addition of being able to dynamically add or remove zones.

Many thanks

Ady



Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 12 May 2009
2 answers
72 views
Hi,

I have a RadTreeView set up with tristate check boxes so that I can show partial selections of child noes.  I would like to be able to programmatically set the state of the nodes to "indeterminate" using client side code.  I can set the state to checked/unchecked no problem (using set_check) but can not get them to go into the indeterminate state.

Is there a way to do this?

Thanks!
Robert
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
86 views
I am loading RadDocks from SQL and state as well, I'm having trouble with RadDock.ApplyState(state)..  There has to be a loop from the database to load the controls but at the same time there has to be a loop to apply the state, does anyone have an example of this?


Here is the code I am talking about, this loop is based on the propery list of DockState

Protected Sub Page_Init(ByVal sender As ObjectByVal e As EventArgs) 
            Dim i As Integer = 0 
            While i < CurrentDockStates.Count 
                Dim dock As RadDock = CreateRadDockFromState(CurrentDockStates(i)) 
                RadDockLayout1.Controls.Add(dock) 
                CreateSaveStateTrigger(dock) 
                System.Math.Max(System.Threading.Interlocked.Increment(i),i - 1) 
            End While 
        End Sub 

However I load the usercontrols into RadDocks with a While Loop from a datareader like this:

   Protected Sub Page_Init(ByVal sender As ObjectByVal e As System.EventArgs) Handles Me.Init 
        Dim RoleID As Integer 
        Dim drContacts As SqlDataReader 
        Dim control As New Web.UI.Control() 
        Dim count As Integer = 0 
        RadDockZone1.Controls.Clear() 
        RadDockZone0.Controls.Clear() 
        Dim state As New DockState() 
        Dim Edit As String = Utilities.GetSession("Edit Layout Allowed"
        RoleID = Int32.Parse(Utilities.GetSession("PortalRoleID")) 
        drContacts = PortalDataAccess.GetPortalControlsByRoleID(RoleID) 
        If (drContacts.HasRows) Then 
            While (drContacts.Read()) 
                Dim soRadDock As New RadDock() 
                soRadDock.ID = drContacts("ControlID").ToString() 
                soRadDock.Title = drContacts("ControlTitle").ToString() 
                control = LoadControl("UserControls/" & drContacts("ControlName").ToString() & ".ascx"
                soRadDock.ContentContainer.Controls.Add(control) 
                If drContacts("Zone") = 1 Then 
                    CreateSaveStateTriggers(soRadDock) 
                    soRadDock.ApplyState(state) 
                    RadDockZone1.Controls.Add(soRadDock) 
 
                End If 
 
                If drContacts("Zone") = 0 Then 
                    CreateSaveStateTriggers(soRadDock) 
                    soRadDock.ApplyState(state) 
                    RadDockZone0.Controls.Add(soRadDock) 
 
                End If 
 
            End While 
 
            drContacts.Close() 
        End If 
 
    End Sub 

So my problem is in order to call ApplyState(State) in Page_Init and get the correct closed , collapsed state from the DB I need to have 2 loops........ Not sure how to accomplish this. The underlying issue is the Closed and Collapsed state is being overwritten before the controls render and Im losing those 2 pieces of state.


Thanks!
Sam



Petio Petkov
Telerik team
 answered on 12 May 2009
6 answers
156 views

Hi Telerik team,

 

I encountered the same problem as described in thread “Firefox 3, Tabstrip with ScrollChildren inside splitter”: my TabStrip is 10,000 px wide in Firefox 3.0.8. My Telerik DLL version is 2008.3.1314.35.

 

This value of 10.000 px is set in the CSS definition for  selector '.RadTabStrip .rtsScroll', but FF3 ignores the 'overflow:hidden' defined for the outer HTML elements. I wonder if this can be fixed by altering some CSS definitions. Or must I use the JavaScript workaround you provided in the mentioned thread?

mika-xws
Top achievements
Rank 1
 answered on 12 May 2009
1 answer
62 views
Developing webpart with RadEditor and need to automatically load word document from a DocLib.
Can specify doc URL or get data as stream.

Not sure how to automatically open the doc in RadEditor on initial page load.
Stanimir
Telerik team
 answered on 12 May 2009
2 answers
111 views
Hello,

I'm trying to add some client-side context sensitivity (button showing/hiding, enabling/disabling) to a RadToolBar which I've nested inside the CommandItemTemplate of a RadGrid, but my attempts to get a handle to the toolbar and its buttons aren't working.
I've gone through the various examples and forum threads, and found similar subjects (which I've tried to adapt) but nothing I've been able to figure out how to make use of for this situation.

What I have:
RadToolBar1, with three Buttons and one separator ("Extract", "Separator 1", "Save", "Delete"), inside of the CommandItemTemplate of RadGrid1.

Does anyone have an example of how to get a client-side reference to the nested toolbar or its buttons?

Thanks,
Christopher
Christopher H.
Top achievements
Rank 1
 answered on 12 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
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
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?