Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
2.3K+ views
Hello Guys

i have attached my screen shot 

i have done all thing that i have found here to solve the problem "RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path."
but still i dont have any luck!

what else is needed to be done to solve the problem?
Dinesh
Top achievements
Rank 1
 answered on 30 Dec 2017
3 answers
239 views

Hello,

I am using a RadPrompt window to accept some basic information, which I then pass back to the server for a lengthy task. I am using the  __doPostBack method to post the RadPrompt results to the server. I want to invoke the RadAjaxLoadingPanel to show I am busy while the server task completes and posts the results. My code is not working - I do not see the "loading" panel. The RadPrompt works fine, passing the desired result to the server. How can I make the RadAjaxLoadingPanel appear?

I have attached an image of the ascx code. Note that RadAjaxLoadingPanel1 and RadAjaxPanel1 are defined in code behind of the parent web part and work when other controls are pressed.

Code that defines RadAjaxLoadingPanel1 and RadAjaxPanel1

01.RadAjaxLoadingPanel radAjaxLoadingPanel = new RadAjaxLoadingPanel();
02.radAjaxLoadingPanel.ID = "RadAjaxLoadingPanel1";
03.radAjaxLoadingPanel.Skin = "Windows7";
04.radAjaxLoadingPanel.MinDisplayTime = 500;
05.radAjaxLoadingPanel.Transparency = 30;
06. 
07.Controls.Add(radAjaxLoadingPanel);
08. 
09._radAjaxPanel = new RadAjaxPanel();
10._radAjaxPanel.ID = "RadAjaxPanel1";
11._radAjaxPanel.LoadingPanelID = "RadAjaxLoadingPanel1";
12. 
13.// load these controls
14._docSearchUserControl = Page.LoadControl(_ascxPath) as DocSearchUserControl;
15._docSearchUserControl.ID = "DocSearchUserControl";
16._docSearchUserControl.ParentWebPart = this; // add reference to this web part

 

 

JS code that calls RadPrompt and tries to show the RadAjaxLoadingPanel1 over RadAjaxPanel2 (see the attached image to see how RadAjaxPanel2 is defined)

    function ExportFilesRadButton_Clicked(sender, args) {
        //debugger;
        var path = document.getElementById(sender.get_id()).getAttribute("Path"); // Path is set on server
 
        if (path) {
            OpenFileExportPrompt(path);
        }
    }
 
    function OpenFileExportPrompt(path) {
        radprompt('Server Path:', FileExportPromptCallBackFn, 330, 100, null, 'Server Target Location', path);
    }
 
    function FileExportPromptCallBackFn(arg) {
        // alert ("Prompt returned the following result: " + arg); 
        //debugger;
 
        if (arg != null) {
            currentLoadingPanel = $telerik.$("[id$='RadAjaxLoadingPanel1']").get(0).control; // to avoid 'not found' error
            currentUpdatedControl = $find("<%= RadAjaxPanel2.ClientID %>");
             
            if (currentLoadingPanel && currentUpdatedControl) {
                //alert("controls found");
                //show the loading panel over the updated control
                currentLoadingPanel.show(currentUpdatedControl);
            }
            __doPostBack("FileExportPrompt", arg);
        }
    }
</script>
</telerik:RadCodeBlock>
Marcel
Top achievements
Rank 1
 answered on 29 Dec 2017
3 answers
165 views
Dear Support,

My application needs a recurring editor which will only show Monthly, Quarterly, Semi-Annual and Annual options for scheduling. I need to hide Hourly, Daily and Weekly recurrence rules in recurrence editor, and add Quarterly and Semi-Annual recurrence rules as per my application specs. Please advice what are my options.

Thank you,
Parvinder
Marin Bratanov
Telerik team
 answered on 29 Dec 2017
