Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
370 views

Hi Lini/Fiko,

I have struck in between my project.

I have added an ARCHIVE  button to the  TREE CONTEXT MENU as shown in the below screen shot:-

"pic-1.jpg"

Iam able to ARCHIVE the folder but the main problem that I have been facing for the last 3- 4 weeks is that Iam not able to REMOVE that particular folder() form the TREE VIEW, That folder() still exists there(in the TREE MENU) untill or unless we REFRESH the whole page in the browser .

Below is the code that I have been using in my ASPX page:-

"pic-2.jpg"

While the code that I have been using is shown below as :-

"pic-3.jpg"

Please help !

Hope this time it will work ..........

Ajay

Fiko
Telerik team
 answered on 23 Oct 2009
2 answers
325 views
Hi,

I am using delete,edit,upadate and cancel by using below 2 Columns in grid.

1) GridButtonColumn - Delete
2) GridEditCommandColumn - Edit,Update,Cancel.

I want to assign some javascript code to run at client when each of these actions are performed for each Item(Row).

How is this possible ?

Rajasekar Nammalvar
Top achievements
Rank 1
 answered on 23 Oct 2009
0 answers
323 views
PROBLEM

The Telerik.Web.UI.WebResource.axd handler can return uncompressed content for browsers that accept gzip encoding and vice versa

 

SOLUTION

Either upgrade your Telerik.Web.UI assembly to version 2009.3.1118 or higher.

Or, add this code to your Global.asax file:

C#
protected void Application_PostRequestHandlerExecute(object sender, EventArgs e)  
    {  
        HttpApplication app = (HttpApplication)sender;  
     
        if (!app.Request.RawUrl.Contains("Telerik.Web.UI.WebResource.axd"))  
            return;  
     
        HttpCachePolicy cachePolicy = app.Response.Cache;  
        cachePolicy.VaryByHeaders["User-Agent"] = true;      
    }


VB.NET
Protected Sub Application_PostRequestHandlerExecute(sender As Object, e As EventArgs)  
    Dim app As HttpApplication = DirectCast(sender, HttpApplication)  
     
    If Not app.Request.RawUrl.Contains("Telerik.Web.UI.WebResource.axd") Then
        Return
    End If
     
    Dim cachePolicy As HttpCachePolicy = app.Response.Cache  
    cachePolicy.VaryByHeaders("User-Agent") = True
End Sub

UPDATE (11/18/2009): The Accept-Encoding header has been removed from the VaryByHeaders property as this is preventing Internet Explorer 6 from caching the response.

Telerik Admin
Top achievements
Rank 1
Iron
 asked on 23 Oct 2009
8 answers
244 views
Hello,

I'm working on a webpage that contains, among other controls, a dropdownlist and a radgrid.  Whenever an item is selected in the dropdownlist, inside the event handler the radgrid uses that selection to retrieve its data.

The radgrid always contains a clientselectcolumn and two button columns (Edit and View).  Beyond those "constant" ones the rest of the columns are based on the retrieved data, and they vary.  The data columns are sortable, resizeable, and reorderable.  The grid is also filtered from the codebehind.

I am also loading and saving column information for these data columns (size, order, etc) associated with the ddl selection.  Sometimes the columns do have saved settings for the ddl selection, and sometimes they do not (for these I apply some default settings values).

I have tried a number of different approaches from the various RadGrid examples and postings, but none entirely match what I'm doing, and none entirely work.  I am having page lifecycle problems and/or postback problems (some things work and some things don't).

Generally, what kind of approach would you suggest here?  Particularly:
  • How should the "constant" columns be created (in aspx, in the codebehind/at what point, or...)?
  • How should the data columns be generated and at what point (autogenerated, programmatically/at what point...)?
  • When should any saved column settings be applied (at databound, at creation time...)?
  • How do I keep from losing the constant columns on a postback, say, on column reorder?

