Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
106 views
When I view the demo AsyncUpload - Validation, clicking Select opens a file dialog with the files filtered by the extensions. Yet according to the source, it does not make use of File Filtering.

A similar project found at the bottom of this thread also specifies AllowedFileExtensions, but no filtering occurs. How does the online demo perform the filtering?
Shinu
Top achievements
Rank 2
 answered on 17 Dec 2013
3 answers
153 views
Hi,

I wonder if we could add multiple handlers to the 'OnClientBlur' event, if yes, could you please reply me with a sample.

Thanks,
Ramesh
Princy
Top achievements
Rank 2
 answered on 17 Dec 2013
1 answer
148 views
I am having an issue with TreeList not returning any results whenever I use a string DataKeyNames value. For type int it works as expected.

For the sake of this example, I used an int key but simply added a facade string GET on top of it to verify that once string data type is used it fails.

Am I doing something incorrectly?



Complete ASPX:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TreeListStringKey.aspx.cs" Inherits="LiveExamples_Services_Audit_TreeListStringKey" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <rei:REIRadScriptManager ID="REIRadScriptManager1" runat="server" ScriptMode="Release" LoadScriptsBeforeUI="true">
        <Scripts>
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
        </Scripts>
    </rei:REIRadScriptManager>
    <div>
        <telerik:RadTreeList ID="tree" runat="server" OnNeedDataSource="Tree_NeedDataSource" ParentDataKeyNames="RealParentId" DataKeyNames="RealId"
            AllowPaging="true" PageSize="1000" AutoGenerateColumns="false" AllowSorting="true" EnableEmbeddedSkins="false" Skin="EHB">
            <Columns>
                <telerik:TreeListBoundColumn UniqueName="SectionName" DataField="SectionName" HeaderText="Section" />
                <telerik:TreeListBoundColumn UniqueName="ActionTaken" DataField="ActionTaken" HeaderText="Action" />
                <telerik:TreeListTemplateColumn UniqueName="ModifiedDate" HeaderText="Modified Date">
                    <ItemTemplate>
                        <%# (DateTime)Eval("ModifiedDate") == DateTime.MinValue ? "" : Eval("ModifiedDate") %>
                    </ItemTemplate>
                </telerik:TreeListTemplateColumn>
                <telerik:TreeListBoundColumn UniqueName="ModifiedBy" DataField="ModifiedBy" HeaderText="Modified By" />
                <telerik:TreeListBoundColumn UniqueName="Value" DataField="Value" HeaderText="Value" HeaderStyle-Width="45%" />
            </Columns>
        </telerik:RadTreeList>
    </div>
    </form>
</body>
</html>



COMPLETE ASPX.CS
using System;
using System.Collections.Generic;
using System.Globalization;
using Telerik.Web.UI;
 
public partial class LiveExamples_Services_Audit_TreeListStringKey : System.Web.UI.Page
{
    public class FlatRevision
    {
        public int Id { get; set; }
        public int ParentId { get; set; }
 
        public string RealId { get { return Id.ToString(CultureInfo.InvariantCulture); } }
        public string RealParentId { get { return ParentId.ToString(CultureInfo.InvariantCulture); } }
 