2 answers
168 views
Hi,
      I noticed a strange problem with ASP ListBox when RadFormDecorator is included in page. The multiple selection mode for ASP ListBox works fine when there is no RadFormDecorator in page. But when I included RadFormDecorator in page the ASP ListBox selection mode turns to Single mode though I have explicitly mentioned SelectionMode as Multiple. However, RadListBox works fine in both the cases.
      This is with respect to RadControls 2009 Q3 version.

      Please take a look at this issue and any solution would be very helpful to me.

The sample code and output snapshot are as follows:
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="DockTest.aspx.vb" Inherits="DockTest" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head runat="server"> 
    <title>Test Page</title> 
     
</head> 
<body> 
    <form id="form1" runat="server"> 
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server"> 
        </telerik:RadStyleSheetManager> 
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server"> 
        </telerik:RadScriptManager> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" /> 
        <br /> 
        <br /> 
         
        <table> 
            <tr> 
                <td style="padding: 20px 0px 0px 40px;"> 
                    <table cellpadding="10" cellspacing="0" border="0"> 
                         
                        <tr> 
                            <td> 
                                <telerik:RadListBox ID="RadListBox1" runat="server" SelectionMode="Multiple" Height="160px" > 
                                    <Items> 
                                        <telerik:RadListBoxItem Text="Arts" Value="Arts" /> 
                                        <telerik:RadListBoxItem Text="Biographies" /> 
                                        <telerik:RadListBoxItem Text="Children's Books" /> 
                                        <telerik:RadListBoxItem Text="Computers &amp; Internet" /> 
                                        <telerik:RadListBoxItem Text="Cooking" /> 
                                        <telerik:RadListBoxItem Text="History" /> 
                                        <telerik:RadListBoxItem Text="Fiction" /> 
                                        <telerik:RadListBoxItem Text="Mystery" /> 
                                        <telerik:RadListBoxItem Text="Nonfiction" /> 
                                        <telerik:RadListBoxItem Text="Science Fiction" /> 
                                        <telerik:RadListBoxItem Text="Travel" /> 
                                    </Items> 
                                </telerik:RadListBox> 
                            </td> 
                        </tr> 
                        <tr> 
                            <td> 
                                <asp:ListBox ID="ListBox1" runat="server" SelectionMode="Multiple" > 
                                    <asp:ListItem Text="Arts"></asp:ListItem> 
                                    <asp:ListItem Text="Biographies"></asp:ListItem> 
                                    <asp:ListItem Text="Children's Books"></asp:ListItem> 
                                    <asp:ListItem Text="Computers &amp; Internet"></asp:ListItem> 
                                    <asp:ListItem Text="Cooking"></asp:ListItem> 
                                    <asp:ListItem Text="History"></asp:ListItem> 
                                    <asp:ListItem Text="Fiction"></asp:ListItem> 
                                    <asp:ListItem Text="Mystery"></asp:ListItem> 
                                    <asp:ListItem Text="Nonfiction"></asp:ListItem> 
                                    <asp:ListItem Text="Science Fiction "></asp:ListItem> 
                                    <asp:ListItem Text="Travel"></asp:ListItem> 
                                </asp:ListBox> 
                            </td> 
                        </tr> 
                         
                    </table> 
                </td> 
                <td> 
                                                  
                </td> 
            </tr> 
        </table> 
         
    </form> 
</body> 
</html> 
 

Output snapshot:  please find the attached file.


Thanks & Regards,
Amith V.A.


Luis
Top achievements
Rank 2
 answered on 28 Dec 2017
5 answers
265 views

Hi,

I am using asp.net and using a RadWindow for a modal popup. It works fine and i have tried the various animations provided (FlyIn, Fade, Resize, Slide).

However, my management prefers the Bootstrap open animation where the modal slides in from the top center of the window. Could you please tell me how i can do this type of animation with a RadWindow?

Thank you.

David

 

 

David
Top achievements
Rank 1
 answered on 28 Dec 2017
0 answers
710 views

