Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
157 views
I am having a problem with some of the built in skins and the RadDock.

It appears that when I update certain controls with RadAjax, specifically content in RadDocks the background color is not correct for some skins. I have uploaded a sample so you can see what I am talking about: YouTube link

You will first see the page as it is when loaded, then the OnClick event of the RadTreeView on the left changes the text within the RadDock. The RadDOck is as follows:

        <telerik:RadDock ID="dockHelp" runat="server" Title="Help" EnableRoundedCorners="true"> 
            <ContentTemplate> 
                <h2><asp:Literal ID="helpTitle" runat="server" /></h2> 
                <p><asp:Literal ID="helpContent" runat="server" /></p> 
            </ContentTemplate> 
        </telerik:RadDock> 

and the OnClick():

protected void treeAdmin_NodeClick(object sender, RadTreeNodeEventArgs e) 
        { 
            UpdateHelp(); 
        } 
 
        protected void UpdateHelp() 
        { 
            if (treeAdmin.SelectedNode != null) 
            { 
                switch (treeAdmin.SelectedNode.Text) 
                { 
                    case "System Utilities": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        helpContent.Text = help_systemutilities; 
                        break; 
                    case "Locked Documents": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    case "Users and Groups": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    case "Groups": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    case "Users": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    case "Filing System": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    case "Deparments": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    case "Workflows": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    case "User Defined Lists": 
                        helpTitle.Text = treeAdmin.SelectedNode.Text; 
                        break; 
                    default: 
                        helpTitle.Text = "Managing Your System"; 
                        helpContent.Text = help_general; 
                        break; 
                } 
            } 
            else 
            { 
                helpTitle.Text = "Managing Your System"; 
                helpContent.Text = help_general; 
            } 
        } 

And just to ensure I give you all of the details I am using the following RadAjaxManagerProxy and RadAjaxLoadingPanel:

<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server"> 
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="treeAdmin"> 
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="helpTitle" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                    <telerik:AjaxUpdatedControl ControlID="helpContent" LoadingPanelID="RadAjaxLoadingPanel1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server"> 
    </telerik:RadAjaxLoadingPanel> 
 
This issue occurs anytime I update any controls with Ajax that are inside a RadDock and the Skin is set to a skin that has a different background than what the Dock has for that skin. (Examples: Black, Hay)

I have tried to simply update the entire RadDock with the AjaxManager, but that throws and error:

Telerik.Web.UI.RadDockZone can contain only controls of type Telerik.Web.UI.RadDock


Your help is appreciated.






Pero
Telerik team
 answered on 12 Jan 2010
3 answers
129 views
Hi,
I am trying to insert some "higher" Unicode symbols in DB.

For instance the omega symbol becomes "O" in DB record.
As other thread advise I did set my SQL Server columns to varchar, nvarchar, char but to no avail.
I see that the "Save to DB" demo on your site is working correctly with the Omega symbol.

What could be the problem you think?

Regards,
Marc
Rumen
Telerik team
 answered on 12 Jan 2010
1 answer
140 views
I've created a userControl that has an imagebutton. Attached to that is a RadWindow via the OpenerElementID of the imagebutton. That popups a window with the required aspx page (in this case ImageSelector.aspx). When that form is closed it returns the path of the image selected. And then updates the image in the imagebutton.

All works great. Except when I had another usercontrol. Then when I click on the imagebutton of the second control does not fire.

When I check out the rendered HTML i see two identical usercontrl rendering including the same openerElementID and JavaScript callback function.

I think what I need is a method to supply the 'calling' control id to the imageselector.aspx so that it can return it in the arguments coming back.

(note I've used both ASP.NET ImageButton and HTML img element and have the same problem).

Thanks.
Georgi Tunev
Telerik team
 answered on 12 Jan 2010
1 answer
154 views
Hi, I have searched this forum exhaustively for a solution without any luck so posting here is my last resort :D

My solution is actually quite complex but I have went ahead and created a really simple web application to demonstrate my issue (also helped isolating the problem), you can download it from here http://www.towfeek.se/telerik_test.zip

Anyhow the problem lies within loading controls which themselves contains rad controls in them. The basic problem is that when I try to load a custom user control which contains a RadSplitter control into a RadPane control I get the strangest javascript errors, why is that? 

Furthermore, the RadSplitter in the custom UC has a RadSplitBar which generates more javascript errors when you try to drag it. This is supposibly an error based on the first one.  

If I move the markup code from the custom user control directly into the RadPane that I tried to load it into it works fine, the issue seems to lie within loading it dynamically.

Please help me ;-)
Tsvetie
Telerik team
 answered on 12 Jan 2010
