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

Hi Telerik!

I have a radWizard I'm using, and one of the wizardSteps has a user control which uses several Bootstrap modals.

Everything works wonderfully on PC, Android, etc - except iPad. When the page is loaded on an iPad, the wizard changes to rendermode="mobile", that all works fine.

However, when I launch any Bootstrap modal whose code is within a wizardStep, the screen is disabled and the content is shown only within the radstep content container (see photo).

Again, this only happens on iPad - works fine on everything else.

My code is structured like this:

Page pseudocode:
 
<radWizard>
    <radStep>
        content
    </radStep>
 
    <radStep>
        <myUserControl>
        </myUserControl>
    <radStep>
 
    <radStep>
        content
    </radStep>
<radWizard>
 
 
 
 
myUserControl pseudocode:
 
 
<myUserControl>
    <button>Show Bootstrap Modal</button>
     
    <div id='bootstrapModal' class='modal'>
        My modal content
    </div>
 
</myUserControl>

 

iPad iOS version: 10.1

Thank you!

 

Veselin Tsvetanov
Telerik team
 answered on 02 Nov 2016
3 answers
98 views

I am using radTreeView with server side postback. The tree has 2 levels.

I have implemented scrolling functionality on the treeView so that the tree automatically scrolls to a particular node when the page loads.

So in cases when there are large number of nodes (1000), the page is slow to load and many times the mouse click does not trigger the OnClicked event. 

So if the page is refreshed, the tree does not scroll to that particular node.

 

How can I improve the performance of the radTreeView using server side postbacks only ?

Ivan Danchev
Telerik team
 answered on 02 Nov 2016
15 answers
443 views
Hello,

I am using RadScheduler in ASP.NET MVC - WebService binding. I am setting culture in OnLoad event, but this setting is reverted to English culture after some time (usually 2-3s). I observed, that it happens after my SchedulerProvider method GetAppointments(RadScheduler owner) is called, but not sure.
Do You have any clue what is wrong with that?I am stuck on this for a while.

Thank You

Here is my sample code:

<script runat="server">  
protected override void OnLoad(EventArgs e) 
    { 
       
        // Set appropriate culture for calendar 
        RadScheduler1.Culture = CRM.Web.Code.Globalization.GlobalizationManager.CurrentUICulture; 
         
      
        // Set first and last day of a week 
        switch (RadScheduler1.Culture.ToString()) 
        { 
            case "en-US": 
                RadScheduler1.FirstDayOfWeek = DayOfWeek.Sunday; 
                RadScheduler1.LastDayOfWeek = DayOfWeek.Saturday; 
                break; 
            default: 
                RadScheduler1.FirstDayOfWeek = DayOfWeek.Monday; 
                RadScheduler1.LastDayOfWeek = DayOfWeek.Sunday; 
                break; 
        } 
 
        RadScheduler1.ShowAllDayRow = Model.ShowAllDayEvents; 
        RadScheduler1.WorkDayStartTime = Model.WorkDayStartTime; 
        RadScheduler1.WorkDayStartTime = Model.WorkDayEndTime; 
        RadScheduler1.DayStartTime = Model.DayStartTime; 
        RadScheduler1.DayEndTime = Model.DayEndTime; 
 
 
        // Export iCalendar 
        SchedulerAppointmentContextMenu.Items[0].Text = "ExportICalendar".GetLocalizedGlobal(); 
 
        // Delete 
        SchedulerAppointmentContextMenu.Items[2].Text = "Delete".GetLocalizedGlobal(); 
        base.OnLoad(e); 
        
    } 
    public override void VerifyRenderingInServerForm(Control control) 
    { 
 
    } 
