Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
78 views
Hi, I've got this code:

function OnClientFileOpen(oExplorer, args) {
        var isDirectory = args.get_item().isDirectory();

        if (!isDirectory) {
            var fileExt = args.get_item().get_extension();
                args.set_cancel(true);
                var itemPath = args.get_item().get_path();
                window.open(encodeURIComponent(itemPath));
        }
    }

When I try to open a file with a & in the path, locally it opens fine, however, if I try it on the server, it can't find the file.
I think it gives a 404 error.
So what can I do?
Vessy
Telerik team
 answered on 02 Oct 2013
2 answers
150 views
Hi, I have this code

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="datagrid.aspx.cs" Inherits="ManageEDI.datagrid" %>
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
 
<%@ Register assembly="Telerik.OpenAccess.Web.40" namespace="Telerik.OpenAccess.Web" tagprefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManagerAll" runat="server">
        </telerik:RadScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"></telerik:RadAjaxManager>
    <div>
         
        <telerik:RadGrid ID="RadGrid1" runat="server" AutoGenerateEditColumn="True" CellSpacing="0" DataSourceID="OpenAccessLinqDataSource1" GridLines="None" OnUpdateCommand="RadGrid1_UpdateCommand" OnItemUpdated="RadGrid1_ItemUpdated">
<ExportSettings>
<Pdf>
<PageHeader>
<LeftCell Text=""></LeftCell>
 
<MiddleCell Text=""></MiddleCell>
 
<RightCell Text=""></RightCell>
</PageHeader>
 
<PageFooter>
<LeftCell Text=""></LeftCell>
 
<MiddleCell Text=""></MiddleCell>
 
<RightCell Text=""></RightCell>
</PageFooter>
</Pdf>
</ExportSettings>
 
<MasterTableView AutoGenerateColumns="False" DataKeyNames="EdiID" DataSourceID="OpenAccessLinqDataSource1" EditMode="InPlace">
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>
 
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>
 
<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column" Created="True">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>
 
    <Columns>
        <telerik:GridBoundColumn DataField="Status" DataType="System.Int32" FilterControlAltText="Filter Status column" HeaderText="Status" SortExpression="Status" UniqueName="Status">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="NoApl" FilterControlAltText="Filter NoApl column" HeaderText="NoApl" SortExpression="NoApl" UniqueName="NoApl">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="ETA" DataType="System.DateTime" FilterControlAltText="Filter ETA column" HeaderText="ETA" SortExpression="ETA" UniqueName="ETA">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="Note" FilterControlAltText="Filter Note column" HeaderText="Note" SortExpression="Note" UniqueName="Note">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        
        <telerik:GridBoundColumn DataField="CommandeID" DataType="System.Int32" FilterControlAltText="Filter CommandeID column" HeaderText="CommandeID" SortExpression="CommandeID" UniqueName="CommandeID">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        <telerik:GridBoundColumn DataField="EdiID" DataType="System.Int32" FilterControlAltText="Filter EdiID column" HeaderText="EdiID" ReadOnly="True" SortExpression="EdiID" UniqueName="EdiID">
            <ColumnValidationSettings>
                <ModelErrorMessage Text="" />
            </ColumnValidationSettings>
        </telerik:GridBoundColumn>
        
    </Columns>
 
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
 
<BatchEditingSettings EditType="Cell"></BatchEditingSettings>
 
<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
</MasterTableView>
 
<PagerStyle PageSizeControlType="RadComboBox"></PagerStyle>
 
<FilterMenu EnableImageSprites="False"></FilterMenu>
        </telerik:RadGrid>
        <telerik:OpenAccessLinqDataSource ID="OpenAccessLinqDataSource1" runat="server" ContextTypeName="ManageEDIModel.EntitiesModelLegare" EntityTypeName="" ResourceSetName="tblEDIs">
        </telerik:OpenAccessLinqDataSource>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:LEGAREConnection %>" SelectCommand="ListEDI" SelectCommandType="StoredProcedure"></asp:SqlDataSource>
    </div>
    </form>
</body>
</html>

and
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Telerik.Web.UI;
using ManageEDIModel;
using Telerik.Web.UI.GridExcelBuilder;
using Xceed.FileSystem;
using Xceed.Ftp;
 