I appreciate any insight you can provide.  Please let me know if I need to provide more information.

Thanks!
Eve
Pavlina
Telerik team
 answered on 23 Oct 2009
1 answer
135 views
I have a DropDownList and a required field validator. When the form decorator is on, the validation always thinks the selected value is blank. When I turn off the form decorator, everything works fine.

How can I fix it?
Georgi Tunev
Telerik team
 answered on 23 Oct 2009
4 answers
158 views
Is there a way I can align the tab in the slider to the Right of the screen ?
The tab is set to slide out to the bottom from the top, but the tab is horisontally Left aligned.

Thanks in advance
Svetlina Anati
Telerik team
 answered on 23 Oct 2009
3 answers
214 views
Guys,
Can you please help me out here. I know I'm not a first person who is trying to   do this.

I have a RadListBox control that renders some stuff and on ItemDataBound I'm addind one of the control from the the item template to Tooltip manager.  

 

Control image = e.Item.FindControl("imgMenu");  
radTTMgr.TargetControls.Add(image.ClientID, e.Item.DataKey.ToString(), true);   
 

Tooltip manager has OnAjaxUpdate="OnAjaxUpdate"

in my Event Handler I create a new LinkButton and assigned an event handler for OnClick

 

 

protected void OnAjaxUpdate(object sender, ToolTipUpdateEventArgs e) {  
    LinkButton lnkGoTo = new LinkButton();  
    lnkGoTo.CommandName = "goto";  
    lnkGoTo.CommandArgument = e.Value;  
    lnkGoTo.Click += new EventHandler(prodMenu_Click);  
    lnkGoTo.Text = "Go to Product";  
    lnkGoTo.ID= "lnkTemp";  
    e.UpdatePanel.ContentTemplateContainer.Controls.Add(lnkGoTo);  
} 

So far so good here. Everything is executed correctly.  Now in my handler I have some code that should update the value of the editor control and this is not working. Content is being set be not being refreshed. I understand that this is an ajax call an all but how can i update the content in my scenario.

    protected void prodMenu_Click(object sender, EventArgs e) {  
        LinkButton lnkButton = (LinkButton)sender;  
        if (lnkButton == null) return;  
        rePresentation.Content = lnkButton.CommandName;          
    } 

Thanks!

 

 

 

Svetlina Anati
Telerik team
 answered on 23 Oct 2009
1 answer
126 views

Hi,

I am using Radeditor for one of my projects. The same project is used with its 2 instances. In one of my instances of project, the toolbox view of radeditor is very very distorted. You can check the view in the attached file. But in other project which has same code and setting the view is perfect. I could not understand whats the reason for this. The toolsfile.xml is here.