</script> 
   <telerik:RadCodeBlock runat="server" ID="InitialScriptCodeBlock1"
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"  
            EnableScriptGlobalization="true" /> 
 
            <telerik:RadScheduler runat="server" ID="RadScheduler1" AllowDelete="false" AllowEdit="true" RowHeight="16px"   
                AllowInsert="false" MinutesPerRow="15" StartEditingInAdvancedForm="false" StartInsertingInAdvancedForm="false" 
                OnClientAppointmentDoubleClick="OnClientAppointmentDoubleClick" OnClientTimeSlotClick="OnClientTimeSlotClick" OnClientAppointmentWebServiceUpdating="" 
                OnClientAppointmentDeleting="OnClientAppointmentDeleting" OnClientAppointmentDataBound="OnClientAppointmentDataBound" 
                Height="900px" OnClientAppointmentEditing="OnClientAppointmentEditing" OnClientAppointmentContextMenuItemClicked="appointmentContextMenuItemClicked" 
                SelectedView="WeekView" DayHeaderDateFormat="dddd, dd MMMM yyyy" HoursPanelTimeFormat="HH:mm"
                <AppointmentContextMenus> 
                    <%--The appointment context menu interaction is handled on the client--%> 
                    <%--See the JavaScript code above--%> 
                    <telerik:RadSchedulerContextMenu runat="server" ID="SchedulerAppointmentContextMenu"
                        <Items> 
                            <telerik:RadMenuItem Text="Export iCalendar" Value="GenerateVCal" ImageUrl="~/Content/Images/Icons/iCalendar16.png" /> 
                            <telerik:RadMenuItem IsSeparator="True" /> 
                            <telerik:RadMenuItem Text="Delete" Value="CommandDelete" ImageUrl="~/Content/Images/DataEditing/Delete.gif" 
                                Enabled="True" /> 
                        </Items> 
                    </telerik:RadSchedulerContextMenu> 
                </AppointmentContextMenus> 
                <TimelineView GroupBy="Calendar" GroupingDirection="Vertical" /> 
               
                <AdvancedForm Enabled="false" EnableResourceEditing="false" /> 
                <WebServiceSettings Path="~/Models/SchedulerWebService.asmx" ResourcePopulationMode="ServerSide" /> 
            </telerik:RadScheduler> 
        
    </telerik:RadCodeBlock> 
 
Anton
Telerik team
 answered on 02 Nov 2016
1 answer
111 views

Here attached sample RadMenuDemo for telerik version “2013.3.1217.45” and “2016.3.1018.35”.
Tab order (move from the top left to the bottom right) which comes under 508 compliance is not working properly from keyboard for telerik version (2016.3.1018.35).
Whereas tab order was working fine with telerik version (2013.3.1217.45).


Steps to reproduce issue.

1. Browse file RadMenuOnly.aspx.
2. On click of tab button from keyboard, the cursor should navigate to each menu (move from left to right).
3. But radmenu for telerik version (2016.3.1018.35) switch between “Home” and “Product” menu tab.

Configuration details
The attached applications is deployed in IIS version 8.
Operating System :- Window server 2012 R2 Standard.
Browser IE11 (11.0.9600.17690).


Anton
Telerik team
 answered on 02 Nov 2016
1 answer
62 views

Hi all,

Our customer is using a Telerik version 2008.3.1125.20. However, when upgrading to the latest windows server (test environment), many of the components are not working.

They plan to purchase the latest version of the Telerik, but before that, they need some information:

1. Is the new version drastically different from the version indicated above. Meaning, do they have to re-write a lot of code?

2. Can the existing system work as it is (with minimal changes at the script level without touching code-behind) till such time their procurement process goes through?

Please do let me know. Apologies for the brevity. I will respond to questions that you may have with regards to the environment or any other matter.

Best Wishes

Prasso

Rumen
Telerik team
 answered on 01 Nov 2016
1 answer
102 views

Hello,

 

if i bind a RadGrid with a DataTable as DataSource.
There are no columns in the RadGrid only the DataSource had some.

Displaying the data works.

 

I have to let the user group the columns. It don't work if there are none.

GridColumnGroup colGrp = new GridColumnGroup();
            colGrp.Name = TextBox1.Text;
            colGrp.HeaderText = TextBox1.Text;
             
            RadGrid1.MasterTableView.ColumnGroups.Add(colGrp);
             
            RadGrid1.MasterTableView.Columns[0].ColumnGroupName = TextBox1.Text;
            RadGrid1.MasterTableView.Columns[1].ColumnGroupName = TextBox1.Text;

 

Please take a look at the added pictures.

Viktor Tachev
Telerik team
 answered on 01 Nov 2016
1 answer
96 views

I have an odd issue with the display date being in the wrong culture. When simply adding the control on the HTML side, there is no problem.

