Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
192 views
I am trying to modify the indent tool to use a left padded div instead of a blockquote.  I understand that the RADEditor uses execCommand that is provided by the browser, but I am trying to override this so that I can use a padded div instead of the browsers implementation.

I am using the OnClientCommandExecuting event in the RADEditor with the following JavaScript, which isn't working exactly as I thought it would.  Any help would be greatly appreciated!

Regards,
Neil

function OnClientCommandExecuting(editor, args) {
        var commandName = args.get_commandName();
        var editorParentSelection = editor.getSelection().getParentElement();
 
        switch (commandName) {
 
            case "Indent":
                      var editorParentSelection = editor.getSelection().getParentElement();
                var currentSelection = editor.getSelection().getRange();
                var wrapper = document.createElement("div");
                wrapper.setAttribute("style", "margin-left: 30px");
                wrapper.innerHTML = currentSelection.endContainer.textContent;
                output = $telerik.getOuterHtml(wrapper);
                 editor.pasteHtml(output);
                console.log(editorParentSelection.outerHTML);
 
                args.set_cancel(true);
                break;
 
            case "Outdent":
                editorParentSelection.outerHTML;
                break;
 
            default:
                break;
        }
 
    }

Neil
Top achievements
Rank 1
 answered on 16 Mar 2011
5 answers
100 views
Hi all,
someone konw why the AppointmentCreated or AppointmentInsert doen't fire when using a CustomSchedulerProvider?
Thank's

Danilo

 

Peter
Telerik team
 answered on 16 Mar 2011
4 answers
93 views
Hi.
Veronica
Telerik team
 answered on 16 Mar 2011
1 answer
111 views

I have a colorpicker that is formatted with a picker button.  In Internet Explorer 6, when selecting a color from the palette, the selected color is not displaying.  This works fine in Firefox or Safari.  When I set the SelectedColor to any color, it does not work either.

 

 

<

 

 

telerik:RadColorPicker runat="server" ID="cpColor" Width="210px" SelectedColor="White" ShowEmptyColor="false" ShowIcon="true" PaletteModes="All" Style="float: left;">

 

 

 

 

</telerik:RadColorPicker>


 

 

Niko
Telerik team
 answered on 16 Mar 2011
0 answers
48 views
Hi,

I need to Show the Weekends as Group using the RadScheduler.


Regards,
Pavan



Pavan
Top achievements
Rank 1
 asked on 16 Mar 2011
3 answers
164 views

i am using Hierarchial Grid(3 levels).
in the first level i am using session parameter to fetch the records .
for the second level i am passing the first level DataKeyName as selectparameter  to fetch records. i have attached the screenshot of the Grid.

i have written insertcommand for the second level where i need MetricMeasureNumber to add new record .
in insertcommand i have used

 

 

GridEditFormInsertItem item = (GridEditFormInsertItem)e.Item;

MetricMeasureNumber =

 

Convert.ToInt32((item["MetricMeasureNumber"].Controls[0] as TextBox).Text);

to get the MetricMeasureNumber,but it is giving null,

please share your experiences,
thanks in advance.

 

Princy
Top achievements
Rank 2
 answered on 16 Mar 2011
3 answers
77 views
When I upload a new version of my code to my site, browser which are opened on the web page emit the following error as in the screenshot.
Is there a way to avoid this?

Thanks
Genady Sergeev
Telerik team
 answered on 16 Mar 2011
5 answers
125 views
I have a user control that consists of a RadUpload, RadProgressManager, RadProgressArea, and a button.  This user control is nested in another user control which is ajaxified by a RadAjaxManager.  I've scoured the forums and tried everything I came across, including adding a call to __doPostBack() and adding a handler to the RadAjaxManager to disable AJAX when my button raises the event.  My click event doesn't roll up to the outer user control or the page its on.  Any suggestions??? I can provide code if necessary, but I think my description makes the scenario clear.  Thanks!!
Kate
Telerik team
 answered on 16 Mar 2011
3 answers
78 views
Hi 

I'm using the formdecorator to style forms! i have a numeric textbox which in ie6 still pulls in an embedded default style or if i set it to not use embedded styles it still doesnt apply the formdecorator skin

<telerik:RadFormDecorator DecoratedControls="Textbox,Textarea,Select,CheckBoxes,RadioButtons,Buttons" DecorationZoneID="FormDecorator" runat="server" />
 <fieldset id="FormDecorator">
            <legend>Company Details</legend>
            <ul>
                <li>
                    <asp:Label AssociatedControlID="TextBox" runat="server">TextBox Label</asp:Label>
                    <asp:TextBox ID="TextBox" runat="server" Width="200"></asp:TextBox>
                </li>
                <li>
                    <asp:Label AssociatedControlID="NumericTextBox" runat="server">NumericTextBox Label</asp:Label>
                    <telerik:RadNumericTextBox ID="NumericTextBox" runat="server"  Width="200"></telerik:RadNumericTextBox>
                </li>
                <li>
                    <asp:Label AssociatedControlID="TextArea" runat="server">TextArea Label</asp:Label>
                    <asp:TextBox ID="TextArea" TextMode="MultiLine" Width="200" runat="server"></asp:TextBox>
                </li>
                <li>
                    <asp:Label AssociatedControlID="RadComboBox1" runat="server">ComboBox Label</asp:Label>                       
                    <telerik:RadComboBox ID="RadComboBox1" Skin="Default" Width="208" runat="server">
                    <Items>
                        <telerik:RadComboBoxItem Text="ComboBox Item" />
                        <telerik:RadComboBoxItem Text="ComboBox Item" />
                        <telerik:RadComboBoxItem Text="ComboBox Item" />
                        <telerik:RadComboBoxItem Text="ComboBox Item" />
                    </Items>
                    </telerik:RadComboBox>
                </li>
                <li>
                    <asp:Label AssociatedControlID="CheckBox" runat="server">CheckBox Label</asp:Label>
                    <asp:CheckBox ID="CheckBox" runat="server" />
                </li>
                <li>
                    <asp:Label AssociatedControlID="RadioButton" runat="server">RadioButton Label</asp:Label>
                    <asp:RadioButton ID="RadioButton" runat="server" />
                </li>
                <li>
                    <asp:Button Text="Submit" runat="server" Width="50" />
                </li>
            </ul>
        </fieldset>


skin file the <telerik:RadNumericTextBox line stops the default skin being set. in my appthemes i have custom skins for combobox, formdecorator. 

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<telerik:RadTabStrip Skin="esPay" EnableEmbeddedSkins="false" runat="server" />
 
<telerik:RadFormDecorator EnableRoundedCorners="false" EnableEmbeddedSkins="false" Skin="esPay" runat="server" />
 
<telerik:RadNumericTextBox EnableEmbeddedSkins="false" Skin="esPay" runat="server"  />                    
 
<telerik:RadComboBox Skin="esPay" EnableEmbeddedSkins="false" runat="server" />

if i firebug the page i can see it adding the wrapper class for the custom skin round the numeric textbox, this works in all but ie6!

any ideas guys?
Bozhidar
Telerik team
 answered on 16 Mar 2011
3 answers
95 views
Hi,
     Currently i am using RadControls for ASP.NET AJAX Q3 2010, where Client-side Script i have used to load editor.
Now my problem, dialogs loading is taking long time even though they is no uploaded files. How can i optimize this dialog loading.
Rumen
Telerik team
 answered on 16 Mar 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?