When I try to export the contents of Editor to rtf, docx or pdf I get the following error

The URI prefix is not recognized.  Description: An unhandled exception occurred during
the execution of the current web request. Please review the stack trace
for more information about the error and where it originated in the
code.
<br><br> Exception Details: System.NotSupportedException: The URI prefix is not recognized.<br><br>Source Error: <br><br>Line 11:
Line 12:     Protected Sub ExportDocx_Click(sender As Object, e As EventArgs) Handles ExportDOCX.Click Line 13:         RadEditor1.ExportToDocx() Line 14:     End Sub
Line 15: End Class

 

Rana Asim
Top achievements
Rank 1
 asked on 28 Dec 2017
6 answers
1.0K+ views
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PrePopulateAnswer.ascx.cs"
    Inherits="ctrlPrePopulate" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<script type="text/javascript">
    var RadGrid1;
    var DataItems;
    function gridCreated(sender, args) {
        RadGrid1 = sender;
 
    }
 
    function CheckAll(headerCheckBox) {
        var isChecked = headerCheckBox.checked;
 
        var checkboxes = RadGrid1.get_masterTableView().get_element().getElementsByTagName("INPUT");
 
        var index;
        for (index = 0; index < checkboxes.length; index++) {
            if (typeof (checkboxes[index].checked) !== "undefined") {
                if (isChecked) {
                    checkboxes[index].checked = true;
                }
                else {
                    checkboxes[index].checked = false;
                }
            }
        }
    }
 
</script>
<style type="text/css">
    .LinkButtonurl
    {
        color: #0033FF;
        font-size: 13px;
    }
</style>
<style type="text/css">
    .Grid
    {
        border: 1px #000000 solid;
        border-spacing: 0px;
    }
