Telerik Forums
UI for ASP.NET AJAX Forum
0 answers
155 views

Hello,
Current highlight method in RadComboBox use an <em> tag and this make a word break in Arabic Like languages (Arabic, Persian, Urdu,...) my suggestion is changing highlight way from <em> to <span class="highlight"> .
If any one wants to  make a  multi language site and have same problem please tell telerik.

This is my converstion with telerik.

Kind regards,
Mostafa Anooseh

  • Posted on on May 5

    Hello Mostafa,

    As Albert has noted the highlighting code is not easy to change without breaking all existing skins. Introducing breaking changes is rather annoying for our customers and we try to reduce such cases to the minimum. This is the main reason we are reluctant to make this change in the highlighting implementation. For the time being we would propose manually patching the javascript should anyone else report this problem with Arabic languages. I hope you understand our position.

    All the best,
    Atanas Korchev,
    the Telerik dev team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  • Mostafa

    Posted on on May 5

    Hello Abert,
    I can't understood:

    1. You are unfamiliar with Arabic like languages.
    2. RadCombo has a bug.
    3. I try to explain the bug for you.
    4. and I provide a so simple solution to resolve the problem. (that I think you can do it in 1 hour)
    5. You still do not want to resolve the problem????!!!!!!!!!!

    Note: you are using an approch like my solution for this bug  in RadEditor Find section.

    Kind regards,
    Mostafa Anoosheh

     

     

     

  • Posted on on May 4

    Hello Mostafa,

    This issue is logged however I cannot promise we would be able to fix that issue for the official release. If other users report this issue we will consider raising its priority! Thank you for your understanding.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  • Mostafa

    Posted on on May 4

    Hello Albert,
    Thanks for reply.
    I already updated javascript file.
    But it's important to update your approch before next official release.

    Kind regards,
    Mostafa Anoosheh
  • Posted on on May 4

    Hello Mostafa,

    You are right we are not experts in Arabic like languages. Unfortunately fixing this bug requires rewriting of the whole highlighting logic and skins which we cannot undertake right now. The only thing we can do is provide a patch for the javascript (not officially incorporated) if this is a major showstopper for you.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  • Mostafa

    Posted on on May 1

    Dear Albert,
    Thanks for reply.
    I think you have not enough information about Arabic like languages.
    In Arabic like languages (Arabic, Persian, Urdu,...) we have two type of letters.
    Some of them are synthesis type letter like س، ل، ... and must join the next letter inside the word.
    When we use <em> tag the word will break to two and it's wrong but with span tag we will get correct view of words.
    Please check attached htm file as a simple sample.

    Kind Regards
    Mostafa Anoosheh

  • Posted on on Apr 29

    Hello Mostafa,

    I still don't see the problem. I have attached a screenshot which shows how it looks at my side. I suggest you send me a screenshot which highlights the problematic behavior.

    Regards,
    Albert
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  • Mostafa

    Posted on on Apr 29

    Hello Albert,
    Thanks for reply.
    You can reproducethe problem:
    Please add these words to data
    المدرسة
    المدرس

    and search for
    مدرس
    or
    المدرس

    Best regards
    Mostafa Anoosheh
  • Posted on on Apr 29

    Hi Mostafa,

    We tried to reproduce this issue locally to no avail. Highlighting seemed to work as expected as is (see attached screenshot). Could you provide more details how to reproduce that problem?


    Regards,
    Albert
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  • Mostafa

    Posted on on Apr 29

    Hello Simon,
    I think actualy this is a bug in RadComboBox.
    Filter option is an important feature of RadCombo and this bug make it inusable.
    Please let me know, when you want to solve this problem?

    Best regards
    Mostafa Anoosheh

  • Mostafa

    Posted on on Apr 14

    Hello Simon,
    Thanks for reply & points.

    Best regards
    Mostafa Anoosheh
  • Posted on on Apr 14

    Hi Mostafa,

    Thank you for writing to us about the new feature.

    Changing the way the Filter currently works would require a lot of modifications to RadComboBox's current functionality. In this sense, we will only log this as a future enhancement of the control and will consider it in the future.

    Unfortunately a workaround outside of the control's code is unavailable at the moment.

    All the best,
    Simon
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
  • Mostafa

    Posted on on Apr 14

    Hello,
    When we have a RadComboBox with Filter option you use an <em> tag to show highlighted part of words; but in some languages like Arabic if we use <em> the word will be break.
    My suggestion is replace <em> tag with <span class="highlight"> tag to solve this problem.

    Another question how I can do that at this time?

    Sincerely yours,
    Mostafa Anoosheh
  • Mostafa Anoosheh
    Top achievements
    Rank 1
     asked on 14 May 2009
    2 answers
    189 views
    Hello Telerik,

     

        In Rad Editor html view, when we paste an html content in IE,
    <div>

    <script language="javascript" type="text/javascript" src="http://www.rsscontenttool.com/feed.js?source=0&amp;url=http://www.npr.org/rss/rss.php?id=1066&amp;width=300&amp;text_alignment=Left&amp;font=-1&amp;text_size=undefined&amp;frame_enabled=false&amp;frame_color=AFAACA&amp;link_color=AFAACA&amp;link_background_color=ffffff&amp;link_spacing=1&amp;max_items=5&amp;new_window=true&amp;show_xml_button=false"></script>

    </div>
    then click Design->HTML->Design view, a javascript error occurred. ie, Permission denied

     

    But its work's fine in firefox.

    <telerik:RadEditor ID="RadEdit" Skin="Web20" runat="server" EnableViewState="false" ContentFilters="None"></telerik:RadEditor>

    Thanks,
    Tiju

     

     

    Tiju
    Top achievements
    Rank 1
     answered on 14 May 2009
    0 answers
    151 views
    I have built a treeview with 2 levels.
    Level 2 has a RadTreeViewContextMenu with several RadMenuItem's - Add, edit, delete copy etc...
    The delete RadMenuItem must be hidden if there is only 1 node at level 2 within the parent.

    I am easily able to hide a RadTreeViewContextMenu - RadMenuItem with the following syntax:

     

     

    treeview.ContextMenus[i].Items[i].Visible = false;}

    but this will hide the delete RadMenuItem for ALL nodes at level 2 in all level 1 nodes.

    Is it possible to hide a RadMenuItem within a group of nodes?

    eg ..........
    Parent A
        child 1 // display delete RadMenuItem
        child 2 // display delete RadMenuItem
        child 3 // display delete RadMenuItem
    Parent B
        child 1 // HIDE the delete RadMenuItem


     

    mike
    Top achievements
    Rank 1
     asked on 14 May 2009
    3 answers
    239 views

    Hi ,
    Is there a way for creating a deep copy of a RadGrid.

    I have a RadGrid that is set at design time , so  in the run time I want to create a deep copy of the Grid
    so I can change the columns, operate with the values etc.  so at the end  the originally grid is not changed.

    It is nice if this some how works automatically , because I have over 100 Grids, its not wise to make separate code for every Grid.


    Example:
       it should work something like this :

    RadGrid rgCopy =  new RadGrid();
    rgCopy =  createCopy(rgOriginal);


    Is this possible ?

    Regards

    Emeleen
    Top achievements
    Rank 1
     answered on 13 May 2009
    2 answers
    142 views
    Hi

    I have been struggling with RAD Grid all day today. But i couldn't find if we can manipulat Rows/cells on client side.

    E.g., I want to assign value to the tooltip of some cells based on the value of the cell, when a row is data bound. Can i do something like:

    eventArgs.row.cells["Name"].tooltip = 'xyz';


            <Columns>
              <telerik:GridBoundColumn DataField="ID" HeaderText="ID" />
              <telerik:GridBoundColumn DataField="Name" HeaderText="Name" />
              <telerik:GridBoundColumn DataField="Age" HeaderText="Age" />
              <telerik:GridBoundColumn DataField="Sex" HeaderText="Sex" />
              <telerik:GridBoundColumn DataField="Email" HeaderText="Email" />
              <telerik:GridBoundColumn DataField="Phone" HeaderText="Phone" />
            </Columns>
    Asad
    Top achievements
    Rank 1
     answered on 13 May 2009
    7 answers
    289 views
    Hi there,

    I've spent hours trying to discover what can be causing this problem and have not managed to find the solution anywhere in the Telerik forums or Knowledge Base yet.

    I have a RadProgressArea displaying progress for a single file upload field, which uses an ordinary <input type="file" /> control. The progress area displays correctly when the page is posted back when hitting an Upload button (the button has a causesvalidation="false" attribute so it doesn't trigger the validator mentioned below).

    The page also contains a textbox with a (clientside) RequiredFieldValidator, and a Submit button. If the Submit button is clicked when the textbox is empty, the validator correctly prevents the postback from occurring. If the Upload button is subsequently clicked, the upload works (the file size is eventually displayed back to the screen when the upload is complete) but the RadProgressArea does not get displayed.

    I'm testing locally so I tend to use large files to test with, 200-300MB

    Here's my code:
    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="RadUploadTest._Default" %> 
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
     
    <%@ register tagprefix="rad" assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" %> 
     
    <html xmlns="http://www.w3.org/1999/xhtml" > 
    <head runat="server"
       <title>Untitled Page</title> 
    </head> 
    <body> 
        <form id="form1" runat="server"
          <div> 
             <input type="file" id="input" runat="server" /> 
             <asp:button id="btn" runat="server" onclick="ClickUpload" text="Upload" causesvalidation="false" /> 
     
             <asp:scriptmanager id="sm" runat="server"></asp:scriptmanager> 
             <rad:radprogressarea id="radProgressArea" runat="server" style="z-index: 100;" /> 
             <rad:radprogressmanager id="radProgressManager" runat="server" /> 
     
             <br /> 
             <br /> 
     
             File size: <asp:literal id="literalFileSize" runat="server" /> 
     
             <br /> 
             <br /> 
             <br /> 
             <br /> 
     
             Description: 
             <asp:textbox id="textDescription" runat="server" /> 
             <asp:requiredfieldvalidator id="valDescriptionRequired" 
                   controltovalidate="textDescription" 
                   display="Dynamic" 
                   runat="server" 
                   text="*" /> 
     
              <asp:button id="btnAnotherPostback" runat="server" text="Postback" onclick="ClickPostback" /> 
          </div> 
       </form> 
    </body> 
    </html> 

    using System; 
    using System.Web.UI; 
     
    using Telerik.Web.UI; 
     
    namespace RadUploadTest { 
     
       public partial class _Default : Page { 
     
          protected void ClickUpload(object sender, EventArgs e) { 
             RadUploadContext uploadContext = RadUploadContext.Current; 
     
             if (uploadContext != null && uploadContext.UploadedFiles.Count == 1) { 
                UploadedFile file = uploadContext.UploadedFiles[0]; 
     
                if (file != null
                   literalFileSize.Text = file.ContentLength.ToString(); 
             } 
          } 
     
          protected void ClickPostback(object sender, EventArgs e) { 
             Page.Validate(); 
          } 
     
       } 
     

    Can anyone help me out?

    Thanks
    Nick
    Nick Jensen
    Top achievements
    Rank 1
     answered on 13 May 2009
    2 answers
    387 views
    I receive the ajax error ONLY when the following conditions are met:1. I'm using Internet Explorer.2. I try to upload a file from our network (not my local machine), and the file is large enough to invoke the progress handler.* Everything works fine when I upload the exact same file from my local machine.* And also everything works fine in Firefox, when uploading a large file from our network.Please note that the file does upload successfully, just the rad progress handler fails.Source url returned invalid content:---------------------------Windows Internet Explorer---------------------------RadUpload Ajax callback error. Source url returned invalid content: var rawProgressData = {InProgress:true,ProgressCounters:true,CurrentOperationText:'\\mynetwork\users\nprather\My Documents\Temp\big.txt',PrimaryTotal:'21.22MB',PrimaryValue:'9.48MB',PrimaryPercent:'45',SecondaryValue:'0',Speed:'9.19MB/s',TimeElapsed:'1031',TimeEstimated:'1278'};Telerik.RadUploadProgressHandler.ashx?RadUrid=c64c41ef-28b9-4829-948b-6d8290bcb45cDid you register the RadUploadProgressHandler in web.config?Please, see the help for more details: RadUpload for ASP.NET Ajax - Configuration - RadUploadProgressHandler.---------------------------OK   ---------------------------
    Pierre
    Top achievements
    Rank 1
     answered on 13 May 2009
    1 answer
    99 views
    Hi,

    I have set of RadNumericTextBoxes in the partial view. I would like to assign the ID with the value from View Data.

    I tried something like ID="test<% ViewData["test"].Tostring() %>.

    But I get an error. Can you please help me to identify the correct syntax?

    thanks
    Dallas Sehlhorst
    Top achievements
    Rank 1
     answered on 13 May 2009
    0 answers
    98 views
    Hi,

    I read all the forum thread on this subject. I try with all the documentation Telerik offer on their website.
    The RadProcessArea never appear. I put a large file, I configure my web.config file.

    Do the machine.config can affect the good work of the control?

    Here my web.config configuration
      <httpRuntime maxRequestLength="102400" executionTimeout= "3600" />
       
    <system.web> 
    ...     
    <httpHandlers> 
          <remove verb="*" path="*.asmx" /> 
          <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
          <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
          <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false" /> 
          <add path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" verb="*" validate="false" /> 
          <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" /> 
        </httpHandlers> 
        <httpModules> 
          <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
          <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" /> 
        </httpModules> 
    ... 
    </system.web> 
     
     
     
    <system.webServer> 
        <validation validateIntegratedModeConfiguration="false" /> 
        <modules> 
          <remove name="ScriptModule" /> 
          <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
          <add name="RadUploadModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" /> 
        </modules> 
        <handlers> 
          <remove name="WebServiceHandlerFactory-Integrated" /> 
          <remove name="ScriptHandlerFactory" /> 
          <remove name="ScriptHandlerFactoryAppServices" /> 
          <remove name="ScriptResource" /> 
          <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
          <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
          <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" /> 
          <add name="Telerik_RadUploadProgressHandler_ashx" verb="*" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" /> 
          <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" /> 
        </handlers> 
      </system.webServer> 


    And my code of my aspx page
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server"
        </telerik:RadScriptManager> 
     
    <telerik:RadProgressManager ID="RadProgressManager1" Runat="server" /> 
     
    <telerik:RadUpload ID="RadUpload1" Runat="server" ControlObjectsVisibility="All"  
        InitialFileInputsCount="2" MaxFileInputsCount="5" MaxFileSize="1000000"  
        ReadOnlyFileInputs="True" Skin="Vista" TargetFolder="~/temp"
     </telerik:RadUpload> 
         
    <telerik:RadProgressArea ID="RadProgressArea1" Runat="server"  
            DisplayCancelButton="True" Skin="Vista"
    <Localization Uploaded="Uploaded"></Localization> 
        </telerik:RadProgressArea> 
        <hr />    <br /> 
     
        <asp:Button ID="Button1" runat="server" Text="submit" /> 


    With this code, I can upload file but without the progress bar. While the upload is processing, my navigator is froze.

    Thanks
    Francis
    Top achievements
    Rank 1
     asked on 13 May 2009
    5 answers
    121 views
    I have a RadGrid set up so that the user can select line items in the grid via a checkbox.  The grid is using the ClientSelectColumn to allow for item selection.  There is also a dropdown list on the control that will rebind the grid with different data based on the item selected in the dropdown list.  Basically the user can selected from a list of items in a dropdown list, which should force the grid on that same user control to rebind with a different set of data (same structure - just different values).  The control is set up to use the RadAjaxManager and RadLoadingPanel to provide partial page postbacks of the grid.  It is desired that the user just see the loading panel as the grid data is rebound.

    When I put this control in a regular ASP.NET page, it works just great.  All the item selections seem to hold and I can view them server side (the user hits a submit button to submit the selected items in the grid).  However, I now need to use this control from within a MOSS 2007 web part.  When the control is used from the web part, the grid selected items no longer seem to hold.

    When the web part first renders, the grid looks good.  I can select items in the grid and the selected line highlights in the grid.  If I then make a selection from the dropdown list and do the partial postback, the grid appears to rebind, but it seems as if something is wrong with the selected items.  If I click on the checkbox to select a row, the row no longer highlights.  When I submit the form, the grid's SelectedItems property is zero - even thought there are selected items in the grid.

    This is really starting to confuse me.  It seems to me like the problem has to be related to the ajax postbacks and being inside a web part, but I'm not sure where or how to fix it. 

    Any suggestions or advice on this would be greatly appreciated.
    Vadim
    Top achievements
    Rank 1
     answered on 13 May 2009
    Narrow your results
    Selected tags
    Tags
    +? more
    Top users last month
    Simon
    Top achievements
    Rank 2
    Iron
    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
    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?