Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
112 views

Hi all, 

currently we have the problem, that if we paste text with "Enter" in it, the br-Tag shows up in the HTML instead of the p-Tag. In the settings we choose new lines as paragraphs. 

We could reproduce this behaviour in the demo editor: 
https://demos.telerik.com/aspnet-ajax/editor/examples/overview/defaultcs.aspx

 

1. Select Paragraps

2. Copy a text with with paragraps

3. Paste it (Even if we use paste plain text)

4. See that there are br-Tags 

Is there anything we can do? 

Best regards,

Anna

Rumen
Telerik team
 answered on 28 Jul 2020
2 answers
112 views

The content of my grid is 100% dynamic, so using NeedDataSource is not an option.  I know the Telerik recommendation for advanced blah blah blah is to use NeedDataSource.  Not going to happen...which brings me to my question.. 

 

How to export the data in the grid, as it exists, to a PDF file without the NeedDataSource event?  Not overly thrilled about the possibility of rebinding either.  The grid could contain thousands of rows.  

SSirica
Top achievements
Rank 3
Iron
Iron
Iron
 answered on 28 Jul 2020
1 answer
312 views

Hello all, 

I have a problem with the RabTab control when I change the selected tab. The dll version is 2017.3.913.

The page structure is

RadMultiPage which contains 7 Page views and has the attribute RenderSelectedPageOnly="true". Inside each page view there is a radgrid control.

The issue is when I change the tab, the grid inside the pageview doesn't display. 

Here is the code

Default.aspx

<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" DefaultLoadingPanelID="reloadingPanel" ClientEvents-OnRequestStart="onRequestStart">
        <AjaxSettings>            
            <telerik:AjaxSetting AjaxControlID="tabStrip1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="tabStrip1"></telerik:AjaxUpdatedControl>
                    <telerik:AjaxUpdatedControl ControlID="radMP1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="radMP1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radMP1"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
    <telerik:AjaxSetting AjaxControlID="grid1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grid1" LoadingPanelID="reloadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="grid2">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="grid2" LoadingPanelID="reloadingPanel" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <!--more grids-->
       </AjaxSettings> 
</telerik:RadAjaxManager>

<telerik:RadTabStrip ID="tabStrip1" runat="server" MultiPageID="radMP1" onTabClick="tabStrip1_TabClick">
            <Tabs>
                <telerik:RadTab TabIndex="1" PageViewID="pv1" Text="tab 1" Selected="true"></telerik:RadTab>
                <telerik:RadTab TabIndex="2" PageViewID="pv2" Text="tab 2"></telerik:RadTab>
                <telerik:RadTab TabIndex="3" PageViewID="pv3" Text="tab 3"></telerik:RadTab>
                <telerik:RadTab TabIndex="4" PageViewID="pv4" Text="tab 4"></telerik:RadTab>
                <telerik:RadTab TabIndex="5" PageViewID="pv5" Text="tab 5"></telerik:RadTab>
                <telerik:RadTab TabIndex="6" PageViewID="pv6" Text="tab 6"></telerik:RadTab>
                <telerik:RadTab TabIndex="7" PageViewID="pv7" Text="tab 7"></telerik:RadTab>
            </Tabs>
        </telerik:RadTabStrip>
