Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
108 views
In my ASP.NET 4.0 Web Forms application, I'm using AsyncUpload for just one thing: To allow my client to send a file to me via e-mail.  The functionality works perfectly fine in Visual Studio on my development machine but I'm getting an error (see screenshot) when it's deployed onto the client's server.  The problem appears to revolve around the temporary file that needs to be created by the control.  To solve this I first tried this on the client's server:
  1. Created these nested folders off of the root of my application:  \App_Data\RadUploadTemp
  2. Assigned the child folder Write privileges
  3. Added this property to the instance of RadAsyncUpload:  TemporaryFolder="~/App_Data/RadUploadTemp"

But when I ran my app, the same error occurred.

So then I changed the property setting to this:  TemporaryFolder="~/Logs"
The "Logs" folder is an existing one that also has Write privileges.

But once again, the same error occurred!

I'm not sure what to do now and am hoping someone on this forum might be able to help.  If there was a way to avoid the necessity for a temporary folder at all, that would be preferable.

Any ideas?

Robert
Hristo Valyavicharski
Telerik team
 answered on 12 Sep 2014
1 answer
553 views
My export to Excel works fine with normal GridBoundColumn columns however will not work with GridTemplateColumn.  How might I facilitate a download of the grid?  When downloading it only includes Member Type, Phone, Approx Miles.  Need it to include CUName, Address, etc.

Thank you for your help
<telerik:RadGrid ID="grdResults" runat="server" AllowPaging="true" AllowSorting="true"
    AutoGenerateColumns="False" CellSpacing="-1" GridLines="Both" PageSize="100">
    <ExportSettings IgnorePaging="True" OpenInNewWindow="True"
        ExportOnlyData="True" FileName="CUMapListings">
        <Excel AutoFitImages="True" Format="ExcelML" />
        <Csv ColumnDelimiter="VerticalBar" EncloseDataWithQuotes="False" />
    </ExportSettings>
    <MasterTableView CommandItemDisplay="Top" UseAllDataFields="true" TableLayout="Fixed">
        <HeaderStyle Font-Bold="true" />
        <CommandItemTemplate>
            <asp:LinkButton ID="btnPrint" runat="server" CommandName="PrintResults" Visible="true" OnClientClick="PrintRadGrid(); return false;"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/DownloadPrinter.png"/>Print</asp:LinkButton>  
            <asp:LinkButton ID="btnExportMap" runat="server" CommandName="ExportMapListing" Visible="true"><img style="border:0px;vertical-align:middle;" alt="" src="/Images/Help/CSV_Export.jpg"/>Excel Download</asp:LinkButton>  
        </CommandItemTemplate>
        <AlternatingItemStyle BackColor="LightGray" />
        <Columns>
            <telerik:GridTemplateColumn UniqueName="RowNumber">
                <ItemTemplate>
                    <asp:Label ID="lblRowNumber" runat="server" />
                </ItemTemplate>
                <ItemStyle Font-Bold="true" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="_search_asiNum" Visible="false" DataField="asi_num">
                <ItemTemplate>
                    <asp:Label ID="_search_asiNum" runat="server" />
                </ItemTemplate>
                <ItemStyle Font-Bold="true" />
            </telerik:GridTemplateColumn>
            <telerik:GridTemplateColumn UniqueName="CUInfo" HeaderText="ADDRESS">
                <ItemTemplate>
                    <asp:Label ID="lblCULink" runat="server" Visible="false" />
                    <asp:LinkButton runat="server" ID="CU_LinkButton" Visible="false"></asp:LinkButton>
                    <br />
                    <asp:Label ID="lblAddressInfo" runat="server" Visible="True" />
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
            <telerik:GridBoundColumn HeaderText="MEMBER" UniqueName="MemberType" FilterControlAltText="Filter column column" DataField="MemberType">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="PHONE" UniqueName="Phone" FilterControlAltText="Filter column column" DataField="cuPhone">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn HeaderText="APPROX. MILES" UniqueName="Miles" FilterControlAltText="Filter column column" DataField="Distance" DataFormatString="{0:####.#0}">
                <ColumnValidationSettings>
                    <ModelErrorMessage Text=""></ModelErrorMessage>
                </ColumnValidationSettings>
                <ItemStyle HorizontalAlign="Center" />
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridBoundColumn>
 
                                 
            <telerik:GridTemplateColumn UniqueName="Directions" HeaderText="DRIVING DIRECTION">
                <ItemTemplate>
                    <asp:PlaceHolder runat="server">
 
                    <a href="http://google.com/maps/dir/<;%# DataBinder.Eval(Container.DataItem, "Address1")%>%2C+<%# DataBinder.Eval(Container.DataItem, "City")%>+<%# DataBinder.Eval(Container.DataItem, "state_id")%>+<%# DataBinder.Eval(Container.DataItem, "zip_code")%>/<%# Request.QueryString("A")%>%2C+<%# Request.QueryString("C")%>+<%# Request.QueryString("S")%>+<%# Request.QueryString("Z")%>" target="_blank">To <%# Request.QueryString("N")%></a>
                    <br />
                    <a href="http://google.com/maps/dir/<;%# Request.QueryString("A")%>%2C+<%# Request.QueryString("C")%>+<%# Request.QueryString("S")%>+<%# Request.QueryString("Z")%>/<%# DataBinder.Eval(Container.DataItem, "Address1")%>%2C+<%# DataBinder.Eval(Container.DataItem, "City")%>+<%# DataBinder.Eval(Container.DataItem, "state_id")%>+<%# DataBinder.Eval(Container.DataItem, "zip_code")%>" target="_blank">From <%# Request.QueryString("N")%></a>
                </asp:PlaceHolder>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" />
            </telerik:GridTemplateColumn>
        </Columns>
    </MasterTableView>
    <PagerStyle PageSizeControlType="RadComboBox" />
