Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
112 views
Hi,

I created custom skin with Legend as follows:
<Legend>
<Appearance>
<ItemMarkerAppearance Figure="Rectangle">
<Border Color="134, 134, 134" />
</ItemMarkerAppearance>
<ItemTextAppearance AutoTextWrap="False" />
<Dimensions Margins="0%, 0%, 0%, 80px"/>
<Border Color="Transparent" />
<Position AlignedPosition="BottomLeft" />
<FillStyle MainColor="" />
</Appearance>
</Legend>

However, the "<ItemTextAppearance AutoTextWrap="False" />" doesn't take any effect.
I tried to set it through code-behind.  It is good.

Does it support in custom skin? 

Any advise.

Thanks,
Wilson


Velin
Telerik team
 answered on 01 Jul 2009
2 answers
152 views
Hi ..
     Is there any option to hide column programmatic way. I need to be done column hiding whenever i click hide button as well as unhide button. So i could know that column hiding is possible if u know the column name which you want to hide in prior.

My question is suppose we have number of columns grid and i want to hide and unhide any column which i prefer.

Plz help me for this

Appu 
Appu
Top achievements
Rank 1
 answered on 01 Jul 2009
1 answer
97 views
Hi All,


I am using Telerik rad grid.I have bound columns as well as button columns(acting as links) in the same grid.
On click of button column I want to open an Edit form which is not showing the bound columns but it will show some text boxes and buttons inside it.

So can anybody help me out and tell how I can achieve this functionality.Help will be highly appreciated.

Ekta
Shinu
Top achievements
Rank 2
 answered on 01 Jul 2009
3 answers
239 views
Hi,

I am using the following in my editor configuration:

EnableEmbeddedBaseStylesheet="False" 
EnableEmbeddedSkins="False"
DialogsCssFile="~/Editor/CSS/DialogCSS.css"
ExternalDialogsPath="~/Editor/Dialogs"

I have included all the right .css files for example:

<link href="~/Editor/CSS/Editor.css" rel="stylesheet" type="text/css" />
<link href="~/Editor/CSS/Window.css" rel="stylesheet" type="text/css" />
<link href="~/Editor/CSS/Editor.Vista.css" rel="stylesheet" type="text/css" />
<link href="~/Editor/CSS/Window.Vista.css" rel="stylesheet" type="text/css" />

The DialogCSS.css contains the following:

/* RadEditor for ASP.NET AJAX Base Stylesheets */
@import url("Ajax.css");
@import url("ColorPicker.css");
@import url("Dock.css");
@import url("FileExplorer.css");
@import url("FormDecorator.css");
@import url("Menu.css");
@import url("PanelBar.css");
@import url("Rotator.css");
@import url("Slider.css");
@import url("Spell.css");
@import url("Splitter.css");
@import url("TabStrip.css");
@import url("Toolbar.css");
@import url("TreeView.css");
@import url("Upload.css");
@import url("Widgets.css");

/* RadEditor for ASP.NET AJAX Skin Stylesheets */
@import url("Ajax.Vista.css");
@import url("ColorPicker.Vista.css");
@import url("ComboBox.Vista.css");
@import url("Dock.Vista.css");
@import url("FormDecorator.Vista.css");
@import url("Grid.Vista.css");
@import url("Input.Vista.css");
@import url("Menu.Vista.css");
@import url("PanelBar.Vista.css");
@import url("Rotator.Vista.css");
@import url("Slider.Vista.css");
@import url("Spell.Vista.css");
@import url("Splitter.Vista.css");
@import url("TabStrip.Vista.css");
@import url("ToolBar.Vista.css");
@import url("TreeView.Vista.css");
@import url("Upload.Vista.css");
@import url("Widgets.Vista.css");

All the dialogs are in the right place but when clicking the Upload button from the Image Manager, the Upload popup has no window border, no background color, as a matter of fact there is no style whatsoever. So I looked at the source code in the rendered browser html and found an error in the coding which I have no control over. Interestingly, when I set the EnableEmbeddedBaseStylesheet="True" and the EnableEmbeddedSkins="True" the problem goes away. below is the error that I have found: Please notice the following, I have included 2 versions, one with EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins set to FALSE (the one I am trying to get working) and one with both set to TRUE:

SET TO FALSE:
html rendered source code when the EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins is set to FALSE there is a missing <div declaration highlighted in bold just before class=:

<div id="RadFileExplorer1_uploadContainer" style="width:0px;height:0px;overflow:hidden;" class="rfeUploadContainer">
<div id="RadFileExplorer1_upload1" class="RadUpload RadUpload_Vista "> 
<ul id="RadFileExplorer1_upload1ListContainer" class="ruInputs"> 
<li class="ruActions" id="RadFileExplorer1_upload1ButtonArea">
<input class="ruButton ruAdd" type="button" id="RadFileExplorer1_upload1AddButton" value="Add" />
</li> 
</ul>
<input id="RadFileExplorer1_upload1_ClientState" name="RadFileExplorer1_upload1_ClientState" type="hidden" /> 
</div>
<input id="RadFileExplorer1_chkOverwrite" type="checkbox" name="RadFileExplorer1$chkOverwrite" />
<label for="RadFileExplorer1_chkOverwrite">Overwrite if file exists?</label>
<div class="rfeUploadInfoPanel">
<dl>
<dt>Max file size allowed:</dt>
<dd>200.00  KB</dd>
<dt>File extensions allowed:</dt>
<dd>*.gif, *.xbm, *.xpm, *.png, *.ief, *.jpg, *.jpe, *.jpeg, *.tiff, *.tif, *.rgb, *.g3f, *.xwd, *.pict, *.ppm, *.pgm, *.pbm, *.pnm, *.bmp, *.ras, *.pcd, *.cgm, *.mil, *.cal, *.fif, *.dsf, *.cmx, *.wi, *.dwg, *.dxf, *.svf</dd>
</dl>
</div>
<div class="rfeUploadButtonContainer">
<input type="submit" name="RadFileExplorer1$btnUpload" value="Upload" id="RadFileExplorer1_btnUpload" />
</div>
</div>
<input id="RadFileExplorer1_ClientState" name="RadFileExplorer1_ClientState" type="hidden" /> 
</div>

SET TO TRUE:
html rendered source code when the EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins is set to TRUE the missing <div declaration above is there as highlightd in bold below:

<div id="RadFileExplorer1_uploadContainer" style="width:0px;height:0px;overflow:hidden;">
<div class="rfeUploadContainer">
<div id="RadFileExplorer1_upload1" class="RadUpload RadUpload_Default "> 
<ul id="RadFileExplorer1_upload1ListContainer" class="ruInputs"> 
<li class="ruActions" id="RadFileExplorer1_upload1ButtonArea">
<input class="ruButton ruAdd" type="button" id="RadFileExplorer1_upload1AddButton" value="Add" />
</li> 
</ul>
<input id="RadFileExplorer1_upload1_ClientState" name="RadFileExplorer1_upload1_ClientState" type="hidden" /> 
</div>
<input id="RadFileExplorer1_chkOverwrite" type="checkbox" name="RadFileExplorer1$chkOverwrite" />
<label for="RadFileExplorer1_chkOverwrite">Overwrite if file exists?</label>
<div class="rfeUploadInfoPanel"><dl><dt>Max file size allowed:</dt><dd>200.00  KB</dd><dt>File extensions allowed:</dt><dd>*.gif, *.xbm, *.xpm, *.png, *.ief, *.jpg, *.jpe, *.jpeg, *.tiff, *.tif, *.rgb, *.g3f, *.xwd, *.pict, *.ppm, *.pgm, *.pbm, *.pnm, *.bmp, *.ras, *.pcd, *.cgm, *.mil, *.cal, *.fif, *.dsf, *.cmx, *.wi, *.dwg, *.dxf, *.svf</dd></dl></div><div class="rfeUploadButtonContainer"><input type="submit" name="RadFileExplorer1$btnUpload" value="Upload" id="RadFileExplorer1_btnUpload" /></div></div></div><input id="RadFileExplorer1_ClientState" name="RadFileExplorer1_ClientState" type="hidden" /> 
</div>

I am not sure how to fix this as it seems to be an internal thing with the way telerik is rendering the final output.

Thank you for your help.

Grant
Tervel
Telerik team
 answered on 01 Jul 2009
1 answer
82 views
Some of our users have come across 2 issues in IE6. I have tested in IE7+8 and FF3 so far w/o issue.

1. For some users but not all the text in the editor is very large.  Almost 4 times the size of that in other users windows running IE6. The text in other parts of the site are not affected.  Just in the editor.

2. This happens when there is a large amount of text in the editor that causes scrolling.  If you scroll to the bottom of the screen and select some text and right click for the context menu the editor will jump back to the top of the text.  The text still stay highlighted, but there is not way of knowing that unless you scroll back to the bottom. If you right click again it will not jump back to the top.

