Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
209 views
hi
 I am trying to use both rtl anf ltr commands in my editor , i have search forum alot , and finally i found a code that solved the problem a little , but i want to modify this code , for example like MSWord when i want to write Farsi direction sets to rtl , and when i want to write latin direction sets to ltr , but with this code i just can set direction rtl or ltr,not both.

Thanks

-----------------------------------------------------------------------------------------------------------------

                                 <telerik:RadScriptManager ID="ScriptManager1" runat="server" EnableScriptCombine="False" />
                                    <telerik:RadEditor ID="txtContent" runat="server" Width="100%" Skin="Telerik" EnableResize="False"
                                        ToolsFile="~/admin/Rad-Editor/Tools.xml" ExternalDialogsPath="~/RadControls/Editor/EditorDialogs"
                                        ToolbarMode="Default" StripFormattingOnPaste="MSWordNoFonts" ContentFilters="None"
                                        AllowScripts="True" ImageManager-MaxUploadFileSize="20971520" DocumentManager-MaxUploadFileSize="20971520"
                                        FlashManager-MaxUploadFileSize="20971520" MediaManager-MaxUploadFileSize="20971520">
                                    </telerik:RadEditor>

                                    <script type="text/javascript">
                                                                            Telerik.Web.UI.Editor.CommandList["RTL"] = function(commandName, editor, args) {
                                                                            var oElem = editor.getSelectedElement();
                                                                                  
                                                                            if ( oElem && oElem.tagName == "P") {
                                                                                oElem = "<p dir='rtl' style='text-align: right'>" + editor.getSelectionHtml() + "</p>"
                                                                                    oElem.setAttribute("dir", "rtl");
                                                                                    oElem.style.textAlign = "right";
                                                                               }
                                                                                 
                                                                               else if (editor.getSelectionHtml())//There is some selection
                                                                                {

                                                                                    var toPaste = "<p dir='rtl' style='text-align: right'>" + editor.getSelectionHtml() + "</p>";
                                                                                    editor.pasteHtml(toPaste);
                                                                                }
                                                                             
                                                                            }

                                                                            Telerik.Web.UI.Editor.CommandList["LTR"] = function(commandName, editor, args) {
                                                                                var oElem = editor.getSelectedElement();

                                                                                if ( oElem && oElem.tagName == "P") {
                                                                                    oElem = "<p dir='ltr' style='text-align: left'>" + editor.getSelectionHtml() + "</p>"
                                                                                    oElem.setAttribute("dir", "ltr");
                                                                                    oElem.style.textAlign = "left";
                                                                                }

                                                                                else if (editor.getSelectionHtml())//There is some selection
                                                                                {

                                                                                    var toPaste = "<p dir='ltr' style='text-align: left'>" + editor.getSelectionHtml() + "</p>";
                                                                                    editor.pasteHtml(toPaste);
                                                                                }

                                                                             
                                                                            } 
Rumen
Telerik team
 answered on 02 Nov 2011
3 answers
315 views
Hi,

I would like to know if the radFileExplorer can have a preview on the document uploaded in the sharepoint document library?

And can the RadFileExplorer also carry over the permission of the sharepoint folder/sub folders when it renders the treeview for specific users?

Thanks,
Jo
Dobromir
Telerik team
 answered on 02 Nov 2011
1 answer
212 views
I have a dataset ds which contains Image which i want to display , look at the code below

int uid = int.Parse(Session["UserId"].ToString());
ds = new DataSet();
string urprofile = "SELECT * FROM [Mimage] WHERE UID=" + uid + "";
ds = dbClass.ReturnDS(urprofile);
var image = ds.Tables[0].Rows[0]["Image"];
Thumbnail.DataValue =(byte[])image;
However this throws an error which i am attaching ...
Help..??
Tsvetina
Telerik team
 answered on 02 Nov 2011
1 answer
126 views
Hi,
I face a problem with COPY functionality in Firefox 7.0.1.
when i click on COPY button it open a dialog with following message
" please use Ctrl+c to copy".
same problem with PASTE functionality.
i attached a snapshot.
please give me solution.
thanks in advance.
Rumen
Telerik team
 answered on 02 Nov 2011
1 answer
179 views
How can I apply skin to html table or div, I trying to fix background style of my two toolbars,
one left aligned and second right aligned and between them there is white background
that i want to fix.
Shinu
Top achievements
Rank 2
 answered on 02 Nov 2011
3 answers
143 views
Hello,

I have added a resource to my scheduler which shows as a dropdown. I need the dropdown to display different values depending on which appointment is selected. What is the best way to go about doing this? Is there an event that I can use to populate the resource just before the edit form displays?
Ivana
Telerik team
 answered on 02 Nov 2011
1 answer
77 views
Hi;
We have an unsual requirement that using line series defination
We have to display half line solid and towards end dotted line
as shown in the attachment.
Please let me know how can i achive this functionality as
we have a client demo on 2/11/11
Sia
Telerik team
 answered on 02 Nov 2011
2 answers
139 views

Hi ,

Allignment of the edited row when EditMode="InPlace" is not working properly.
And VerticalAlign="Middle" is also not working if the EditMode="InPlace.

Please help.

Thanks
Kishore  
Pavlina
Telerik team
 answered on 02 Nov 2011
2 answers
119 views
I have a RadGrid with a single MasterTableView.  My CommandItem settings have only Export to CSV.  I want this row at the very bottom of the grid so I set CommandItemDisplay="Bottom".  I want my Pager row at the bottom of the data, but above the CommandItem row.  When I put PagerStyle-Position="Bottom" the Pager is put at the very bottom, underneath the CommandItem row.

Is there a way to put the CommandItem row at the very bottom, below the Pager row?
Pavlina
Telerik team
 answered on 02 Nov 2011
1 answer
112 views
Hey Telerik,

So, this is a really bold venture of mine. I would be completely willing to add the code to the Knowledge Base afterwards. 

I would like to move the property "Orientation" from the RadSplitter control to the RadSplitBar. Do you believe that, with a lot of blood, sweat, and tears, one would be able to override all the dependent methods and make this a reality? I would love some information on where to start.

I could go into great detail about why this would be beneficial to me, but suffice to say that I have an extremely large amount of nested controls. These controls resize a lot, and the code for how to calculate resizes has become horrendous. Moving this functionality would allow me to delete hundreds upon hundreds of lines of code which currently exist to bridge the gap.

Looking forward to hearing a response to this.

Thanks,

Sean
Niko
Telerik team
 answered on 02 Nov 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?