        //public double RealId { get { return (double)Id; } }
        //public double RealParentId { get { return (double)ParentId; } }
 
 
        public string SectionName { get; set; }
        public DateTime ModifiedDate { get; set; }
        public string ModifiedBy { get; set; }
        public string Value { get; set; }
        public string ActionTaken { get; set; }
        public RevType Type { get; set; }
    }
    public enum RevType
    {
        Section = 1,
        Revision = 2
    }
 
 
    protected void Tree_NeedDataSource(object sender, TreeListNeedDataSourceEventArgs e)
    {
        tree.DataSource = new List<FlatRevision>
            {
                //sv report
                new FlatRevision { Id = 1, ParentId = 0, SectionName = "Site Visit Report", Type = RevType.Section },
                new FlatRevision { Id = 2, ParentId = 1, SectionName = "Key Findings", Type = RevType.Section },
                //kf r1
                //new FlatRevision { Id = 3, ParentId = 2, SectionName = "Revision", Type = RevType.Section, ModifiedBy = "Willis", ModifiedDate = DateTime.Now.AddDays(-2) }, //removing "revision" rows per Venkat
                new FlatRevision { Id = 4, ParentId = 2, SectionName = "Key Finding - ADAP", Type = RevType.Section, Value="Type: ADAP", ActionTaken = "Updated"},
                new FlatRevision { Id = 5, ParentId = 2, SectionName = "Key Finding - Financial Assessment", Type = RevType.Section, Value="Type: Financial Assessment", ActionTaken = "Updated" },
                //kf r2
                //new FlatRevision { Id = 6, ParentId = 2, SectionName = "Revision", Type = RevType.Section, ModifiedBy = "Jimmy", ModifiedDate = DateTime.Now.AddDays(-1)},//removing "revision" rows per Venkat
                new FlatRevision { Id = 7, ParentId = 2, SectionName = "Key Finding - Financial Review", Type = RevType.Section, Value="Type: Financial Review", ActionTaken = "Added" },
                 
 
                //sv questionnaire
                new FlatRevision { Id = 8, ParentId = 0, SectionName = "Post Site Visit Questionnaire", Type = RevType.Section },
                new FlatRevision { Id = 9, ParentId = 8, SectionName = "1. Were there any updates made to the site visit agenda at the entrance conference with the organization? ", Type = RevType.Section },
 
                //simple checklist revision
                //new FlatRevision { Id = 10, ParentId = 9, SectionName = "Revision", Type = RevType.Section, ModifiedBy = "Jasper", ModifiedDate = DateTime.Now.AddDays(-4).AddMinutes(-29) }, //removing "revision" rows per Venkat
                //new FlatRevision { Id = 11, ParentId = 10, SectionName = "Checklist Question", Type = RevType.Section },
                new FlatRevision { Id = 12, ParentId = 9, SectionName = "Answer", Type = RevType.Section, Value = "Yes", ActionTaken = "Updated"},
                new FlatRevision { Id = 13, ParentId = 9, SectionName = "Comment", Type = RevType.Section, Value = "pajama pajama pajama pajama pajama pajama pajama pajama pajama pajama", ActionTaken = "Updated"},
                new FlatRevision { Id = 14, ParentId = 9, SectionName = "Agenda Documents", Type = RevType.Section},
                new FlatRevision { Id = 15, ParentId = 14, SectionName = "Document - 'Bananas.txt'", Type = RevType.Section, ActionTaken = "Added"},
                new FlatRevision { Id = 16, ParentId = 15, SectionName = "Document Name", Type = RevType.Section, Value="Bananas.txt"},
                new FlatRevision { Id = 17, ParentId = 15, SectionName = "Document Size", Type = RevType.Section, Value="5kb"},
                new FlatRevision { Id = 18, ParentId = 15, SectionName = "Document Description", Type = RevType.Section, Value="This is the file that contains useful information about bananas."},
                new FlatRevision { Id = 19, ParentId = 14, SectionName = "Document - 'Fish.txt'", Type = RevType.Section, ActionTaken = "Updated"},
                new FlatRevision { Id = 20, ParentId = 19, SectionName = "Document Name", Type = RevType.Section, Value="Fish.txt"},
                new FlatRevision { Id = 21, ParentId = 19, SectionName = "Document Size", Type = RevType.Section, Value="332kb"},
                new FlatRevision { Id = 22, ParentId = 19, SectionName = "Document Description", Type = RevType.Section, Value="All about fish."},
            };
    }
}

Justin
Top achievements
Rank 1
 answered on 16 Dec 2013
4 answers
250 views
I have created the orgchart and it is in it's own page for printing purposes, but when I print it in IE8/9/10 it only will print a portion of the chart.  It will not extended to multiple pages so we can print it to either PDF or a printer.  How can I achieve this? 
Juan
Top achievements
Rank 1
 answered on 16 Dec 2013
1 answer
76 views

Hello, is there a way to save out the users currently selected "view" of the pivotgrid, and then reload it?