<root>    
    <modules> 
        <module name="RadEditorStatistics" dockingZone="Bottom" enabled="true" visible="true"/>       
        <module name="RadEditorDomInspector" dockingZone="Module" enabled="true" visible="true" /> 
        <module name="RadEditorNodeInspector" dockingZone="Module" enabled="true" visible="true" dockable="false" /> 
        <module name="RadEditorHtmlInspector" dockingZone="Module" enabled="true" visible="false" /> 
        <module name="RadEditorXhtmlValidator" dockingZone="Module" enabled="true" visible="true" dockable="true" /> 
    </modules> 
    <tools name="MainToolbar" isribbon="false" dockable="true">                       
        <tool name="AjaxSpellCheck"/>         
        <tool name="FindAndReplace" shortcut="CTRL+F"/>       
        <tool name="Copy" shortcut="CTRL+C"/>  
        <tool name="Paste" shortcut="CTRL+V"/>  
        <tool name="PasteFromWord" /> 
        <tool name="PasteFromWordNoFontsNoSizes" /> 
        <tool name="PastePlainText" /> 
        <tool name="PasteAsHtml"  /> 
        <tool separator="true"/>  
        <tool name="Undo" shortcut="CTRL+Z"/>  
        <tool name="Redo" shortcut="CTRL+Y"/>  
    </tools> 
    <tools name="InsertToolbar" isribbon="false">         
        <tool name="ImageManager" shortcut="CTRL+G"/>  
        <tool name="ImageMapDialog"/>  
        <tool name="AbsolutePosition" /> 
        <tool separator="true"/>          
        <tool name="FlashManager" /> 
        <tool name="MediaManager" /> 
        <tool name="DocumentManager" />       
        <tool name="TemplateManager" />       
        <tool name="LinkManager" shortcut="CTRL+K"/>  
        <tool name="Unlink" shortcut="CTRL+SHIFT+K"/>                     
    </tools> 
    <tools isribbon = "false">  
        <tool name="Bold" shortcut="CTRL+B"/>  
        <tool name="Italic" shortcut="CTRL+I"/>  
        <tool name="Underline" shortcut="CTRL+U"/>  
        <tool name="StrikeThrough" /> 
        <tool separator="true"/>  
        <tool name="JustifyLeft" /> 
        <tool name="JustifyCenter" /> 
        <tool name="JustifyRight" /> 
        <tool name="JustifyFull" /> 
        <tool name="JustifyNone" /> 
        <tool separator="true"/>  
        <tool name="Indent" /> 
        <tool name="Outdent" /> 
        <tool name="InsertOrderedList" /> 
        <tool name="InsertUnorderedList" /> 
    </tools> 
    <tools isribbon="false">      
        <tool name="ConvertToLower" /> 
        <tool name="ConvertToUpper" />        
        <tool separator="true"/>          
          
        <tool name="InsertTable" /> 
        <tool name="InsertSnippet" /> 
        <tool name="InsertFormElement" /> 
        <tool name="InsertSymbol" />              
    </tools> 
    <tools name="DropdownToolbar" isribbon="false">  
    <tool name="FormatBlock"/>  
        <tool name="FontName"/>  
        <tool name="FontSize"/>  
        <tool separator="true"/>  
        <tool name="FormatStripper"/>         
        <tool name="ApplyClass"/>                 
        <tool name="InsertCustomLink"/>               
        <tool name="ForeColor"/>  
        <tool name="BackColor"/>          
    </tools>      
    <tools name="DialogToolbar" dockingZone="Top" enabled="true" isribbon="false">  
        <tool name="IncreaseSize" shortcut="F10"/>        
        <tool name="DecreaseSize" shortcut="F9"/>     
        <tool name="Print" shortcut="CTRL+P"/>    
        <tool name="Superscript" /> 
        <tool name="Subscript" />         
        <tool name="InsertParagraph" /> 
        <tool name="InsertHorizontalRule" /> 
        <tool name="InsertDate" /> 
        <tool name="InsertTime" />        
        <tool separator="true"/>          
        <tool name="AboutDialog" /> 
        <tool name="Help" shortcut="F1"/>  
    </tools>      
    <tools name="EnhancedEditToolbar" dockingZone="Bottom" dockable="true">  
        <tool name="ToggleScreenMode" shortcut="F11"/>  
        <tool name="ToggleTableBorder" /> 
        <tool name="Zoom" /> 
        <tool name="ModuleManager" /> 
        <tool name="ToggleDocking" /> 
        <tool name="RepeatLastCommand" shortcut="F4"/>        
    </tools>      
    <links> 
        <link name="Telerik" href="http://www.telerik.com">  
            <link name="Products" href="http://www.telerik.com/products">  
                <link name="RadControls suite" href="http://www.telerik.com/radcontrols" /> 
                <link name="RadEditor" href="http://www.telerik.com/radeditor" /> 
                <link name="RadSpell" href="http://www.telerik.com/radspell" /> 
                <link name="RadChart" href="http://www.telerik.com/radchart" /> 
                <link name="RadMenu" href="http://www.telerik.com/radmenu" /> 
                <link name="RadTreeView" href="http://www.telerik.com/radtreeview" /> 
                <link name="RadPanelbar" href="http://www.telerik.com/radpanelbar" /> 
                <link name="RadRotator" href="http://www.telerik.com/radrotator" /> 
                <link name="RadTabStrip" href="http://www.telerik.com/radtabstrip" tooltip="TabStrip" /> 
            </link> 
            <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> 
    <snippets> 
        <snippet name="Order Confirmation">  
                <![CDATA[
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">
                    Dear ____________________,<br />
                    Thank you for inquiring about ____________. Your request will be processed in 48 hours and shipped at the address you have provided. 
                    <br /><br />
                        <b>Please, contact us if you have any problems.</b>
                    </div>
                ]]> 
            </snippet> 
            <snippet name="Email Signature">  
                <![CDATA[
                    <div style="margin-top:30px;width:80%;border-top:1px dotted gray;padding-top:4px;font-family:Arial, Verdana; font-size:11px;">
                    <b>John Wigham</b><br />
                    Senior Web Developer<br />
                        <a href="#">john@mysite.com</a>
                        <br />
                            <br />
                                <i>Disclaimer: The contents of this e-mail are privileged and confidential and intended for the addressees at the specified e-mail addresses only.</i>
                    </div>
                ]]> 
            </snippet> 
            <snippet name="Problem Report Feedback">  
                <![CDATA[
                    <div style="width:300px;border:2px outset #D8D2BD;padding:34px;font-family:Arial, Verdana; font-size:11px;background-color:#F1EFE6;">
                    Hi ____________________,<br />
                    Thank you for reporting this issue. We have verified the problem and it is logged in our system. We will notify you once we have a solution. 
                    <br /><br />
                        <b>Please, contact us if you have any problems.</b>
                    </div>
                ]]> 
            </snippet> 
    </snippets> 
    <symbols></symbols>   
    <fontNames> </fontNames>      
    <fontSizes></fontSizes>  
    <colors></colors>     
    <paragraphs></paragraphs>  
    <classes></classes>  
    <dialogParameters></dialogParameters>  
    <languages></languages>  
    <contextMenus></contextMenus>  
