Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
232 views

My combo box label gets cut off for some reason.

As far as I can see, the background-image uses this resource:

url('/WebResource.axd?d=D0XVlF4dZ6ZUgux5cKk7ZyPm2E6FIhaORkgtz3vriZu6rK_ZO-gRaPkBT_nfVuX88yBxnjVTz5mbU45Eb3S8dVJ5lHJBw5t82CsKyXb485mJzH9EpPeg2yFgd1jBroKGlq9gkpB2PXpYpBDpctx38I7oMVIPsmGoayYdbXGl7uA1&t=636123087020000000')

How would I extend the white label area to fill the rest of it? Or is there another way of implementing this dropdown menu without this resource, as it includes the background label area and the button on the right.

Marin Bratanov
Telerik team
 answered on 12 Nov 2018
25 answers
797 views
hi, kindly help me  I want to show the popup edit form the center of window what ever the  screen size ,
in the center of any screen .
Marin Bratanov
Telerik team
 answered on 12 Nov 2018
4 answers
162 views

Hi,

I have an issue with tabs in the Rad Editor and/or the Telerik.Windows.Documents libraries. In my scenario I use the saved HTML content from the editor and convert it to DOCX using HtmlFormatProvider and DocxFormatProvider in the Telerik.Windows.Document libraries.The reason why I convert it to DOCX is because I need to inject it into other Word documents using the MS JavaScript API for Office.

 

This soultion is working (more or less), however the issue is that the editor inserts four whitespaces to the editor HTML content when I click the tab button.After I convert the HTML to DOCX, this is the resulting OOXML fragment:

  <w:r>
    <w:t>    Hallo</w:t>
  </w:r>

If I do the same tab-operation in Word the result is this:

      <w:r>
        <w:tab />
        <w:t>Hallo</w:t>
      </w:r>

 

I've played around with inserting &#09; and &emsp; in the editor using the InsertTab function in JavaScript, but to no avail. There is still no consistency in the converted ooxml versus  the ooxml produced by Word. I've also tried to set DefaultTabStopWidth on the RadFlowDocument and adding a tabstop to the TabStops collection on the paragraph properties for the relevant style, but I cannot find any working solution.

As our users are allowed to work on the same content in both Word and in the editor in the web application, this causes some issues regarding consistency in text layout/placement.

 

I am using:

Telerik.Web.UI 2018.3.910.45

Telerik.Windows.Documents.* 2018.3.904.40

Internet Explorer 11.0.9600.19155

 

I'm not quite sure where to go from here. I guess it boils down to that the converted DOCX needs to have a <w:tab /> at the position I added a tab in the editor. Is there any possible solution out of the box?

 

Thanks

 

Best regards,

Geir Morten Hagen

 

Tanya
Telerik team
 answered on 12 Nov 2018
1 answer
75 views

Depending on the type of appointment, I would like to set enable=false for the basiccontrolspanel and the advancedcontrolspane and leave the ButtonsPanel enabled on the AdvancedEdit form.  I am able to use .FindControl to get to ButtonsPanel, but the other panels I am cannot.  I get "System.NullReferenceException: 'Object reference not set to an instance of an object.'  I need the user to be able to view the AdvancedEdit, so I cannot set AllowEdits=False.  Doing this will not allow the user to open the form.  Any suggestions aside from finding each control (Subject, StartDate, EndDate, AllDayEvent, etc.) and setting them each to Enabled=false.  I am using UI for ASP.NET AJAX, Version 2018.3.910.45.   

Thank you for your help.

Lisa

Peter Milchev
Telerik team
 answered on 12 Nov 2018
17 answers
971 views
I get this error when I place a RadComboBox inside the edit and insert templates of a template column, with its selected value bound declaratively like this:
<telerik:RadComboBox ID="RadComboBox1" runat="server" DataTextField="Store_Desc" DataValueField="Store_Code" CollapseDelay="200" DataSourceID="storesDataSource" SelectedValue='<%# Bind("Store_Code") %>'>
</telerik:RadComboBox>
How to resolve this in any way other than setting the item manually in the item data bound event.
Ras Ran
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 12 Nov 2018
5 answers
494 views
Hi - just downloaded Telerik controls and now I can't get any of my websites to compile.  I am using VWD Express 2008 and getting messages like

Error    18    The type 'System.Web.UI.ScriptManager' exists in both
'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\3.5.0.0__31bf3856ad364e35\System.Web.Extensions.dll' and
 'c:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll'   