<telerik:RadMultiPage ID="radMP1" runat="server" RenderSelectedPageOnly="true">
                <telerik:RadPageView ID="pv1" runat="server" Selected="true">
                    <div style="padding:10px 10px 10px 10px;background-color:#dcdcdc;height:20px">
                        <div style="clear:left;float:left;width:1030px;">
                            <div style="clear:left;float:left;width:340px;">
                                <telerik:RadButton ID="btnOpenRanking" runat="server" Text="Adjust Ranking" ToolTip="Adjust Ranking" OnClick="btnOpenRanking_Click" />
                                <telerik:RadButton ID="btnSaveRanks" runat="server" Text="Save Ranking" ToolTip="Save Ranking" Visible="false" OnClick="btnSaveRanks_Click" />
                                <telerik:RadButton ID="btnCancelRanks" runat="server" Text="Cancel" ToolTip="Cancel Ranking" Visible="false" OnClick="btnCancelRanks_Click" />
                                <asp:Label ID="lblUnrankedMessage" runat="server" Text="(Num Unranked Here)" ForeColor="Red"></asp:Label>
                            </div>                           
                        </div>                        
                    </div>
                    <telerik:RadGrid ID="grid1" runat="server" AutoGenerateColumns="false" DataSourceID="" ShowGroupPanel="true" GroupingEnabled="true" 
                            AllowFilteringByColumn="true" CellSpacing="0" GridLines="None" EnableLinqExpressions="false"
                            OnInit="grid_Init" OnItemDataBound="grid_ItemDataBound" OnItemCommand="grid_ItemCommand" OnPageIndexChanged="grid_PageIndexChanged" 
OnGroupsChanging="grid_GroupsChanging" OnPageSizeChanged="grid_PageSizeChanged" OnNeedDataSource="grid_NeedDataSource"
                            AllowPaging="true" AllowCustomPaging="true" VirtualItemCount="100000" PageSize="50" AllowSorting="true" ShowFooter="true">
                        <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true" Scrolling-UseStaticHeaders="true" />
                        <MasterTableView CommandItemDisplay="Top" AllowMultiColumnSorting="true" DataKeyNames="lcs_event_ticket_id">
                            <CommandItemSettings ShowExportToExcelButton="true" ShowExportToPdfButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="true" />
                            <RowIndicatorColumn Visible="true" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="true" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                            <Columns>
<!--COLUMNS DEFINITION-->
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </telerik:RadPageView>
                <telerik:RadPageView ID="pv2" runat="server">
                    <div style="padding:10px 10px 10px 10px;background-color:#dcdcdc;height:20px">
                        <div style="clear:left;float:left;width:1030px;">
                            <div style="clear:left;float:left;width:340px;">
                                <telerik:RadButton ID="btnOpenRanking1" runat="server" Text="Adjust Ranking" ToolTip="Adjust Ranking" OnClick="btnOpenRankingChicago_Click" />
                                <telerik:RadButton ID="btnSaveRanks1" runat="server" Text="Save Ranking" ToolTip="Save  Ranking" CommandArgument="4" Visible="false" OnClick="btnSaveRanksRegion_Click" />
                                <telerik:RadButton ID="btnCancelRanks1" runat="server" Text="Cancel" ToolTip="Cancel Ranking" Visible="false" OnClick="btnCancelRanks_Click" />
                                <asp:Label ID="lblUnrankedMessage1" runat="server" Text="(Num Unranked Here)" ForeColor="Red"></asp:Label>
                            </div>
</div>
                    </div>
                    <telerik:RadGrid ID="grid2" runat="server" AutoGenerateColumns="false" DataSourceID="" ShowGroupPanel="true" GroupingEnabled="true"
                            AllowFilteringByColumn="true" CellSpacing="0" GridLines="None" EnableLinqExpressions="false" 
                            OnInit="grid_Init" OnItemDataBound="grid2_ItemDataBound" OnItemCommand="grid2_ItemCommand" OnPageIndexChanged="grid2_PageIndexChanged" 
OnGroupsChanging="grid2_GroupsChanging" OnPageSizeChanged="grid2_PageSizeChanged" OnNeedDataSource="grid2_NeedDataSource"
                            AllowPaging="true" AllowCustomPaging="true" VirtualItemCount="100000" PageSize="50" AllowSorting="true" ShowFooter="true">
                        <ClientSettings AllowColumnsReorder="true" AllowDragToGroup="true" Scrolling-UseStaticHeaders="true" />
                        <MasterTableView CommandItemDisplay="Top" AllowMultiColumnSorting="true" DataKeyNames="lcs_event_ticket_id">
                            <CommandItemSettings ShowExportToExcelButton="true" ShowExportToPdfButton="false" ShowAddNewRecordButton="false" ShowRefreshButton="true" />
                            <RowIndicatorColumn Visible="true" FilterControlAltText="Filter RowIndicator column"></RowIndicatorColumn>
                            <ExpandCollapseColumn Visible="true" FilterControlAltText="Filter ExpandColumn column"></ExpandCollapseColumn>
                            <Columns>