namespace ManageEDI
{
    public partial class datagrid : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
 
        }
 
        protected void RadGrid1_UpdateCommand(object sender, Telerik.Web.UI.GridCommandEventArgs e)
        {
            GridEditableItem editedItem = e.Item as GridEditableItem;
            string c = editedItem["CommandeID"].Text;
            string a = editedItem["NoApl"].Text;
        }
 
        protected void RadGrid1_ItemUpdated(object sender, GridUpdatedEventArgs e)
        {
 
        }
    }
}

When I update the row, the values ​​c and a equal &nbsp;.   

Thank for your answers..




Sylvain Guay
Top achievements
Rank 1
 answered on 02 Oct 2013
2 answers
67 views
More of a best practices type question:

Suppose I have 20 numeric textboxes. As a user enters a number in each one and tabs off the textbox I want that number to be saved to a database and a "total" label to be updated.  I'm looking for a fast response time so ideally the front end wouldn't wait for the database update and commit to be acknowledged.  What would be the best way to architect this?
Konstantin Dikov
Telerik team
 answered on 02 Oct 2013
4 answers
158 views
Hello...
When we click on recurrence activity to edit it. It shows two radio buttons (Edit only this occurrence and edit the series). I want to use only "Edit the series". How can i remove the "Edit only this occurrence" button from the window. Or is there any way to remove both and the recurring activity is displayed in edit mode? Please help me, its urgent.
Thanks in advance.
Kalpna
Top achievements
Rank 1
 answered on 02 Oct 2013
1 answer
115 views
is it possible to host the trial version of telerik tools on a webhost like arvixe and what are the requirements.
Vessy
Telerik team
 answered on 02 Oct 2013
2 answers
335 views
I am trying to implement a radgrid that is responsive to media queries and have followed the advice in this forum entry:
http://www.telerik.com/community/forums/aspnet-ajax/grid/responsive-design.aspx

This contains a great suggestion that works great...except when you have a filter row as well.  When I use the css suggestion in the forum entry above, the filter cell for any undisplayed columns remains.  Is there any way I can change the class of the filter cell so that it does not show either?

I have included a screen capture showing what happens and what I am trying to fix.

I should also add that I can hide the entire filter row using the css code shown in the snippet below, but I would really like to hide individual column filters as opposed to the entire row.

Thanks in advance to anyone who can help!

Lynn

@media only screen and (max-width: 479px) {
 
    .rgFilterRow { display: none !important; }

Lynn
Top achievements
Rank 2
 answered on 02 Oct 2013
3 answers
145 views
Hi,

I have a RadScheduler in my ASP.Net web page and our requirement is to open this form in Ipad, but while I am draging an appoint in safari in Ipad it is not moving and even not opening the popup for context menus. And we have model popups while double clicking on an appointment this is also not working in Ipad.
Our Telerik.Web.UI Product version is '2011.3.1305.40'
Please help me this is urgent for us.

Thanks,
Plamen
Telerik team
 answered on 02 Oct 2013
1 answer
155 views
Rad editor is greyed out and i cant type in it in ie9 v9.0.8112.16421 since last Thursday at 5pm local time. I couldnt even type this in your forum and i had to use my phone to do so

As soon as i run an application that has this rad editor i get this error

The process or thread has changed since last step in the },get_contentareaelement:function(){if((this.get_ etc
Dobromir
Telerik team
 answered on 02 Oct 2013
1 answer
193 views
I have developed user time sheets against each user. After the end of week user has to submit his / her time sheet. I have a field in db against every time sheet to check whether time sheet is submitted or not.

To submit time sheet, i need the date range of current active view in the rad scheduler. For example if user is in 23 sep - 28 sep range and user presses submit button i want to get this datesheet range in my code file. similarly if user has navigated to 16 sep - 21 sep and want to submit the old timesheet then i want to get the selected date range in my code file.

How can i do this, i have searched lot on this issue but i am not able to find any useful help.

Thanks

Kind Regards
Asad
Boyan Dimitrov
Telerik team
 answered on 02 Oct 2013
2 answers
165 views
How do I access the radwindow of the radspell and set a skin for its contents?

Please help
Freddy.
Marin Bratanov
Telerik team
 answered on 02 Oct 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?