</telerik:RadGrid>

Here is how I populate the fields that are not showing.
Private Sub grdResults_ItemCommand(sender As Object, e As GridCommandEventArgs) Handles grdResults.ItemCommand
    If e.CommandName = "ExportMapListing" Then
        grdResults.ExportSettings.ExportOnlyData = True
        grdResults.ExportSettings.FileName = "ExportMapListing"
        grdResults.MasterTableView.ExportToExcel()
    End If
End Sub
 
Private Sub grdResults_ItemDataBound(sender As Object, e As Telerik.Web.UI.GridItemEventArgs) Handles grdResults.ItemDataBound
    'Set Row Count
    If TypeOf e.Item Is Telerik.Web.UI.GridDataItem Then
        Dim rowCounter As Integer = 0
        Dim lblRowNumber As Label = TryCast(e.Item.FindControl("lblRowNumber"), Label)
 
        rowCounter = grdResults.MasterTableView.PageSize * grdResults.MasterTableView.CurrentPageIndex
        lblRowNumber.Text = (e.Item.ItemIndex + 1 + rowCounter).ToString()
 
        Dim lblCULink As Label = TryCast(e.Item.FindControl("lblCULink"), Label)
        Dim CU_LinkButton As LinkButton = TryCast(e.Item.FindControl("CU_LinkButton"), LinkButton)
 
        Dim lblAddressInfo As Label = TryCast(e.Item.FindControl("lblAddressInfo"), Label)
        lblAddressInfo.Text = DataBinder.Eval(e.Item.DataItem, "Address1") & "<br />" & _
                                DataBinder.Eval(e.Item.DataItem, "City") & " " & _
                                DataBinder.Eval(e.Item.DataItem, "state_id") & " " & _
                                DataBinder.Eval(e.Item.DataItem, "zip_code")
 
        If DataBinder.Eval(e.Item.DataItem, "MemberType") = "Non-member" Then
            e.Item.ForeColor = Drawing.Color.Black
 
            lblCULink.Visible = True
            lblCULink.Text = "<a href=""/cuDataAnalysis/cuSummary.aspx?Charter_num=" & DataBinder.Eval(e.Item.DataItem, "charter_num") & """>" & DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")</a>"
 
            CU_LinkButton.Visible = False
        Else
            e.Item.ForeColor = Drawing.Color.Green
            'lblCULink.Text = "<a href=""/CUTracking/ContactManager/default.aspx?_search_asiNum=" & DataBinder.Eval(e.Item.DataItem, "asi_num") & """>" & DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")</a>"
            lblCULink.Visible = False
 
            CU_LinkButton.Visible = True
            CU_LinkButton.PostBackUrl = "/CUTracking/ContactManager/default.aspx" '?_search_asiNum=" & DataBinder.Eval(e.Item.DataItem, "asi_num")
            CU_LinkButton.Text = DataBinder.Eval(e.Item.DataItem, "CUName") & " (" & DataBinder.Eval(e.Item.DataItem, "charter_num") & ")"
        End If
    End If
 
End Sub







Kostadin
Telerik team
 answered on 12 Sep 2014
6 answers
133 views
The current version of RadControls for ASP.NET AJAX doesn't work well when running under IE 9 with compatibility view enabled.

The step to reproduce:

1. Launch IE 9 browser.

2. Go to telerik demo site: http://demos.telerik.com/aspnet-ajax/menu/examples/overview/defaultcs.aspx

3. Enable compatibility view in IE 9

4. Then navigate the demo site, such as click the top menu ... ...

5. Some time it shows error like:  Object doesn't support property or method 'slice'




Slav
Telerik team
 answered on 12 Sep 2014
1 answer
143 views
Hello,

There is a tool in radeditor, to insert dropdown into content (select tag <select>). Is there any way to achieve functionality, so that user could change inserted dropdown selected value with mouse clicks (just like we can change checkbox or radiobutton checked status) in radEditor?
Ianko
Telerik team
 answered on 12 Sep 2014
9 answers
587 views
Hi,