</style>
<asp:Panel ID="pnlElement" runat="server">
    <table class="GridOuterTable">
        <tr>
            <td>
                <table class="InnerForm">
                    <tr>
                        <td class="OuterTable">
                            <br />
                            <div style="vertical-align: middle; margin-left: 25px;">
                                <span style="font-family: 'Arial'; color: #000000; font-size: 13px;"><b>Form Name:
                                    <asp:Label runat="server" ID="lblFormName"></asp:Label></b></span>
                            </div>
                            <br />
                            <center>
                                <div style="vertical-align: middle; margin-left: 20px;">
                                    <asp:LinkButton ID="lbtnCancel1" runat="server" CssClass="SecondaryButton" Text="Cancel"
                                        OnClick="lbtnCancel_Click"></asp:LinkButton>
                                    <asp:LinkButton runat="server" Text="Save" ID="lbtnSave" CssClass="MainButton" OnClick="lbtnSave_Click"></asp:LinkButton>
                                </div>
                            </center>
                            <div style="vertical-align: middle; margin-left: 25px;" class="InformationIcon">
                                <asp:Panel runat="server" ID="pnl">
                                    This option will use the answers provided the last time the user completed this
                                    form.<br />
                                    In order for the option to work as expected, the user and participant/entity/program/staff
                                    must match the user and participant from the last time this form was completed.
                                </asp:Panel>
                            </div>
                            <div style="vertical-align: middle; margin-left: 18px;">
                                <asp:CheckBoxList runat="server" RepeatDirection="Vertical" ID="chklstPrepopulate"
                                    CssClass="Aligntext" OnSelectedIndexChanged="chklstPrepopulate_SelectedIndexChanged"
                                    AutoPostBack="true" />
                                <br />
                            </div>
                            <div id="divGridLabel" runat="server" style="vertical-align: middle; margin-left: 25px;">
                                Select the Questions you wish to populate with previous answers
                            </div>
                            <br />
                            <div id="divGrid" runat="server" style="vertical-align: middle; margin-left: 25px;
                                margin-right: 10px;">
                                <telerik:RadGrid ID="gvPrepopulate" DataSourceID="odsRadGrid" runat="server" GridLines="None"
                                    CssClass="AddBorders" ShowStatusBar="True" CellSpacing="0" AllowPaging="True"
                                    PageSize="20" PagerStyle-AlwaysVisible="true" OnItemDataBound="gvPrepopulate_ItemDataBound"
                                    AllowMultiRowSelection="True" HeaderStyle-HorizontalAlign="Left" Width="100%">
                                    <HeaderStyle BackColor="red" />
                                    <GroupingSettings CaseSensitive="false" />
                                    <ClientSettings EnableRowHoverStyle="false">
                                        <Selecting AllowRowSelect="false" />
                                        <ClientEvents OnGridCreated="gridCreated" />
                                    </ClientSettings>
                                    <MasterTableView EditMode="InPlace" AllowFilteringByColumn="True" ShowFooter="True"
                                        DataKeyNames="FormElementID" TableLayout="Auto" AutoGenerateColumns="false" DataSourceID="odsRadGrid"
                                        HeaderStyle-VerticalAlign="Middle" HeaderStyle-HorizontalAlign="Left" FilterItemStyle-HorizontalAlign="Left"
                                        FilterItemStyle-VerticalAlign="Bottom">
                                        <PagerStyle AlwaysVisible="True" />
                                        <HeaderStyle CssClass="InnerHeaderStyle" Font-Bold="true" />
                                        <CommandItemSettings ExportToPdfText="Export to PDF" />
                                        <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
                                        </RowIndicatorColumn>
                                        <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
                                        </ExpandCollapseColumn>
                                        <Columns>
                                            <telerik:GridTemplateColumn Visible="false">
                                                <ItemTemplate>
                                                    <asp:Label ID="lblElementID" runat="server" Text='<%# Eval("FormElementID") %>'></asp:Label>
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridTemplateColumn AllowFiltering="false" ShowFilterIcon="False" UniqueName="Temp">
                                                <HeaderTemplate>
                                                    <asp:CheckBox ID="chkHeader" runat="server" onclick="CheckAll(this);" />
                                                </HeaderTemplate>
                                                <ItemTemplate>
                                                    <asp:CheckBox ID="chkPrepopulate" runat="server" Checked='<%# Eval("AllowPrePopulate") %>' />
                                                </ItemTemplate>
                                            </telerik:GridTemplateColumn>
                                            <telerik:GridBoundColumn AndCurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true"
                                                DataField="Stimulus" FilterControlWidth="100%" HeaderStyle-HorizontalAlign="Left"
                                                HeaderText="Questions" ItemStyle-HorizontalAlign="Left" ItemStyle-Width="70%"
                                                ReadOnly="True" ShowFilterIcon="false" SortExpression="Questions" UniqueName="Questions">
                                                <HeaderStyle HorizontalAlign="Left" />
                                                <ItemStyle HorizontalAlign="Left" Width="70%" />
                                            </telerik:GridBoundColumn>
                                            <telerik:GridBoundColumn AndCurrentFilterFunction="StartsWith" AutoPostBackOnFilter="true"
                                                DataField="FormElementType" FilterControlWidth="100%" HeaderText="Question Type"
                                                ItemStyle-HorizontalAlign="Left" ItemStyle-Width="30%" ShowFilterIcon="false"
                                                SortExpression="Question Type" UniqueName="Question Type">
                                                <ItemStyle HorizontalAlign="Left" Width="30%" />
                                            </telerik:GridBoundColumn>
                                        </Columns>
                                        <EditFormSettings>
                                            <EditColumn FilterControlAltText="Filter EditCommandColumn column">
                                            </EditColumn>
                                        </EditFormSettings>
                                        <FilterItemStyle HorizontalAlign="Left" VerticalAlign="Bottom" />
                                    </MasterTableView>
                                    <FilterMenu EnableImageSprites="true">
                                    </FilterMenu>
                                    <PagerStyle AlwaysVisible="True" />
                                    <HeaderContextMenu CssClass="GridContextMenu GridContextMenu_Default">
                                    </HeaderContextMenu>
                                </telerik:RadGrid>
                            </div>
                            <asp:ObjectDataSource ID="odsRadGrid" runat="server" SelectMethod="GetGroupQuestionElementAll"
                                TypeName="SocialSolutions.ETOSoftware.BusinessLayer.SingleForm">
                                <SelectParameters>
                                    <asp:QueryStringParameter Name="FormID" QueryStringField="FormID" Type="Int32" />
                                    <asp:Parameter DefaultValue="False" Name="IsGroup" Type="Boolean" />
                                    <asp:SessionParameter Name="_sessionData" SessionField="SessionData" Type="Object" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            <br />
                            <center>
                                <div style="vertical-align: middle; margin-left: 20px;">
                                    <asp:LinkButton ID="lbtnCancel" runat="server" CssClass="SecondaryButton" Text="Cancel"
                                        OnClick="lbtnCancel_Click"></asp:LinkButton>
                                    <asp:LinkButton runat="server" Text="Save" ID="lbtnSave2" CssClass="MainButton" OnClick="lbtnSave_Click"></asp:LinkButton>
                                </div>
                            </center>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Panel>