</root> 
<!-- ==============================================================================================  
The ToolsFile must have a valid structure as shown below  
All attributes and their values are case sensitive!   
<root> 
  <modules> 
    <module /> 
    <module/> 
  </modules> 
  <tools> 
    <tool /> 
    <tool /> 
     ...  
  </tools> 
    ...   
  <colors> 
    <color/> 
    <color/> 
  </colors> 
</root>   
 
<tool> element valid attributes:  
   
name (required): Bold Italic Underline StrikeThrough Superscript Subscript   
JustifyLeft JustifyCenter JustifyRight JustifyFull InsertOrderedList InsertUnorderedList   
Outdent Indent Cut Copy Paste PasteFromWord   
PastePlainText PasteAsHtml Print Undo Redo ImageManager   
AbsolutePosition LinkManager Unlink InsertBoldHorizontalRule InsertTable ToggleTableBorder   
FormatBlock ApplyClass FontName  FontSize InsertCustomLink Custom   
InsertSymbol BackColor ForeColor FlashManager MediaManager SpellCheck   
FormatStripper InsertParagraph InsertSnippet Help FindAndReplace DocumentManager   
PasteFromWordNoFontsNoSizes InsertFormElement InsertDate InsertTime TemplateManager ToggleScreenMode   
Zoom ModuleManager ToggleDocking RepeatLastCommand AboutDialog    
   
shortcut  
(not required):  
 The key combination for the specific tool. Examples:  
    <tool name="TemplateManager" shortcut="Ctrl+Shift+Alt+N"/>   
    <tool name="LinkManager" shortcut="Ctrl+L" />   
 
 
<separator> element  
true/false Indicates whether a separator should appear at current position.   
 
