Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
66 views
In IE 8 we experience problems with the image and document manager. We cannot browse or upload files. All other browser (including IE7) are working correctly.

We tried the meta tag <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> to solve this problem without success. Can anyone please help me solve this problem?

Below the exception:

"Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; chromeframe; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.5.21022; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 3.5.30729; Tablet PC 2.0; .NET CLR 3.0.30729)
Timestamp: Wed, 17 Feb 2010 18:13:23 UTC

Message: Object doesn't support this property or method
Line: 43
Char: 1
Code: 0
URI: http://x.com/ScriptResource.axd?d=k9_WcGeHnBzIX0SwJ1hHBkr5kBcXu863kKpMKR2-7b9E4kK3qqxTmvryxYcecwo3htOAiEOzEqofbQTfzjoQRurXEpyUUF748iMgT7CMDI01&t=68acbf58

Message: Sys.ArgumentException:  does not derive from Sys.Component.
Parameter name: type
Line: 2707
Char: 9
Code: 0
URI: http://staging1.trailwalker.nl/ScriptResource.axd?d=UHI6jOZ9M5K2_V57IRIoQQN5QJ3SjEzNLJ2PxmzwQ1MI5Jdxis1GmeV7KFBO1yeGT8ayQEmntajDT9A3liF0UXiH32KdR-0PWCW_OIGMcAk1&t=ffffffffec2d9970"



Rumen
Telerik team
 answered on 18 Feb 2010
3 answers
119 views
Hi,

I am using OnClientPasteHtml event of RadEditor, it is fired in IE & Mozilla workinng fine. But the same event is not working on Safari.
Can someone please tell me any work around for this?? My code is like below.

 

<telerik:RadEditor ID="RadEditor1" runat="server" ToolsFile="~/Tools/ToolsFile.xml" SkinId="Vista" OnClientLoad="OnClientLoad" OnClientPasteHtml="PasteHeadings" Width="700px" Height="100%">
</telerik:RadEditor>

 

 

 

 


javascript function:
 

function 

 

PasteHeadings(editor,args)

 

 

{

 

    if(document.getElementById("pnlOutline").style.display == "block")

 

    {

 

        var strContent= args.value;  

 

 

        if((strContent.search(/<H1/i) != -1))

         {
            fnOutline(

false);

 

         }

    }

 

}

 

 


Regards
Chinnayya
Rumen
Telerik team
 answered on 18 Feb 2010
2 answers
276 views
I have a grid, which has the following GridButtonColumn defined:

                <telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Delete" ConfirmText="Delete this selector?" 
                    Text="Delete" UniqueName="DeleteColumn"
                    <ItemStyle CssClass="EditImageButton" HorizontalAlign="Center" /> 
                </telerik:GridButtonColumn> 
>

On some rows that are shown in the grid I would like to hide the DeleteButton (i.e. these are rows that can't be deleted by the user)  -- how do I conditionally hide the delete button?

Thankyou.
Brian
Top achievements
Rank 1
 answered on 18 Feb 2010
3 answers
149 views
Hi!

I am trying out DockingZone with the toolbars which is a great feature but I get some weired graphics.

Edit: The toolbar is re-added at every postback. Which means I get many identical toolbars in the dockingzone.

Screendump is attached. My DockingZone div 

<div id="divToolbarDockingZone"></div>

Another question. Is it possible to move the location of the edit mode buttons? Is it possible to change the appearece of the buttons? I want them appear in the toolbar. I have achieved this by adding custom buttons (as you can see in the screendump) but when the editors mode is 2 or 4 the toolbar is disabled which makes it hard to switch back to the designer mode =). Any work around?

