Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
165 views
Hi!

I want to create a RadDock on the mousedown event on a button and attach it to the mouse pointer so I can drag and drop it in a raddockzone. Is this possible?
Pero
Telerik team
 answered on 21 Oct 2009
2 answers
124 views
I am trying to replace <noscript> tags with [noscript] in the OnClientSubmit function but when I click the submit button nothing happens. Can you tell me what I'm doing wrong?

function OnClientSubmit(editor, args) {
     var content = editor.GetText();
    
     if (content) {
     newContent = content.replace('<noscript>', '[noscript]');
     newContent = content.replace('</noscript>', '[/noscript]');
     }
     <%=textEditor.ClientID%>.Submit();
     return false;
    }
Lini
Telerik team
 answered on 21 Oct 2009
1 answer
90 views
Hi

I have a grid with 20 columns. I exported the grid data to PDF.

My requirement is, i want to show this generated PDF in landscape format by showing all 20 column's data.

I have set below code for landscape 
<Pdf PageWidth="297mm" PageHeight="210mm" />
now my issue is all the columns in the generated PDF is not properly aligned. Some of the columns are sitting on one other.

How to adjust to view all the columns because i need to print that pdf document for reporting purpose.


Regards,
Satya


Princy
Top achievements
Rank 2
 answered on 21 Oct 2009
1 answer
148 views
I have created a ComboBox on a page and I am adding the SelectedIndexChanged event handler via code in the page load event. When I dynamically add an item to the ComboBox and select the new Item during the adding process I would expect the SelectedIndexChanged event to fire. The AutoPostBack property is set to true and only one item exists in the ComboBox.

Please could someone tell me if I am doing something stupid or if this is a bug with the control.

Thanks.
Princy
Top achievements
Rank 2
 answered on 21 Oct 2009
5 answers
191 views
Hello,

I have a rad grid that need to have diffirent edit popup windows. This example:
http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/popupeditform/defaultcs.aspx
has everything I need except how to specify different edit po pups. Like when  a user tries to edit one row it shows only 3 options for editing, when he tries another row 5 e.t.c.
Aleks A
Top achievements
Rank 1
 answered on 21 Oct 2009
1 answer
129 views
Hi! I have a RadEditor and had customized the control tools but the vertical scrollbar doesn't show in the textarea.

here's the markup:

 

 

<telerik:RadEditor ID="EdtDesc" runat="server" EditModes="Design" OnClientLoad="LimitCharacters"

 

 

 

OnClientPasteHtml="OnClientPasteHtml" >

 

 

 

<Languages>

 

 

 

<telerik:SpellCheckerLanguage Code="en-US" Title="English" />

 

 

 

</Languages>

 

 

 

<Tools>

 

 

 

<telerik:EditorToolGroup>

 

 

 

<telerik:EditorTool Name="Undo" />

 

 

 

<telerik:EditorTool Name="Redo" />

 

 

 

<telerik:EditorSeparator Visible="true" />

 

 

 

<telerik:EditorTool Name="Bold" />

 

 

 

<telerik:EditorTool Name="Italic" />

 

 

 

<telerik:EditorTool Name="Underline" />

 

 

 

<telerik:EditorSeparator Visible="true" />

 

 

 

<telerik:EditorTool Name="JustifyLeft" />

 

 

 

<telerik:EditorTool Name="JustifyCenter" />

 

 

 

<telerik:EditorTool Name="JustifyRight" />

 

 

 

<telerik:EditorTool Name="JustifyFull" />

 

 

 

<telerik:EditorSeparator Visible="true" />

 

 

 

<telerik:EditorTool Name="AjaxSpellCheck" />

 

 

 

</telerik:EditorToolGroup>

 

 

 

</Tools>

 

 

 

<Modules>

 

 

 

<telerik:EditorModule Name="RadEditorStatistics" />

 

 

 

</Modules>

 

 

 

</telerik:RadEditor>

 