amol
Top achievements
Rank 1
 answered on 28 Dec 2017
0 answers
165 views

Hi this is my style:

    <style type="text/css">
        .style1
        {
            width: 100%;
        }

        .border_tr table tr
        {
            outline: 0.5px solid #999;
        }

            .border_tr table tr.nooutline
            {
                outline: 0px none;
            }

        .borders {
            outline: 0.5px solid #999;
        }
    </style>

The class ".border_tr table tr" applies normally but when I use RadClientExportManager It does not apply to the pdf which is generated.

My Script:

    <script type="text/javascript">
        function exportElement() {
            var exp = $find("<%= RadClientExportManager1.ClientID %>");
            exp.exportPDF($telerik.$("#PageContents"));
}
</script>

<telerik:RadClientExportManager runat="server" ID="RadClientExportManager1">
            <PdfSettings filename="Myfile.pdf" />
        </telerik:RadClientExportManager>

<input type="button" onclick="exportElement()" value="export" />

And my div where style is not applied in the pdf

 

<div class="border_tr" id="PageContents">
            <table width="100%">
                <tr>
                    <td>
                        <asp:Label ID="lblcltName" runat="server" Text="Client Name :" Font-Bold="true"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:Label ID="lbltxtcltName" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblCaseManager" runat="server" Text="Case Manager :" Font-Bold="true"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:Label ID="lbltxtCaseManager" runat="server"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label ID="lblphyreviewer" runat="server" Text="Physician Reviewer :" Font-Bold="true"></asp:Label>
                    </td>
                    <td align="left">
                        <asp:Label ID="lbltxtphyreviewer" runat="server"></asp:Label>
                    </td>
                </tr>

</table>

</div>

 

The pdf generated does not have any borders

Sam
Top achievements
Rank 1
 asked on 28 Dec 2017
0 answers
69 views

Hi,

How can i expand selected node for show child nodes after filter?

Bunyamin
Top achievements
Rank 1
 asked on 27 Dec 2017
0 answers
110 views

Hello,

I'm having issues with horizontal scrolling in my application. Headers are fixed, and headers and items are aligned vertically as expected. The problem is when I scroll all the way to the right, the headers stop scrolling before the items do and they become misaligned. There is an image attached that highlights this issue.

Please let me know what I can do to rectify this issue; I expect that when I scroll all the way to the right that the headers and items below are still perfectly aligned vertically.

Please note, this happens only when the contents of the grid expand beyond the vertical size thus forcing a vertical scroll bar within the grid.

 

Thanks!

ww1711
Top achievements
Rank 1
 asked on 27 Dec 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?