ToolsFile
<root>
<tools DockingZone="divToolbarDockingZone">
<tool name="BizWizardRadEditorDesign"/>
<tool name="BizWizardRadEditorHTML" />
<tool name="BizWizardRadEditorPreview"/>
<tool name="FindAndReplace"/>
<tool name="Print"/>
<tool name="AjaxSpellCheck"/>
<tool separator="true"/>
<tool name="Cut"/>
<tool name="Copy"/>
<tool name="Paste"/>
<tool name="PastePlainText"/>
<tool separator="true"/>
<tool name="Undo"/>
<tool name="Redo"/>
<tool separator="true"/>
<tool name="JustifyLeft"/>
<tool name="JustifyCenter"/>
<tool name="JustifyRight"/>
<tool name="JustifyFull"/>
<tool separator="true"/>
<tool name="Indent" />
<tool name="Outdent" />
<tool name="InsertOrderedList" />
<tool name="InsertUnorderedList" />
<tool separator="true"/>
<tool name="InsertHorizontalRule" />
<tool name="InsertSymbol" />
<tool name="InsertDate" />
<tool name="InsertTime" />
</tools>
<tools DockingZone="divToolbarDockingZone">
<tool name="ApplyClass"/>
<tool name="Bold"/>
<tool name="Italic"/>
<tool name="Underline"/>
<tool separator="true"/>
<tool name="FontName"/>
<tool name="FontSize"/>
<tool name="ForeColor"/>
<tool name="BackColor"/>
<tool name="StrikeThrough" />
<tool name="Superscript" />
<tool name="Subscript" />
<tool separator="true"/>
<tool name="InsertTable" />
<tool separator="true"/>
</tools>
<tools DockingZone="divToolbarDockingZone">
<tool separator="true"/>
<tool name="BizWizardLinkManager" />
<tool name="Unlink" shortcut="CTRL+SHIFT+K"/>
<tool name="BizWizardImageManager" />
<tool name="BizWizardFlashManager" />
<tool name="BizWizardTagManager"/>
<tool separator="true"/>
<tool name="BizWizardModule_Article"/>
<tool name="BizWizardModule_Form" />
<tool name="BizWizardShareManager" />
<tool name="BizWizardYouTubeManager" />
</tools>
<links>
<link name="telerik" href="http://www.telerik.com">
<link name="Products" href="http://www.telerik.com/products" />
<link name="Purchase" href="http://www.telerik.com/purchase" />
<link name="Support" href="http://www.telerik.com/support" />
<link name="Client.Net" href="http://www.telerik.com/clientnet" />
</link>
<link name="Microsoft">
<link name="Main Site" href="http://www.microsoft.com" />
<link name="MSDN Online" href="http://msdn.microsoft.com" />
<link name="Windows Update" href="http://windowsupdate.microsoft.com" />
</link>
<link name="Search Engines">
<link name="Google" href="http://www.google.com" />
<link name="Yahoo" href="http://www.yahoo.com" />
<link name="AltaVista" href="http://www.altavista.com" />
</link>
</links>
</root>
Rumen
Telerik team
 answered on 18 Feb 2010
6 answers
391 views
Hi,

Whenever I put a RadAjaxLoadingPanel on my form and set it to be used by either a RadAjaxPanel or RadAjaxManager, it causes the controls within the panel or or those managed by the manager to disappear during AJAX postbacks (they reappear when it is complete).

I've tried playing with the transparency, size, positioning, etc. Nothing makes any difference.

What am I doing wrong? This can't be the intended behavior.

-Al
Kevin Babcock
Top achievements
Rank 1
 answered on 18 Feb 2010
3 answers
89 views
Hi Guys,

 I am having a problem where I have a grid that has client selection enabled. What happens in this grid is that when I select an item or record in the grid, the client selection gets lost on post-back.I have set the EnablePostBackOnRowClick property to true. If I turn this property to false, the selection is possible, but then there is o postback.

What could be causing this?

regards

Malibongwe
Pavlina
Telerik team
 answered on 18 Feb 2010
1 answer
61 views
HI,

I'm building a composite control in Asp.net and having a problem with the RadEditor not returning values on form post. I'm using an updatepanel in which I have various RadComboBoxes, RadTextBoxes and a RadEditor, upon submission of the form the ComboBox and Textbox values are returned fine however the RadEditor returns an empty string. Is there any way to fix this, in IE8 it works fine, the problem is confined to Firefox.