1 answer
175 views
I am using the radedit and want to give access to a folder for images.

<telerik:radeditor id="htmlView" runat="server" skin="Hay" Width="100%" Height="350px" AutoResizeHeight="true" backcolor="White" OnClientLoad="OnClientLoad"   ToolbarMode="Default" EnableResize="false" ToolsFile="~/App_Data/NewTools.xml"  EditModes="All" OnClientCommandExecuting="OnClientCommandExecuting">

And I have added the ImageManager Tag as follows:

      <ImageManager ViewPaths="c:\,c:\temp"
       </ImageManager>

When I click to add an image it gives me the following error:
'c:\' is not a valid virtual path.

Can I ONLY have virtual directories? If I want to open files in c:\ or MyDocuments directory in the local computer, how can i do it?

Please let me know.
thanks
Dobromir
Telerik team
 answered on 12 Jan 2010
1 answer
63 views
I've tried

<

 

telerik:EditorTool name="PasteOptions" />

 

 but it does not work. I'm looking to get the options there Paste, Paste From Word, Paste from Word, strip font, Paste Plain Text, Paste As Html
Thanks.
Dobromir
Telerik team
 answered on 12 Jan 2010
7 answers
141 views
I'm wondering if there is any way to customize the properties for Images within the RadEditor.

Currently if I insert an image, and then right click on it and select "Properties", there are some generic properties like description, dimensions, etc

What I'd like to be able to do is add a checkbox and a couple textboxes to the properties.

[  ] Enable Lightbox
[                 ] Lightbox Group

If the checkbox is checked, then I would change
<img src="myfile.jpg" /> 

to something like
<a href="myfile.jpg" rel="lightbox[GROUPNAME]"><img src="myfile.jpg" /></a> 


Is this something that can be built quite easily?
Dobromir
Telerik team
 answered on 12 Jan 2010
3 answers
192 views
Hello, Telerik! I am using SlideShow mode to change showed photo. I would like that previous photo is faded before next photo will appear, and next photo also would have fade effect when showing.
But I found that fade effect is not used when previous photo disappears. I tried Pulse effect, without effect (is it useful?). Is there some solution for the case?
Fiko
Telerik team
 answered on 12 Jan 2010
3 answers
140 views
Hello,

Here is my grid.

<Telerik:RadGrid ID="gridLists" runat="server" AutoGenerateColumns="False" GridLines="None" AllowAutomaticDeletes="false" AllowAutomaticInserts="false" AllowAutomaticUpdates="false">  
                <MasterTableView>  
                    <Columns>  
                        .  
                        .  
                        .  
                        .  
                        .  
                        <Telerik:GridButtonColumn HeaderText="Edit" CommandName="ListEdit" Text="Edit" UniqueName="EditColumn"></telerik:GridButtonColumn>  
                        <Telerik:GridButtonColumn HeaderText="Delete" CommandName="ListDelete" Text="Delete" UniqueName="DeteleColumn"></telerik:GridButtonColumn>  
                    </Columns>  
                    <NoRecordsTemplate>You have not selected any lists.</NoRecordsTemplate>  
                      
                </MasterTableView>  
                </Telerik:RadGrid> 


As you can see i've two button columns to perform my custom operations.

First i added the event handler in the codebehind like this.

gridLists.ItemCommand +=new GridCommandEventHandler(gridLists_ItemCommand);

But the event dint get fired. So i removed the line from the code behind and added this in the aspx to the grid.

OnItemCommand="gridLists_ItemCommand" 

Now i get the following error.

"c:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\LAYOUTS\MPP.CalendarPro\Pages\MPP.CalendarPro.Settings.aspx(498): error CS0117: 'ASP._layouts_mpp_calendarpro_pages_mpp_calendarpro_settings_aspx' does not contain a definition for 'gridLists_ItemCommand'   at System.Web.Compilation.AssemblyBuilder.Compile() ...."

Note : I'm working in the SharePoint environment.

So what's the problem? Any ideas?

NLV
Top achievements
Rank 1
 answered on 12 Jan 2010
1 answer
126 views
I had a problem with checkbox  in a repeater under RadAjaxManager, I tried to tick a checkbox and debug to see whether checkbox has been checked however , the checkbox state always return checked = false. Anyone has same problem, please advice me a solution.

Thank you.
Iana Tsolova
Telerik team
 answered on 12 Jan 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jake
Top achievements
Rank 1
RBarnes
Top achievements
Rank 1
Iron
Iron
Rami
Top achievements
Rank 1
Iron
Veteran
Nathan
Top achievements
Rank 1
Kumeri
Top achievements
Rank 1
Iron
Veteran
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?