c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\_salesraw\3f1a6d98\c087e20c\App_Web_uqevys61.0.cs    202   

I'm really stuck - any help greatly appreciated.

Roger



shashwat
Top achievements
Rank 1
 answered on 12 Nov 2018
1 answer
197 views
Hello,

I have a RadMenu and RadContextMenu on the same page. This causes a conflict in the style & appearance of the RadMenu. 
Please have a look at the two pages and the rendering of the RadMenu (see attached images).

1. Page with RadMenu alone, see Img RadMenu1.png.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCntxMenu2.aspx.cs" Inherits="CMSNewTests.TestCntxMenu2" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html>
 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
                <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
                <telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" runat="server" ShowToggleHandle="true" Skin="Bootstrap"  IconColumnWidth="20">
                    <Items>
                        <telerik:RadMenuItem Text="Products">
                            <Items>
                                <telerik:RadMenuItem Text="Chairs" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Sofas" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Tables" ></telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>               
                    </Items>
                </telerik:RadMenu>
        </div>
    </form>
</body>
</html>

2. Page with RadMenu and RadContextMenu, see Img RadMenu2.png.

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TestCntxMenu2.aspx.cs" Inherits="CMSNewTests.TestCntxMenu2" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
 
<!DOCTYPE html>
 
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
                <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
                <telerik:RadMenu RenderMode="Lightweight" ID="RadMenu1" runat="server" ShowToggleHandle="true" Skin="Bootstrap"  IconColumnWidth="20">
                    <Items>
                        <telerik:RadMenuItem Text="Products">
                            <Items>
                                <telerik:RadMenuItem Text="Chairs" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Sofas" ></telerik:RadMenuItem>
                                <telerik:RadMenuItem Text="Tables" ></telerik:RadMenuItem>
                            </Items>
                        </telerik:RadMenuItem>               
                    </Items>
                </telerik:RadMenu>
                <telerik:RadContextMenu runat="server" ID="RadContextMenu1" >
                    <Items>
                        <telerik:RadMenuItem Text="Add research field" Value="Add" />
                    </Items>
                </telerik:RadContextMenu>
        </div>
    </form>
</body>
</html>

How can I achieve the style & appearance of the first image when using both controls on the same page? Why is the style & appearance changing at all when inserting the context menu?

Thanks for your answer and help,
Harald

 

Harald
Top achievements
Rank 1
 answered on 09 Nov 2018
3 answers
743 views

I have  an asp label inside a footer template as follows:

<telerik:RadGrid RenderMode="Lightweight" runat="server" ID="RadGrid1" ShowFooter="true">
    <MasterTableView AutoGenerateColumns="false" TableLayout="Fixed">
        <Columns>
            <telerik:GridTemplateColumn DataType="System.Int32" SortExpression="PortalLoadSeconds" HeaderButtonType="TextButton" HeaderStyle-Width="14%" HeaderText="Portal Load Seconds" AutoPostBackOnFilter="true">
                <ItemTemplate>
                    <%#String.Format("{0}", Eval("PortalLoadSeconds")) %>
                </ItemTemplate>
                <FooterTemplate>
                    <asp:Label ID="lbl_TotalSeconds" runat="server"></asp:Label>
                </FooterTemplate>
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

 

How do I access the "lbl_TotalSeconds" label in a vb sub to change its text

Tsvetomir
Telerik team
 answered on 09 Nov 2018
8 answers
288 views

Hi,

I would like to support English and Arabic same time. For example, when the user enter English and Arabic text i want to get same html in javascript but the radeditor content doesn't same with the html text in javascript its like vice versa. I added screenshots about my issue. 

Thank you for your quick reply. 

 

 

 

Rumen
Telerik team
 answered on 09 Nov 2018
3 answers
316 views
Hello everybody !

I encountered a problem like this, I use radeditor on my website, I use Vietnamese to enter data, I enter utf-8 Unicode code, but when viewed in the HTML mode, my document transferred to ISO 8859-1 code, how to set charset encoding for RadEditor?

http://nw9.upanh.com/b4.s34.d4/b33c2f6dc31f28e3cfbcfc2c97ef1ea3_54676399.howtofix.png?rand=0.9001908729977537
Sharing
Top achievements
Rank 1
 answered on 09 Nov 2018
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
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
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?