Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
90 views
Hi,

I am using the RadEditor in which i tried to paste using the "Paste as plain text option".
the text i am using is 

1-   قد لا تتمكن دائرة تقنية المعلومات الداخلية من إيجاد الموارد الssلازمة للأنظمة التي ستستحدث في أي من القطاعات في وقت كاف لتجنب التأخير في تنفيذ أي من المشاريع ذات العلاقة، كما قد لا تتوفر الإعتمادات المالية اللازمة فورا عند الحاجة إليها.

2-   عدم التمكن من تقييم الحاجة المستقبلية للمساحة (Capacity )الواجب توفرها في المزودات(Servers ) .



when i paste this text using the "Paste as plain text option" then my page does not render in IE 8.

Please can you guide for this.

Thanks & Regards
Praveen Tomar

Rumen
Telerik team
 answered on 26 Nov 2012
3 answers
195 views
Is telerik UI version 2011.2.712, compatible with IE10?
Slav
Telerik team
 answered on 26 Nov 2012
0 answers
75 views
Hi,

Which server side event is fired when appointment is moveEnd on scheduler?

Thanks,
Mangesh
Mangesh
Top achievements
Rank 1
 asked on 26 Nov 2012
7 answers
780 views
Im trying to use local resource files to localize my Windows as demonstrated here: Documentation, but always get the following error at loading (highlighting my <Localization... line):

Parser Error Message: The resource object with key 'Maximize' was not found.

Here the code:
<telerik:RadWindowManager ID="RadWindowManager1" Skin="WebBlue" runat="server" EnableShadow="true">
                             
                            <Windows>
                                <telerik:RadWindow ID="RadWindow1" runat="server" Title="Site Comments" meta:resourcekey="labSiteComment" Height="420px" Width="710px"
                                ReloadOnShow="true" ShowContentDuringLoad="false" Modal="true"
                                    <Localization Maximize="<%$ Resources:RadWindow, Maximize %>" Minimize="<%$ Resources:RadWindow, Minimize %>"
                                    Close="<%$ Resources:RadWindow, Close %>" PinOff="<%$ Resources:RadWindow, PinOff %>"
                                    PinOn="<%$ Resources:RadWindow, PinOn %>" Reload="<%$ Resources:RadWindow,Reload %>"
                                    Restore="<%$ Resources:RadWindow, Restore%>" Cancel="<%$ Resources:RadWindow, Cancel %>"
                                    OK="<%$ Resources:RadWindow, OK %>" No="<%$ Resources:RadWindow, No %>" Yes="<%$ Resources:RadWindow, Yes %>" />
                                </telerik:RadWindow>
                            </Windows>
                        </telerik:RadWindowManager>

I also tried putting the <Localization> under the RadWindowManager as done here: Demo, but same results. And yes the resource files ("RadWindow.resx" and "RadWindow.fr-CA.resx") are in my "App_GlobalResources" folder.

The only way I can do it is by setting the string server-side. Is there a way I can access the resource file server-side?
public void LocalizeWindowManager(ref RadWindowManager Manager, string strCultureCode)
       {
           if (Manager != null)
           {
               if (strCultureCode == "fr-CA")
               {
                   Manager.Localization.Close = "Fermer"; //would like to get string from resource file (RadWindow.fr-CA.resx) instead
               }
               
           }
       }

Anyone can help?

TIA
Olivier
Top achievements
Rank 2
 answered on 26 Nov 2012
4 answers
146 views
Hello

Can you help me ?!

I've a grid with a textbox and  a combobox
With editing  (InPlace), i want to rebind the combox with new data depending on textbox value

<Grid......

1er Column
<telerik:GridTemplateColumn UniqueName="Dep" DataField="Dep" HeaderText="Dept" AllowFiltering="false">                          
      <ItemTemplate>
              <%# DataBinder.Eval(Container.DataItem, "Dep")%>

                          </ItemTemplate>
                                    <EditItemTemplate>
                                              <telerik:RadNumericTextBox ID="ntbDept" DataType="System.Integer" runat="server" Width="100%" AutoPostBack="true" ></telerik:RadNumericTextBox>
                                    </EditItemTemplate>                                                                        
                                                
/telerik:GridTemplateColumn>

2 Colum