However, in our situation, we have the datepicker embedded in a user control. The user control is then dynamically created on the fly when needed using the TemplateControl.LoadControl method.

I have read an older article in the UI for WPF forum that I can set the Culture to Null. However, I cannot seem to do this programatically on the ASP.NET side, as we are using UI for AJAX. Any help with this issue would be greatly appreciated.

Viktor Tachev
Telerik team
 answered on 01 Nov 2016
1 answer
50 views

I am facing an issue with close and rebind radwindow when i click button to close window and rebind radgrid in parent page.

it work on IE, chrome but it does not close and rebind data on safari.

 

RadWindow code behind

protected void Button1_Click(object sender, EventArgs e)

    {

         InjectScript.ClosePopup(this, "CloseAndRebind('navigateToInserted')");

    }

InjectScript class

public static void ClosePopup(Page p, string jsFunc)
    {
        ScriptManager.RegisterStartupScript(p, p.GetType(), "CloseWindow", jsFunc, true);             
    }

 

t

 

Eyup
Telerik team
 answered on 01 Nov 2016
1 answer
195 views

 

I've got a custom Context Menu that is accessible from anywhere in my grids for setting gridlines (horizontal, vertical, both, none), or export to excel, which I've gotten to work very well.

I would also like to include the HeaderContextMenu (columns) only, so the users can customize the columns displayed.  I've been completely unsuccessful in getting those to work as one item.  In short, is there an easy way to add the columns like those shown in the HeaderContextMenu to my custom context menu and have it function like it does from the HeaderContext menu, with persisting the displayed columns after the users makes their column display choices.

As it is now, I have my custom context on the grid and the headercontext columns accessible from the header only.

 

 

 

Eyup
Telerik team
 answered on 01 Nov 2016
1 answer
104 views
Hi;
I'm having problems, when I try to export with HtmlFormatProvider the OpenOffice/LibreOffice docx files.
If the file is created with MSWord there's no problems, all works fine, the problem is with LibreOffice/Openoffice generated-documents.
Please, I need help 'cause some of my customers uses LibreOffice to create the docx documents.
+++++++++++++++++++++++ CODE ++++++++++++++++++++++++++
                docxProvider = new DocxFormatProvider();
                htmlProvider = new HtmlFormatProvider();

                if(this._DocXByteArray == null)
                    this._DocXByteArray = System.IO.File.ReadAllBytes(this._DocXPath);

                document = docxProvider.Import(this._DocXByteArray);
                        
                htmlProvider.ExportSettings.DocumentExportLevel = DocumentExportLevel.Fragment;
                htmlProvider.ExportSettings.ImagesExportMode = ImagesExportMode.Embedded;
                htmlProvider.ExportSettings.StylesExportMode = StylesExportMode.Embedded;
                        
                string html = htmlProvider.Export(document); //heres crash with the down error trace
+++++++++++++++++++++++ CODE ++++++++++++++++++++++++++
I'm always getting this error
++++++++++++++++++++++++ ERROR TRACE ++++++++++++++++++++++++
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.ParagraphElementBase.GetDefaultStyleId(IHtmlExportContext context, String& styleId)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.CopyStyleFrom(IHtmlExportContext context, IElementWithStyle element)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.ParagraphElementBase.OnBeforeWrite(IHtmlWriter writer, IHtmlExportContext context)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.Write(IHtmlWriter writer, IHtmlExportContext context)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.WriteContent(IHtmlWriter writer, IHtmlExportContext context)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.Write(IHtmlWriter writer, IHtmlExportContext context)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Export.HtmlExporter.ExportDocumentFragment(IHtmlWriter writer, IHtmlExportContext context)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.Export.HtmlExporter.Export(IHtmlWriter writer, IHtmlExportContext context)
  at Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider.ExportOverride(RadFlowDocument document, Stream output)
  at Telerik.Windows.Documents.Common.FormatProviders.FormatProviderBase`1.Export(T document, Stream output)
  at Telerik.Windows.Documents.Common.FormatProviders.TextBasedFormatProviderBase`1.Export(T document)
++++++++++++++++++++++++ END ERROR TRACE ++++++++++++++++++++++++

Thx
Mihail
Telerik team
 answered on 01 Nov 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?