I'd like to let my users build out views and then save them for later.



I couldn't find any examples of this in your samples.



thx

Viktor Tachev
Telerik team
 answered on 16 Dec 2013
1 answer
78 views
Hello My Dear Friends all telerik developer;


protected
void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack) return;
 
            SessionClear();
 
            if (Request.QueryString["portCekKartID"] != null)
            {
                string masterId = Request.QueryString["portCekKartID"].ToString();
                int id = Convert.ToInt32(masterId);
                UpdateFormControl(id);
            }
                                      //CekDurumTips = Enum
 
            if (CekDurumGetir(masterId) != CekDurumTips.EldenTahsil)
            {
                Show("Error !");
 
                //Radwindow not opened
 
                return;
 
            }
            else
            {
                //radwindow oppen
            }
 
        }



Radwindow
<telerik:RadWindow ID="radwindowPortCekGeriAl" AutoSize="false" OnClientBeforeClose="pageReflesh" Title="Cirolanmış Çekleri Geri Al"
                   runat="server" Animation="FlyIn" Behaviors="Default">
               </telerik:RadWindow>

JavaScript Radwindow open commend
function rightClickHandler(sender, args) {
 
                    var menuItemValue = args.get_item().get_value();
 
                    if (menuItemValue == "portCekGeriAl") {
                        var rowID = $("#radGridClickedRowIndex2").val();
                        openPopupPortfoyeGeriAl(sender, rowID);
 
                    }
                }


Javascript open Method
function openPopupPortfoyeGeriAl(sender, selectID) {
                    var width = parent.innerWidth - ((parent.innerWidth / 6) * 2);
                    var height = parent.innerHeight - (parent.innerHeight / 4);
                    var left = innerWidth / 9;
                    var top = 0;
                    radopen("/PortfoyeGeriAl.aspx/?portCekKartID=" + selectID, "radwindowPortCekGeriAl", width, height, left, top);
 
                }


After clicking the button you want to check on the server side radwindow opening popup
is server side error  = popup not open
is server side succes = popup open
staffed with JavaScript, but I need to check on the server side.

Not: I'm sorry my bad english :(


Marin Bratanov
Telerik team
 answered on 16 Dec 2013
1 answer
151 views
I have a radgrid that is using edit mode ="batch" mode the problem is when i select the cell for edit the grid the controls width is too big and i cannot see my time picker so how can i change the width of the control.

see the attached image.
  
Angel Petrov
Telerik team
 answered on 16 Dec 2013
7 answers
230 views
I have a tree where the nodes can be expanded/collpsed.  (This is done client side)  I would like it if the root of the tree was not expandable/collapsible.  Is it possible to remove the expand/collapse triangle next to the root, but keep all of the other nodes the same?

Thanks,
Ken
Kate
Telerik team
 answered on 16 Dec 2013
1 answer
112 views
I am using Telerik.Web.UI.dll version 2010.2.929.20 in an ASP.NET 3.5 application, viewing it in Internet Explorer 8.  I have a RadGrid with column filters.  For my date columns, the filters contain a RadDatePicker for selecting filter parameters.  My problem is with the little calendar icon that opens the date picker. 

I have a large RadGrid on the page, both tall and wide, that causes the browser to show horizontal and vertical scroll bars.  So I can scroll the page around to see all of the grid.  I also have a header at the top of the page that does not scroll.  It's in a fixed position at the top no matter where the rest of the page is scrolled.  However, when I scroll the page up the date picker icon displays on top of this header.  Everything scrolls under the header and is invisible, but the date picker icons appear on top.  Maybe the Z index is higher than all my other elements?  I tried giving my header a large z-axis number, but that hasn't worked. 

I just tried it in FireFox version 26.0 and it works fine there.  Perhaps if this is just a bug on one version of IE I'll let it go, but if anyone has any suggestions to fix it there I'd appreciate it. 

Tom
Kostadin
Telerik team
 answered on 16 Dec 2013
1 answer
117 views
Hi,
is it possible to hide the filtering item row when the grid is in edit mode? 
Princy
Top achievements
Rank 2
 answered on 16 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?