<telerik:GridTemplateColumn UniqueName="NomCommune" DataField="NomComInsee" HeaderText="Commune" AllowFiltering="false">                          
    <ItemTemplate>
             <%# DataBinder.Eval(Container.DataItem, "NomComInsee")%>
    </ItemTemplate>
                                                    
     <EditItemTemplate>
    
                   <telerik:RadComboBox ID="cbCommune" runat="server" Width="90%" DropDownWidth="400" MarkFirstMatch="True" Filter="StartsWith">  </telerik:RadComboBox>
       </EditItemTemplate>     
       <HeaderStyle Width="40%" />
       </telerik:GridTemplateColumn>


And the code behind
On my grid  ItemDataBound ....

dim dt as new datatable
...fill dt with sqladpter (depending on NomCommune) .... That OK

 Dim cbCommune As RadComboBox = DirectCast(item.FindControl("cbCommune"), RadComboBox)
 cbCommune.DataSource = dt
 cbCommune.DataValueField = "CInsee"
 cbCommune.DataTextField = "NomCom"
 cbCommune.DataBind()

cbCommune is OK but the combobox in the grid  is not updated


PLEASE  HELP ME

Thank a lot

Anne





pedrotti
Top achievements
Rank 1
 answered on 26 Nov 2012
1 answer
113 views
Hai

I would like to have the sort icon hidden for all the columns. I know how to hide it in aspx, but I have to write it for all the columns. Hope there is a solution in code behind loop through all the column and hide the image.

thanks
Allen
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2012
1 answer
70 views
Hi
    How to show tooltip to the aggregate showing in the footer of the radgrid.
thanks
Savyo
Shinu
Top achievements
Rank 2
 answered on 26 Nov 2012
2 answers
60 views
For some reason, we have to upgrade our project's .net framework's version from 3.5 to 4.5. But the Telerik.Web.UI.dll in our project is still 2009.3.1314.35. And the bugs happened.

All inputs width are all 100% even if you set a width to them. For example you can see the html after the RadNumberTextBox rendered.

<table cellpadding="0" cellspacing="0" class="riTable" style="border-width:0;border-collapse:collapse;width:100%;">
        <tbody><tr>
            <td class="riCell" style="width:100%;white-space:nowrap;"><input type="text" value="1" id="ctl01_ContentPlaceHolder1_ProductDetail1_rptGoods_ctl00_rntbAmount_text" name="ctl01_ContentPlaceHolder1_ProductDetail1_rptGoods_ctl00_rntbAmount_text" class="riTextBox riEnabled" style="width: 100%;" maxlength="524288"><input style="visibility:hidden;float:right;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="ctl01_ContentPlaceHolder1_ProductDetail1_rptGoods_ctl00_rntbAmount" class="rdfd_" value="1" type="text"><input style="visibility:hidden;float:right;margin:-18px 0 0 -1px;width:1px;height:1px;overflow:hidden;border:0;padding:0;" id="ctl01_ContentPlaceHolder1_ProductDetail1_rptGoods_ctl00_rntbAmount_Value" class="rdfd_" name="ctl01$ContentPlaceHolder1$ProductDetail1$rptGoods$ctl00$rntbAmount" value="1" type="text"></td><td class="riSpin"><a class="riUp" href="javascript:void(0)" id="ctl01_ContentPlaceHolder1_ProductDetail1_rptGoods_ctl00_rntbAmount_SpinUpButton"><span>Spin Up</span></a><a class="riDown" href="javascript:void(0)" id="ctl01_ContentPlaceHolder1_ProductDetail1_rptGoods_ctl00_rntbAmount_SpinDownButton"><span>Spin Down</span></a></td>
        </tr>
    </tbody></table>

As you see, there are some width:100% in code, But actually, I have set a width 80px to it.

I used reflector to see the code, and found this. I guess this bug is caused by the code "this.Browser.IsBrowser("Gecko")", can you help me fix that, And build a new dll for me, because I don't have the source code,
and it is hard for us to upgrade the telerik controls to a new version. Thanks.

