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

Hi,

 

I want to place a client RadConfirm on the Finishbutton, but I cannot find a way to access the button.

How would I do that?

 

Marc

Vessy
Telerik team
 answered on 30 Jul 2020
4 answers
295 views
If I have a video file added in the radeditor and bring up Media Manager to insert new video, existing video bleeds through the Media Manager's background. I have 3 images attached.

 Does anyone knows why this might be happening and how to fix it?
Thank you.

Rumen
Telerik team
 answered on 30 Jul 2020
1 answer
750 views

Dears,

I'm using a PdfViewer and I hided the download button, but still visitor can see the path of the file from the page source.

How can I prevent visitors to see the file path, If any way to give the PdfViewer the file stream object instead of the path?

Note:
The file path is coming from database in string format.

Thank you for your help.

 

 

 

Vessy
Telerik team
 answered on 30 Jul 2020
1 answer
139 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
154 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
378 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
814 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
256 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
459 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
215 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
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
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?