Editor
<telerik:RadEditor runat="server" ID="reTest" Width="522px" Height="200px" TabIndex="11" 
            ToolsFile="ToolsFile1.xml" ToolbarMode="ShowOnFocus" EditModes="Design" 
            ToolsWidth="522px" StripFormattingOptions="AllExceptNewLines" OnClientCommandExecuted="OnClientCommandExecuting"
        </telerik:RadEditor> 

Javascript
        function OnClientCommandExecuting(editor, args) { 
            //If commandName is xxx - then cancel execution 
            if ("Hyperlink Manager Dialog" == args.get_commandName()) args.set_cancel(true); 
            if ("Remove Hyperlink" == args.get_commandName()) args.set_cancel(true); 
            if ("Image Manager Dialog" == args.get_commandName()) args.set_cancel(true); 
            if ("Bold" == args.get_commandName()) args.set_cancel(true); 
            if ("Italic" == args.get_commandName()) args.set_cancel(true); 
            if ("Underline" == args.get_commandName()) args.set_cancel(true); 
        } 
 
        MyModule = function(element) { 
            MyModule.initializeBase(this, [element]); 
        } 
 
        MyModule.prototype = 
        { 
            initialize: function() { 
                MyModule.callBaseMethod(this'initialize'); 
                var selfPointer = this
                this.get_editor().add_selectionChange(function() { selfPointer.CountCharAction(); }); 
                this.get_editor().attachEventHandler("onkeyup"function() { selfPointer.CountCharAction(); }); 
                this.CountCharAction(); 
 
            }, 
 
            //A method that does the actual work - it is usually attached to the "selection changed" editor event 
            CountCharAction: function() { 
                var content = this.get_editor().get_text(); 
                var chars = 6000; 
                if (content) { 
                    chars = chars - content.length; 
                } 
 
                var element = this.get_element(); 
                element.innerHTML = "<span style='line-height:22px'>" + "Characters: " + chars + "&nbsp;</span>"
                if (chars < 0) { 
                    element.style.border = "1px solid red"
                    element.style.backgroundColor = "yellow"
                    element.style.color = "red"
                } 
                else { 
                    element.style.border = ""
                    element.style.backgroundColor = "lightgrey"
                    element.style.color = "black"
                } 
            } 
        }; 
 
        MyModule.registerClass('MyModule', Telerik.Web.UI.Editor.Modules.ModuleBase); 

Tools File
<root> 
    <modules> 
        <module name="RadEditorStatistics" visible="false"  /> 
        <module name="MyModule" visible="true"  /> 
    </modules> 
    <tools> 
        <tool name="AjaxSpellCheck" shortcut="CTRL+F7" /> 
        <tool separator="true"/> 
        <tool name="ConvertToLower" shortcut="CTRL+F3" /> 
        <tool name="ConvertToUpper" shortcut="CTRL+F4" /> 
        <tool separator="true"/> 
        <tool name="Cut" /> 
        <tool name="Copy" /> 
        <tool name="Paste" /> 
        <tool separator="true"/> 
        <tool name="Undo" /> 
        <tool name="Redo" /> 
    </tools> 
    <contextMenus> 
        <contextMenu> 
            <tool name="Cut" /> 
            <tool name="Copy" /> 
            <tool name="Paste" /> 
        </contextMenu> 
    </contextMenus> 
</root> 
 

Rumen
Telerik team
 answered on 01 Jul 2009
7 answers
149 views
Hello,

My grid use autogenerated columns and each column may be sorted clientside (see my previous post for declaration minutes ago).
Some headers are wrapped and when I click on them to sort only the first line of the wrapped header is redrawn.

Seems like a bug ?


CS
Veli
Telerik team
 answered on 01 Jul 2009
1 answer
89 views
Is this possible?
I want to use a background image instead of the backcolor property.
Thank you very much.
Princy
Top achievements
Rank 2
 answered on 01 Jul 2009
5 answers
110 views
This online documentation page refers to a client-side method "get_tableView()" which doesn't appear to exist.

--
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 01 Jul 2009
2 answers
120 views
i have a grid that is populated by ObjectDataSource like this:

<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"   
            SelectMethod="GetOrderLinesFromDB"   
            TypeName="Haworth.Opus.Lynx.BOManager.OrderLineManager">  
            <SelectParameters> 
                <asp:Parameter Name="lynxOrderId" Type="String" DefaultValue="1001" /> 
            </SelectParameters> 
        </asp:ObjectDataSource> 
I would like to expand the grid and open the edit form with a click on the row.  In this scenario, how would I go about that?
Shinu
Top achievements
Rank 2
 answered on 01 Jul 2009
1 answer
74 views
is there a way to add the postback attribute as false to items during data bind?
Princy
Top achievements
Rank 2
 answered on 01 Jul 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?