Some of our users work with our application on the Mac with the Safari with the Magic mouse. We got some issues about horizontal scolling in the RadGrid of Telerik. With this mouse it is possible to scroll horizontal without using the scrollbars by moving your finger sideways. On the content/data in the RadGrid this doesn't scroll horizontal or sometimes it only scrolls the content div(data) native without scrolling the column headers and keeping the fixed columns into place.

When we use the Magic mouse on the horizontal scrolbar area itself the scrolling works fine. We see the same behaviour in Windows with a Logitec RX1000 with horizontal scrolling possibilities on the scrollwheel(press left and right).

In our research we found out that the scrollbars behaves different dependent on the type of mouse the user is using on the Mac. 
http://blog.0100.tv/2012/11/webkit-scrollbars-on-os-x/

Using the horzontal scrolling by the Magic mouse works fine on another div in our application with overflow: auto or overflow: scroll.

What can I do to solve these issues? Can this be solved for the RadGrid?



Pavlina
Telerik team
 answered on 12 Sep 2014
10 answers
675 views
Hi
I have problem with RequiredFieldValidator, it's not validate at the first time when i click the submit button (search)

But second time, when i click this button (search), it validate

 
<telerik:RadWindow ID="rwAddStorage" runat="server" VisibleTitlebar="False" VisibleStatusbar="False"
        Modal="True" Behaviors="None" Width="500px" Behavior="None" Font-Size="14px"
        Height="610px">
        <ContentTemplate>
            <telerik:RadAjaxPanel ID="rapConfig" runat="server">
<asp:Panel ID="Panel3" runat="server">
 <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td>
                                        <telerik:RadTextBox ID="txtSearchName" runat="server" EnableEmbeddedSkins="False"
                                            Width="260px" Skin="Inspire" EmptyMessage="Enter User Name for searching..."
                                            LabelCssClass="" LabelWidth="64px">
                                        </telerik:RadTextBox>
                                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Text="Storage Prefix is required"
                                            SetFocusOnError="True" ValidationGroup="SearchUser" ControlToValidate="txtSearchName"
                                            Style="display: none;"></asp:RequiredFieldValidator>
                                    </td>
                                    <td style="padding-left: 5px">
                                        <telerik:RadButton ID="btnSearch" runat="server" Text="Search" EnableEmbeddedSkins="False"
                                            ValidationGroup="SearchUser" Skin="Inspire" OnClick="btnSearch_Click">
                                        </telerik:RadButton>
                                        <telerik:RadButton ID="btnAddUser" runat="server" Text="Add" EnableEmbeddedSkins="False"
                                            Skin="Inspire" Enabled="false" OnClick="btnAddUser_Click">
                                            <Icon PrimaryIconCssClass="rbAdd"></Icon>
                                        </telerik:RadButton>
                                    </td>
                                </tr>
                            </table>
</asp:Panel>
            </telerik:RadAjaxPanel>
        </ContentTemplate>
    </telerik:RadWindow>
Vasil
Telerik team
 answered on 12 Sep 2014
16 answers
3.1K+ views
Hi, I really love radcontrols although i'm still using a trial version of asp.net ajax. I can't figure out how I can put imagebuttons on every row I have on my radgrid. These buttons will try to get the value of each row's "Name" field. I tried adding a gridbuttoncolumn but i can't add a handler to it and I don't know how to do it. Please help me. I'm in an urgent need.Thanks :)
Angel Petrov
Telerik team
 answered on 12 Sep 2014
10 answers
154 views

We are using RadControls for ASP.NET AJAX Q2 2013, IE 8, coding in C#. 

 

When setting the RadDropDownList  Enabled = False, the control appears disabled, and the list does not expand when clicked on, but using arrow keys, or typing the first letter of an item in the list still changes the selected value.

 

Example code:

 
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %>
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<head id="Head2" runat="server">
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <style>
                .RadDropDownList_Default .rddlDisabled
                {
                    color: Black;
                }
            </style>
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server" />
            <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
            <br /><br />
            <telerik:RadDropDownList ID="RadDropDownList1" runat="server" Enabled = "false">
                <Items>
                    <telerik:DropDownListItem Text="xxxxx" />
                    <telerik:DropDownListItem Text="yyyyy" />
                </Items>
            </telerik:RadDropDownList>
            <br /><br />
        </div>
    </form>
</body>

 

Ashish
Top achievements
Rank 1
 answered on 12 Sep 2014
1 answer
84 views
Hi, 
I need some help.

Is there any demo/sample showing how to change the query in sqldatasource preserving all functionality in the RadGrid?

I mean, I have x tables all with the same fields (product bill of material) and by a dropdown list I need to point the datasource to change the query pointing different tables. Update/Insert/delete shall also work. I have tried the above assigning a different query to the datasource but then I loose functionality in sorting, exporting, and so on.

How can I achieve the above?
Felice
Top achievements
Rank 1
 answered on 12 Sep 2014
4 answers
380 views
Is there any way to have the button look like the cool skinned buttons while giving me NavigateUrl?...instead of the button falling back to the LinkButton look when NavURL is used?
kengsheng
Top achievements
Rank 1
 answered on 12 Sep 2014
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?