protected override void RenderContents(HtmlTextWriter writer)
{
    if (this.isOnlyInputRendered())
    {
        this.RenderInputElements(writer);
    }
    else
    {
        writer.AddAttribute("cellpadding", "0");
        writer.AddAttribute("cellspacing", "0");
        writer.AddStyleAttribute(HtmlTextWriterStyle.BorderWidth, "0");
        writer.AddStyleAttribute(HtmlTextWriterStyle.BorderCollapse, "collapse");
        if ((base.DesignMode || !this.Browser.IsBrowser("Gecko")) || ((this.Browser.IsBrowser("Gecko") && !this.setWidth.IsEmpty) && (this.setWidth.Type == UnitType.Percentage)))
        {
            writer.AddStyleAttribute("width", "100%");
        }
        else
        {
            writer.AddStyleAttribute("width", this.setWidth.IsEmpty ? this.defaultWidth.ToString() : this.setWidth.ToString());
        }
        writer.AddAttribute(HtmlTextWriterAttribute.Class, "riTable");
        writer.RenderBeginTag(HtmlTextWriterTag.Table);
        writer.RenderBeginTag(HtmlTextWriterTag.Tr);
        if (this.Label != "")
        {
            writer.RenderBeginTag(HtmlTextWriterTag.Td);
            this.RenderLabel(writer, this.ClientID + "_text");
            writer.RenderEndTag();
        }
        if (this.ButtonsPosition == InputButtonsPosition.Left)
        {
            base.RenderContents(writer);
        }
        writer.AddAttribute("class", "riCell");
        writer.AddStyleAttribute(HtmlTextWriterStyle.Width, "100%");
        if (!base.DesignMode && !this.Browser.IsBrowser("Safari"))
        {
            writer.AddStyleAttribute("white-space", "nowrap");
        }
        if (!base.DesignMode && this.Browser.IsBrowser("Safari"))
        {
            writer.AddStyleAttribute("white-space", "normal");
        }
        writer.RenderBeginTag(HtmlTextWriterTag.Td);
        this.RenderInputElements(writer);
        writer.RenderEndTag();
        if (this.ButtonsPosition == InputButtonsPosition.Right)
        {
            base.RenderContents(writer);
        }
        writer.RenderEndTag();
        writer.RenderEndTag();
    }
}

Vasil
Telerik team
 answered on 26 Nov 2012
3 answers
115 views
Hi,

we're using the Rad Slider in a questionnaire and it doesn't render correctly in Windows 8. I have attached 2 images showing what it looks like. One which shows what it looks like when running Metro UI or in desktop mode not using Compatibility Mode. In Metro Mode only the first slider appears in the page at all. All following sliders do not render. The other image is IE10 running Compatibility Mode which renders the slider correctly and also renders all sliders in the page.

Does anybody have a solution to this?

Thanks!

/Christofer
Slav
Telerik team
 answered on 26 Nov 2012
3 answers
163 views
Hello,

I am adding a context menu to body tag of rad editor control while "EditorContentAreaMode" is set to Div.
Problem is that, it is not showing the context menu on right click in radeditor content area..

Below is some code sample:

Setting Editor properties
Editor.EditModes = EditModes.Design | EditModes.Html;
 
            Editor.Width = new System.Web.UI.WebControls.Unit("100%", CultureInfo.InvariantCulture);
            Editor.Height = 0;
            Editor.AutoResizeHeight = true;
 
            Editor.ToolbarMode = Telerik.Web.UI.EditorToolbarMode.PageTop;
            Editor.ContentAreaMode = EditorContentAreaMode.Div;
            Editor.BackColor = System.Drawing.Color.Transparent;
            //Editor.StripFormattingOnPaste = Telerik.Web.UI.EditorStripFormattingOptions.MSWordRemoveAll;
            Editor.StripFormattingOptions = EditorStripFormattingOptions.MSWordRemoveAll;
 
            Editor.ToolsFile = "/Modules/HtmlArticle/ToolsFile.xml";
            InternalLinks EditorLinks = new InternalLinks();
            Editor = EditorLinks.LoadLinks(Editor);
            Editor = CSSClass.LoadCSSToParagraphList(Editor);
            Editor.CssClasses.Clear();
            Editor.CssFiles.Clear();
            Editor.CssFiles.Add("/mb/pub/css/default.css");
            Editor.CssClass = "mb_modules_HtmlArticle_articleEditors";

Adding context menu

   EditorTool SaveDraftTool = new EditorTool();
  SaveDraftTool.Text = "Save Draft";
  SaveDraftTool.Name = "SaveDraft";
  EditorContextMenu forBody = new EditorContextMenu();
  forBody.TagName = "BODY";
  forBody.Tools.Add(SaveDraftTool);
  Editor.ContextMenus.Add(forBody);


shadow
Top achievements
Rank 2
 answered on 26 Nov 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?