<tools> element valid attributes:  
name (required): This string will identify the toolbar.   
enabled (not required): true/false (Indicates whether the tool will be available on the client or not)  
visible (not required):  
 true/false (Indicates whether the tool should appear in the toolbar or not. This toolbar will be available client-side - the property defines only the visibility of the tool.)   
dockable (not required):  
 true/false (Indicates whether you will be able to drag&drop the toolbar to the docking zones)   
 
<module> element valid attributes:  
(module elements should appear as child elements of an element "modules")  
name (required):  
 The friendly name of the module. When in floating mode the name will appear in the tool's titlebar.  
dockable (not required):  
 (Indicates whether you will be able to drag&drop the tool to the docking zones)  
enabled (not required):  
 (Indicates whether the module will be available on the client or not)  
visible (not required):  
 (Indicates whether the module should appear in the toolbar or not. This module will be available client-side - the property defines only the visibility of the module. )   
 
<link> element valid attributes:  
(link elements should appear as child elements of an element "links")  
name (required):  
 Link/Category Name/Alias  
href (not required):  
 URL of the link/category  
target (not required):  
 The target window of the link  
tooltip (not required):  
 The tooltip for the link  
   
<symbol> element valid attributes:  
(symbol elements should appear as child elements of an element "symbols")  
value (required):  
 The symbol to be displayed  
 
<font> element valid attributes:  
(font elements should appear as child elements of a tool element with "name" attribute set to "fontNames")  
name (required):  
 Font Name  
   
<class> element valid attributes:  
(class elements should appear as child elements of an element "classes")  
name (required):  
 Class Alias   
value (required):  
 Class Name   
 
<paragraph> element valid attributes:  
(paragraph elements should appear as child elements of an element "paragraphs")  
   
name (required):  
 Paragraph Alias   
value (required):  
 Paragraph Name   
 
<color> element valid attributes:  
(color elements should appear as child elements of an element "colors")  
value (not required):  
 Hex value of the color   
 
<snippet> element valid attributes:  
(snippet elements should appear as child elements of an element "snippets")  
name (required):  
 Snippet Alias  
   
<language> element valid attributes:  
(language elements should appear as child elements of an element "Languages")  
code (required):  
 Language code  
title (required):  
 Language Title  
   
The contextMenus tag in the Tools file allows you to change the default or specify custom context menus for different HTML elements.  
<contextMenu > element valid attributes:  
(contextMenu elements should appear as child elements of an element "contextMenus")  
forElement (required):  
 The HTML element that will call this menu.  
enabled (required):  
 Defines if this context menu is switched.  
 
The example below shows how to attach custom context menus for <A> and <P> elements.  
 
<contextMenus> 
   <contextMenu forElement="A" enabled="false">  
   </contextMenu> 
   <contextMenu forElement="P">  
       <tool name="JustifyLeft" /> 
       <tool name="JustifyCenter" /> 
       <tool name="JustifyRight" /> 
       <tool name="JustifyFull" /> 
   </contextMenu> 
</contextMenus>               
=============================================================================================== --> 

Please help me...

Thanks,
Vandana Wadhwani

 

 

 

 

Rumen
Telerik team
 answered on 23 Oct 2009
1 answer
77 views

Can I change the color of 
Skin="Forest"
If this uses images, Where are they located. I don't see a skin file anywhere.

If this has already been answered, please point.
Thanks in adv
Fred

 

 

 

 

 

 

 

Kamen Bundev
Telerik team
 answered on 23 Oct 2009
4 answers
194 views
Dear Telerik,

Would it be possible to realize the following: I want the timelineview to start at 08:00 and show 24 slots of half an hour (0:30:00). When I click the arrow to go to the next day, the TimeLineView now just shows me the next 24 slots of half an hour, but I just want it to show the next day, starting from 08:00 again... Would this be possible?
Datamex
Top achievements
Rank 2
 answered on 23 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?