Regards
Rumen
Telerik team
 answered on 18 Feb 2010
2 answers
323 views
Hi, how can I use RadContextMenu for RadPanelBar, please give me an example :)
VnDevil
Top achievements
Rank 2
 answered on 18 Feb 2010
3 answers
96 views

Hi,
I am using Treeview control to create Folder and file structure functionality. I have added context Menu to show New Folder option while right clicking on the Node item. I want to disable the New Folder for the file level. 
case "NewFolder":

 

 

if (treeNode.get_parent() == treeNode.get_treeView())

 

{

menuItem.set_enabled(

true);

 

}

 

else

 

 

 

{

 

menuItem.set_enabled(

true);

 

}

 

break;

Thanks,
Krantikumar Jain

 

Veronica
Telerik team
 answered on 18 Feb 2010
1 answer
178 views
Hello, I have a custom ITemplate class that I am using to format the output of nodes in a RadTreeView.  In the template, I have several asp:Button objects.  I want to wire up the Click events of each, and handle them on the page with AJAX calls to server-side methods.  I have added event handlers for each button to the ITemplate object but as far as I can tell they never fire.  When I click the buttons on the page I get an error message that tells me that ViewState has failed to load, but nothing else happens.  Do I need to do anything special to the page in order to handle the events?

.aspx page markup

<telerik:RadAjaxManager ID="radAjaxManager" runat="server"
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="radOrgNodeTree"
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="radOrgNodeTree" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
</telerik:RadAjaxManager> 
 
<telerik:RadTreeView ID="radOrgNodeTree" runat="server" 
    AllowNodeEditing="false" 
    OnClientLoad="tree.load" 
    OnClientNodeClicking="tree.nodeClicking" 
    OnClientNodeClicked="tree.nodeClicked" 
    OnClientContextMenuShowing="tree.contextMenuShowing" 
    OnClientMouseOver="tree.mouseOver" 
    OnClientContextMenuItemClicked="tree.contextMenuItemClicked" 
    > 
    <ContextMenus> 
        <telerik:RadTreeViewContextMenu  
            ID="orgNodeContextMenu"  
            runat="server"  
            ClickToOpen="true"  
            Skin="Vista"
            <Items> 
                <telerik:RadMenuItem Text="Add New..." Value="add" /> 
                <telerik:RadMenuItem Text="Edit" Value="edit" /> 
                <telerik:RadMenuItem Text="Delete" Value="delete" /> 
                <telerik:RadMenuItem Text="Collapse All" Value="collapse" /> 
            </Items> 
        </telerik:RadTreeViewContextMenu> 
    </ContextMenus> 
</telerik:RadTreeView> 

code behind
        protected void Page_Load(object sender, EventArgs e) { 
 
            if(!IsPostBack) { 
 
                TreeNodeTemplate treeNodeTemplate = new TreeNodeTemplate(); 
                treeNodeTemplate.Command += treeNodeTemplate_Command; 
                radOrgNodeTree.NodeTemplate = treeNodeTemplate; 
                //set data source 
            } 
 
            radOrgNodeTree.DataBind(); 
        } 
 
        private void treeNodeTemplate_Command(object sender, CommandEventArgs e) { 
            //... 
        }

template class

private class TreeNodeTemplate : ITemplate { 
 
        public event CommandEventHandler Command; 
 
        private void OnCommand(CommandEventArgs e) { 
 
            if (Command != null) { 
                Command(this, e); 
            } 
        } 
 
        public void InstantiateIn(Control container) { 
            //... 
 
            Button saveButton = new Button(); 
            //set properties 
            saveButton.Command += saveButton_Command; 
            //data binding event handler 
            //add to controls collection 
 
            //... 
        } 
 
        private void saveButton_Command(object sender, CommandEventArgs e) { 
            OnCommand(e); 
        } 
    } 





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