Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
216 views
I am trying to style items in the FormatBlock dropdown by editing the EditorToolsFile(.xml).  I am following this refernce article: http://www.telerik.com/help/aspnet-ajax/paragraphstyles.html.  It explains that to display the dropdown items with their corresponding formatting, add the tag around the item name.  The example that is given is as follows:
<paragraphs>
    <paragraph name="Clear formatting" value="<body>" />
    <paragraph name="<H1>Heading 1</H1>" value="<H1>" />
    <paragraph name="<H2>Heading 2</H2>" value="<H2>" />
    <paragraph name="<H3>Heading 3</H3>" value="<H3>" />
    <paragraph name="<p class='redStyle'>redStyle</p>" value="<p class='redStyle'>" />
  </paragraphs>


I am receiving an error because the symbol < is not allowed within an xml tag. This is the error:
'<', hexadecimal value 0x3C, is an invalid attribute character.

I have tried using &lt; instead of < and it fixes the error but does not format the item as it should (as a h1 tag).  Am I missing something obvious or does anyone have a fix for this?  Keep in mind this is the radEditor instance used when editing a page in Sitefinity, not just a radEditor thrown on any page.  Thanks in advance for any help.

Ryan
Rumen
Telerik team
 answered on 19 Nov 2009
1 answer
110 views
Hi Team,
 
If I have states saved in session using following:

 

CurrentDockStates = RadDockLayout1.GetRegisteredDocksState();  
Session["CurrentDockStates"] = CurrentDockStates;  
 

Then how can use this session stored index in javascript function to set dock position at the correct position.?

I feel this will save my postback.
Please treat this as urgent and reply.

Regards,
      Snehal

Pero
Telerik team
 answered on 19 Nov 2009
2 answers
109 views
Is there anyway for me to set emptymessage on the filter textbox?
Thanks.
AereoN
Top achievements
Rank 1
 answered on 19 Nov 2009
1 answer
175 views
Hello!

I am using the Editor with some a custom image manager dialog, I copied the EditorDialogs folder a while a go from a your AJAX Controls, so it would have probably been Q1 or Q2 and edited the image manager as I needed only 1 image selector. (this is in a previous support ticket).

I now want to override all embedded skins for my entire website so I can style everything my own way. I copied the skin files into my theme and edited them as I needed and every control was looking fine except for the image manager on the editor.

I found an existing thread in this forum saying that enableembeddedskins=false was not working properly in a previous version for the image manager but was fixed in the latest, so this morning I downloaded the latest version, but it is still not working.

To test what was happening I set my skin to BLACK in my webconfig and enable embeddedskins to true

 <add key="Telerik.EnableEmbeddedSkins" value="true"/>
 <add key="Telerik.Skin" value="Black" />

so that everything should be using the black skin. This worked well.

I then copied the entire skins directory from your installation into my current theme folder and set EnableEmbeddedSkins=false, everything still was using the black skin correctly except the image manager.

Is there still a bug? or is the fact I am using custom dialogs causing the problem (I am hoping not as I dont want to recreate my custom dialog)?
I can sent you some of my project if you need to look at it but I am not sure what parts you'd need to see?
This is a big show stopper on my project at the moment so I really need to sort this out.

Thanks



Rumen
Telerik team
 answered on 19 Nov 2009
1 answer
159 views
I have a Rad Dock on a page. I need it to be positioned in a certain place on the page (in the top-right corner of a Panel, i.e. <div>).
Since actual coordinates and size of the panel are not available on the server side, I'm trying to set up a client script that moves a RadDock to the required position right after the page is loaded.

This might be relevant to the problem: I do not have RadDockLayout and RadDockZone on the page. I use master page.

What I have in aspx (I omitted some unrelated elements):

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="Server"
   <asp:Panel runat="server" id="RequestFormPanel" BackColor="Green" > 
       
        <asp:Panel runat="server" ID="requestPanel" CssClass="FormPanel" BackColor="Red" > 
        </asp:Panel> 
 
        <telerik:RadDock runat="server" ID="IRItemListDock" Title="Информационные ресурсы" EnableAnimation="true" Visible="false" DefaultCommands = "ExpandCollapse" > 
            <ContentTemplate> 
                <uc2:IRItemList ID="IRItemList1" runat="server" /> 
            </ContentTemplate> 
        </telerik:RadDock> 
         
    </asp:Panel>      
</asp:Content> 

What I did:

I wrote a JavaScript function to position the dock:

     function MoveDock(DockId, PanelId)   
     {   
        var currentDock = $find(DockId.id);   
        if ( currentDock == null ) { return; } 
 
        obj = document.getElementById(PanelId.id); 
        var x = 0; 
        var y = 0; 
        while (obj != null
        { 
          x += obj.offsetLeft; 
          y += obj.offsetTop; 
        } 
        
        currentDock.set_left(x);   
        currentDock.set_top(y);   
     }   


In codebehind (OnInit) I attach the client function to the page:
Page.RegisterStartupScript("Startup""<script language=JavaScript>MoveDock(" + IRItemListDock.ClientID + "," + requestPanel.ClientID + ");</script>"); 

The client function starts as expected, but $find(DockId.id) always returns null.

How to make all this work?
Pero
Telerik team
 answered on 19 Nov 2009
5 answers
199 views
Hi,

I am facing problem in using Modal Rad-Window.
The scenario is, that i am having a base page, from which a pop-up opens.
From this pop-up, i need to open another pop-up.

What is required is that, the first pop-up should be modal. (That works fine).
Second pop-up when opens, should disable the first pop-up, and should be able to return value to the first pop-up, from which it was opened.

The problem i am facing is, i am not able to create 2nd modal pop-up. It does not disable first pop-up which I opened.

Thanks
Regards
Sarabjeet Singh Marwah
Svetlina Anati
Telerik team
 answered on 19 Nov 2009
2 answers
338 views
Hello,

I am trying to create a dynamic tabstrip/multipage section of a page, where the tabs and radpageview instances are database driven. It is easy to bind the tabstrip to a data source, but I am really struggling with how to get a dynamic RadMultiPage. Because the content of each RadPageView is non-trivial, I do not want to build up the entire page view in code and would much rather use the templating capability of Repeater to do the heavy lifting.

But no matter how I play with the code, I cannot get it to do the right thing. I would like to have something like this:

<telerik:RadTabStrip ID="FormulaTabs" runat="server" MultiPageID="FormulaContexts" 
DataSourceID="ContextSource" DataTextField="qualifiedContextName" />

<telerik:RadMultiPage ID="FormulaContexts" runat="server">
<asp:Repeater ID="FormulaRepeater" runat="server" DataSourceID="ContextSource">
<ItemTemplate>
<telerik:RadPageView ID="FormulaPageSample" runat="server">
<asp:Label ID="Label2" runat="server" Text='<%# Eval("qualifiedContextName") %>' />
</telerik:RadPageView>
</ItemTemplate>
</asp:Repeater>
</telerik:RadMultiPage>

The goal is for the RadPageView to have content specific to the data source in the repeater and that, since the tabstrip is using the same data source and is pointing to the RadMultiPage, that the tabs would flip to the correct data. Of course, in the snippet above, VS complains because Repeater is not a recognized child element of RadMultiPage, and RadPageView is not a recognized child of Repeater. Putting RadMultiPage into the repeater's header template is equally invalid.

Is this at all possible?

Thanks, in advance,

Tom Otvos
Arsen
Top achievements
Rank 1
 answered on 19 Nov 2009
1 answer
90 views
Is it possible to use RadMenu Templates together with a DataSource?

The example uses hard-coded items for the menu.

Can someone provide an example of how to do this, if so?

I'm happy to hear about it if there is another forum post that addresses this, but I haven't found one yet.

Thanks!
Veselin Vasilev
Telerik team
 answered on 19 Nov 2009
1 answer
88 views
Hi,

Can I have an online demo of RADgrid using

RadGrid1.Controls.Add(New LiteralControl("Error. Reason: " + ex.Message));

in try... catch... block in the C# script.

Thanks,

Milind
Rosen
Telerik team
 answered on 19 Nov 2009
1 answer
147 views
Hi I am using RadControls for ASP.NET Q3 2007
I would like to reset (stop and star) a timer whenever any server events (update, insert, cancel delete etc) for a grid take place.
My code is

<radA:RadAjaxManager ID="RadAjaxManager1" runat="server">    
    <AjaxSettings>    
        <radA:AjaxSetting AjaxControlID="ClassUnlockTimer">    
            <UpdatedControls>    
                <radA:AjaxUpdatedControl ControlID="ClassUnlockTimer"/>    
            </UpdatedControls>    
        </radA:AjaxSetting> 
        <radA:AjaxSetting AjaxControlID="RadGrid1">    
            <UpdatedControls>    
                <radA:AjaxUpdatedControl ControlID="ClassUnlockTimer"/>    
            </UpdatedControls>    
        </radA:AjaxSetting> 
    </AjaxSettings>    
</radA:RadAjaxManager>    
 
 
<radA:RadAjaxTimer runat="server" ID="ClassUnlockTimer" AutoStart="false" /> 
<radG:RadGrid ID="RadGrid1" runat="server"  EnableAJAX="True"....  
 

protected void Page_Init(object sender, System.EventArgs e)  
    {  
        ClassUnlockTimer.Tick += new RadAjaxTimer.TickDelegate(timer_Tick);  
        ClassUnlockTimer.Interval = 40000;  
        ClassUnlockTimer.Stop();  
        ClassUnlockTimer.Start();  
    } 

it doesn't restart the timer somehow.
Am I missing something here??

Thanks

Toby
Iana Tsolova
Telerik team
 answered on 19 Nov 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?