<script type="text/javascript">
        var editorList = new Object();
        var editorLengthArray = [4000, 30];
        var counter = 0;

        function isAlphaNumericKey(keyCode) {
            if ((keyCode > 47 && keyCode < 58) || (keyCode > 64 && keyCode < 91)) {
                return true;
            }
            return false;
        }

        function LimitCharacters(editor) {
            editorList[editor.get_id()] = editorLengthArray[counter];
            counter++;

            editor.attachEventHandler("onkeydown", function(e) {
                e = (e == null) ? window.event : e;
                if (isAlphaNumericKey(e.keyCode)) {
                    var maxTextLength = editorList[editor.get_id()];

                    textLength = editor.get_text().length;
                    if (textLength >= maxTextLength) {
                        alert('You are not able to type more than ' + maxTextLength + ' symbols!');

                        e.returnValue = false;
                    }
                }
            });

            var element = document.all ? editor.get_document().body : editor.get_document();
            $telerik.addExternalHandler(element, "paste", function(e) {
                e = (e == null) ? window.event : e;

                var maxTextLength = editorList[editor.get_id()];
                textLength = editor.get_text().length;

                var clipboardLength = window.clipboardData.getData("Text").length;
                textLength += clipboardLength;
                if (textLength >= maxTextLength) {
                    alert('You are not able to type more than ' + maxTextLength + ' symbols!');
                    e.returnValue = false;
                    return false;

                }
            });
        }

        function CalculateLength(editor, value) {
            var textLength = editor.get_text().length;
            var clipboardLength = value.length;
            textLength += clipboardLength;
            return textLength;
        }

        function OnClientPasteHtml(editor, args) {
            var maxTextLength = editorList[editor.get_id()];
            var commandName = args.get_commandName();
            var value = args.get_value();

            if (commandName == "PasteFromWord"
                || commandName == "PasteFromWordNoFontsNoSizes"
                || commandName == "PastePlainText"
                || commandName == "PasteAsHtml"
                || commandName == "Paste") {
                var textLength = CalculateLength(editor, value);
                if (textLength >= maxTextLength) {
                    alert('You are not able to type more than ' + maxTextLength + ' symbols!');
                    args.set_cancel(true);

                }
            }
        }     

    </script>

Hope to find a solution,

Many Thanks!!

Rumen
Telerik team
 answered on 21 Oct 2009
1 answer
111 views
I have radgrid on the page where edit link opens row for edit. On the edit window I create programmatically controls. If the row, we are just editin, includes child rows, Radgrid is created and include edit column where new edit window opens again...
The problem: How to update controls on parent radwindow after child window is closed?

Thanks for you answers!

jari
Georgi Tunev
Telerik team
 answered on 21 Oct 2009
1 answer
168 views
Hi

I got a problem with the tooltip when using it inside a panel. When I hit the textbox "txtProductID" the tooltip shows up as expected. But when I hit "Button1" which causes a partial postback, all hell breaks loose. It then throws the following javascript error:

Telerik.Web.UI.WebResource.axd
 'undefined' is null or not an object'

{Sys.UI.Control.initializeBase(

this);this._element=a;a.control=this}

If I place the tooltip outside the panel it's possible to make postbacks inside the tooltip. But then everything stops working when a postback is made in the outermost panel.

 

 


If I use a regular updatepanel which is set to conditional instead of the radajaxmanager everything works great, but I'd like to use the radajaxmanager. What can I do about it?


<

 

asp:Panel ID="pnlProducts" runat="server" style="display:inline">
   <asp:TextBox ID="txtProductID" runat="server" Width="50" MaxLength="8"></asp:TextBox>

 

   <

 

telerik:RadToolTip ID="RadToolTip1" runat="server" Animation="None" ContentScrolling="None" ShowEvent="OnClick" HideEvent="ManualClose" Width="370" Height="150" ShowDelay="0" HideDelay="0" TargetControlID="txtProductID">

 

      <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">

 

 

         <asp:Button ID="Button1" runat="server" Text="Do postback" CausesValidation="false" />

 

      </telerik:RadAjaxPanel>  

   </

 

telerik:RadToolTip>

 

 

 

</asp:Panel>

 

 

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" EnableAJAX="true">

 

   <AjaxSettings>

      <telerik:AjaxSetting AjaxControlID="pnlProducts">

 

 

         <UpdatedControls>

 

 

            <telerik:AjaxUpdatedControl ControlID="pnlProducts" />

 

         </UpdatedControls>

 

 

      </telerik:AjaxSetting>

 

   </AjaxSettings>

 

 

</telerik:RadAjaxManager>

 

 

 

 

 

Svetlina Anati
Telerik team
 answered on 21 Oct 2009
2 answers
94 views
Hi all,

I have a radgrid which using a radajaxloadingpanel while loading it works fine, but i have some problems while using radwindow as well. I use radwindow from which i can call a rebind to the grid, and it is here my problem appears, cause the loadingpanel is shown at the screen at the position of the radgrid even if the grid is covered by radwindows. How can I let the radwindow become in "higher priority" than the loadingpanel, such that the radwindow covers the loadingpanel and not vice versa.

Best regards...
Ahrensberg
Top achievements
Rank 1
 answered on 21 Oct 2009
3 answers
212 views
hi all,

having an issue with teh hover state of both these classes rtPlus and rtMinus.

The graphic PlusMinus.gif disappears on mouseover events..

using Telerik.Web.UI.dll ver v2.0.50727 andI have set the following on my radtreeview

<Telerik:RadTreeView ID="RadTreeView2" runat="server" Visible="true" Runat="server" Skin="Default" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="true" EnableEmbeddedScripts="true"></Telerik:RadTreeView> 

many thanks


Kamen Bundev
Telerik team
 answered on 21 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?