<!--COLUMNS DEFINITION-->
                            </Columns>
                        </MasterTableView>
                    </telerik:RadGrid>
                </telerik:RadPageView>
<!--MORE PAGE VIEWS WITH A GRID-->
</telerik:RadMultiPage>

Default.cs

protected void tabStrip1_TabClick(object sender, RadTabStripEventArgs e)
        {
            switch (e.Tab.TabIndex)
            {
                case 1:
                    grid1.Rebind();
                    break;
                case 2:
                    grid2.Rebind();
                    break;
            }

            tabStrip1.MultiPage.SelectedPageView.ID = e.Tab.PageViewID;
            tabStrip1.MultiPage.SelectedPageView.Selected = true;
            tabStrip1.MultiPage.SelectedPageView.Visible = true;

}

Thanks in advance,

Artemisa

 

 

 

Vessy
Telerik team
 answered on 28 Jul 2020
4 answers
731 views
My PDFs are stored in a database, so there is no initial document to load due to it being a stream/blob.  How do I set the download document name?
Vessy
Telerik team
 answered on 28 Jul 2020
9 answers
192 views
How is this different from the TTL property of the Radasyncupload control? I noticed that if the TTL is zeroed out when using a custom upload handler / custom config, The file upload is corrupted due to the temp file being deleted part way through the upload it seems. If I correctly give it a time of say 5 minutes , everything is fine. Even though the RadAsyncupload control already has a TTL set it is not honored if I used the custom config.

Does this TTL start as soon as the file starts uploading? Or when the upload is finished?

Thanks
Allen
Top achievements
Rank 2
Iron
Veteran
 answered on 28 Jul 2020
3 answers
383 views

I have a RadAsyncUpload and the function for OnClientValidationFailed is getting called with a wrong file size error even though the file is well within the size limit.

Markup

<telerik:RadAsyncUpload runat="server" ID="fUploader" PostbackTriggers="btnSendEmail,btnSaveDraft" OnClientValidationFailed="fileUploadValidationFailed"></telerik:RadAsyncUpload>

server side

fUploader.TargetFolder = uploadPath
fUploader.AllowedFileExtensions = New String() {"*.jpg", "*.png", "*.gif", "*.jpeg", "*.bmp", "*.tiff", "*.pdf", "*.gpx", "*.tcx"}
fUploader.MaxFileSize = 2500000

javascript

function fileUploadValidationFailed(sender, args) {
    var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length);
    if (args.get_fileName().lastIndexOf('.') != -1) {//this checks if the extension is correct
        if (sender.get_allowedFileExtensions().indexOf(fileExtention.toLowerCase()) == -1) {
            alert("File type selected is not allowed.  Valid file types are .jpg, .png, .gif, .jpeg, .bmp, .tiff, .pdf, .gpx, .tcx");
        }
        else {
            alert("File too large.  Max file size 2 MB.");
        }
    }
    else {
        alert("File type selected is not allowed.  Valid file types are .jpg, .png, .gif, .jpeg, .bmp, .tiff, .pdf, .gpx, .tcx");
    }
}

web.config

<system.web>
    <httpRuntime maxRequestLength="8192"/>

Allen
Top achievements
Rank 2
Iron
Veteran
 answered on 28 Jul 2020
2 answers
170 views

Hi,

 

i have attached a LoadingPanel to my RadScheduler.How can I get it to display when loading/saving  the AdvancedForm, but not for every single postback on the form. I have a multitude of checkboxes on there & getting the loading screen for every tick/untick is really slowing things down.

 

