Telerik Forums
UI for ASP.NET AJAX Forum
25 answers
864 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
201 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
107 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
1.1K+ 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
538 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
231 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
800 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
341 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
350 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
12 answers
693 views
I seem to have some issue with GridDateTimeColumn with a culture different from the default.
In particular I use RadGrid1.Culture = New CultureInfo("it-IT") wich uses a date time format like this dd/MM/yyyy HH:mm
I set in the declarative aspx section (web forms) of GridDateTimeColumn those settings: 
DataFormatString="{0:dd/MM/yyyy}"
PickerType="DatePicker"
FilterDateFormat="dd/MM/yyyy"
EnableTimeIndependentFiltering="true"

Nonetheless I'm facing 2 problems when filtering:
1- It seems dd/MM format is not recognized and filtering always happens with MM/dd format
2- The resulting SQL (not LINQ) FilterExpression wich converts date to string outputs something like
([CreateDate] >= '22/06/2013,00:00:00') AND ([CreateDate] <= '22/06/2013,23:59:59')
wich results on its own in 2 problems: 
1- SQL server doesn't seem to understand  '22/06/2013,00:00:00' but likes more '22/06/2013 00:00:00' (without the comma)
2- It would have been better to have an ISO format like  '2013/06/22 00:00:00' as SQL filter expression output for the same localization issues you may have with an SQL Server (or other db server) installation that has MM/dd default instead of dd/MM, resulting in an out of range exception for dates like this '22/06/2013,00:00:00'

I'm handling server side filtering in NeedDataSource event, so I could parse the MasterTableView.FilterExpression but this would involve a lot of work, in particular when multiple filters are involved... is there a simpler way of doing it altering the filter expression when it's created and before it can be retrieved from the NeedDataSource event, so to easily transform 
([CreateDate] >= '22/06/2013,00:00:00') AND ([CreateDate] <= '22/06/2013,23:59:59')
to
([CreateDate] >= '2013/06/22 00.00.00') AND ([CreateDate] <= '2013/06/22 23.59.59')

Also (as a suggestion) I would consider outputting this last ISO format by default as an SQL MasterTableView.FilterExpression result in the future Grid versions. This alone would solve all localization issues because you can handle the conversion from input to ISO string based on FilterDateFormat value.




Attila Antal
Telerik team
 answered on 08 Nov 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?