I've had a brief look at OnRequestStart, but I don't see how to narrow down the postback event being applied to the scheduler.

 

Thanks,

Ellie

 

01.            var currentLoadingPanel = null;
02.            var currentUpdatedControl = null;
03.            function RequestStart(sender, args) {
04.                currentLoadingPanel = $find("<%= RadAjaxLoadingPanel1.ClientID %>");
05. 
06.                if (args.get_eventTarget() == "<%= RadScheduler1.UniqueID %>") {
07.                    currentUpdatedControl = "<%= RadScheduler1.ClientID %>";    
08. 
09.<%--something needs to go here to identify the postbacks i do / don't want the panel for --%>
10.                
11.                    currentLoadingPanel.show(currentUpdatedControl);
12.                }
13.            }
Peter Milchev
Telerik team
 answered on 28 Jul 2020
6 answers
1.6K+ views

The current Telerik version used in our project is (v.2012.3.1308.45 Dev). I am trying to upgrade this to 2020.2.617(Trial) version in Visual Studio 2019 using the steps mentioned in the link https://docs.telerik.com/devtools/aspnet-ajax/general-information/integration-with-visual-studio/visual-studio-extensions/upgrade-wizard but I encounter error mentioned below. I have also attached a screenshot of error window for your reference. Please help me with this issue.

An error occurred while running the wizard.
Error executing custom action Telerik.Web.UI.VSX.Actions.MultiProjectUpdateReferencesAction: System.NotSupportedException: Specified method is not supported.
   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAVSReferences.Remove(OAVSReference reference)
   at Microsoft.VisualStudio.ProjectSystem.VS.Implementation.Package.Automation.OAVSReference.Remove()
   at Telerik.VSX.Internal.ProjectManagement.ApplicationProjectAssemblyReference.RemoveReference()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.RemoveReferences()
   at Telerik.VSX.ProjectConfigurators.ApplicationReferenceManager.UpdateReferences()
   at Telerik.VSX.Actions.UpdateReferencesAction.UpdateReferences(IProjectWrapUIComponents projectWrap)
   at Telerik.VSX.Actions.UpdateReferencesAction.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap project)
   at Telerik.VSX.Actions.ProjectActionBase.Telerik.VSX.Actions.IProjectAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments, IProjectWrap projectWrap)
   at Telerik.VSX.Actions.MultiProjectActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.Actions.MultiProjectUpdateReferencesActionBase`1.Execute(WizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.Actions.ActionBase.Telerik.WizardFramework.IAction.Execute(IWizardContext wizardContext, IPropertyDataDictionary arguments)
   at Telerik.VSX.WizardEngine.ActionManager.ExecActions()

Alan
Top achievements
Rank 1
 answered on 27 Jul 2020
3 answers
789 views

Hello, I'm looking at the demo (https://demos.telerik.com/aspnet-ajax/textbox/functionality/validation/defaultvb.aspx) but it doesn't work as it implies it does / as I would expect it to.  It seems to wait until I click the "Postback" button before it does any client-side validation, which to me, is too late.  Shouldn't the validation happen when the user tabs through a required field leaving it blank, for example?

Weirdly, after the Postback, entering data into the missing field hides the Validation Error Message, and also clearing the data in the field shows the Validation Error Message.  Why does it not do this before the first Postback?

After much searching, I found this doc (https://docs.telerik.com/devtools/aspnet-ajax/general-information/troubleshooting/jquery-troubleshooting) and couldn't get the Unobtrusive Validation stuff to work on my own, as the article primarily covers, so I just added the "disable" line near the top in the web.config in my own project, and now my project behaves like the demo.  But that doesn't really explain why your demo doesn't behave consistently, anyway.

Wally
Top achievements
Rank 1
 answered on 27 Jul 2020
2 answers
7.6K+ views
Hi,
how to add checkbox column in radgrid and get ids associated with that record on button click event?
Thanks
Eyup
Telerik team
 answered on 25 Jul 2020
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?