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

Hi,

I am using rad async upload controle, is it possible to get file size when file is dragged and dropped?

Rumen
Telerik team
 answered on 08 Sep 2016
3 answers
131 views

Hi,

I am going through an issue with Telerik controls, all my Telterik Control because disabled, like RadEditor, RadListBox and RadAutoComplete. I installed the Telerik Version=2016.1.113.35, before that I was having the Telerik Version=2015.2.623.45. After installing I converted all my Application and its related components from .Net 3.5 to .Net 4.0, now all my Telerik Controls became disabled, the ones which were working before also became disabled.

Any help what could the reason and solution for it, any think like a link, a code snippet or even a suggestion would be helpful.

Here is my code:
 
Hide   Expand    Copy Code
<%@ Page Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="ResearchStudiesAdmin.Website.Login" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 <telerik:RadAjaxLoadingPanel runat="server" ID="RadAjaxLoadingPanel1">
    </telerik:RadAjaxLoadingPanel>
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings> 
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="radLongDesc" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
 
    </telerik:RadAjaxManager>
 
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-containers">
 
<pre>
    <div class="demo-containers">            
        <telerik:RadEditor Height="300px" Width="700px" ID="radLongDesc" runat="server" ToolbarMode="Default"
            StripFormattingOptions="all" ContentAreaMode="Div">
            <tools>
                            <telerik:EditorToolGroup Tag="MainToolbar">
                                <telerik:EditorTool Name="Print" ShortCut="CTRL+P" />
                                <telerik:EditorTool Name="AjaxSpellCheck" />
                                <telerik:EditorTool Name="FindAndReplace" ShortCut="CTRL+F" />
                                <telerik:EditorTool Name="Cut" />
                                <telerik:EditorTool Name="Copy" ShortCut="CTRL+C" />
                                <telerik:EditorTool Name="Paste" ShortCut="CTRL+V" />
                                <telerik:EditorTool Name="FormatStripper" />
                                <telerik:EditorTool Name="PasteStrip" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="Undo" ShortCut="CTRL+Z" />
                                <telerik:EditorTool Name="Redo" ShortCut="CTRL+Y" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup Tag="InsertToolbar">
                                <telerik:EditorTool Name="LinkManager" ShortCut="CTRL+K" />
                                <telerik:EditorTool Name="Unlink" ShortCut="CTRL+SHIFT+K" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup Tag="Superscript">
                                <telerik:EditorTool Name="Subscript" />
                                <telerik:EditorTool Name="InsertParagraph" />
                                <telerik:EditorTool Name="InsertHorizontalRule" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="Bold" ShortCut="CTRL+B" />
                                <telerik:EditorTool Name="Italic" ShortCut="CTRL+I" />
                                <telerik:EditorTool Name="JustifyLeft" />
                                <telerik:EditorTool Name="JustifyCenter" />
                                <telerik:EditorTool Name="JustifyRight" />
                                <telerik:EditorTool Name="JustifyFull" />
                                <telerik:EditorTool Name="JustifyNone" />
                                <telerik:EditorTool Name="Indent" />
                                <telerik:EditorTool Name="Outdent" />
                            </telerik:EditorToolGroup>
                            <telerik:EditorToolGroup>
                                <telerik:EditorTool Name="InsertOrderedList" />
                                <telerik:EditorTool Name="InsertUnorderedList" />
                                <telerik:EditorTool Name="ToggleTableBorder" />
                            </telerik:EditorToolGroup>
                        </tools>
        </telerik:RadEditor>            
        <br />
        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ErrorMessage="Long Description."
            CssClass="ErrorMsg" ControlToValidate="radLongDesc" ValidationGroup="vgSave" Display="Dynamic"></asp:RequiredFieldValidator>
    </div>
</div>

Thanks in advance.

Marin Bratanov
Telerik team
 answered on 08 Sep 2016
5 answers
150 views
So I am trying to set the ImagesFolderPath at runtime, but am having problems please help.

Let me setup the scenario first.... I have a webpage that has several different controls.  One control is a dropdown list that contains numeric codes.  When a code is selected it populates the rest of the page.  I want to set the ImagesFolderPath, once this numeric code is selected.  I have tried putting code in the Load and Databinding events the ImageGallery never reloads.  The control just sits on the page and does not appear to ever reload or rebind with the new ImagesFolderPath.


Please help


Doug
Eyup
Telerik team
 answered on 08 Sep 2016
1 answer
94 views

I have two RadDatePicker's. One holds a "date sent" value and another one a "date paid". The date sent value has to be before the date paid AND the date paid RadDatePicker has to be disabled until a date sent value has been set in a form. How would I achieve this? I thought a CompareValidator on the second control would prevent postback if the first input is empty but it seems that's not the case.

 

FYI I cannot use client side scripts on the same aspx page. I have a separate JavaScript folder that holds all my scripts and I cannot call $find("<%=RadDatePicker1.ClientID%>") . 

 

Help would be greatly appreciated. 

Raulis
Top achievements
Rank 1
 answered on 08 Sep 2016
3 answers
152 views

I have set all controls rendering mode to lightweight via the web config:

<add key="Telerik.Web.UI.RenderMode" value="lightweight" />

 

Running the site locally in chrome and in IE11 renders the output lightweight as as expected.

Once deployed to a server and set in IE as an intranet site, the controls are then rendered classic.

Chrome renders as lightweight, but IE seems then seems ignore this global setting in the web config. The page has the relevant meta tag to switch the document mode to IE=Edge but the rendered HTML is still in classic. Meaning all of our CSS is now useless.

Could someone please point out what I am missing here.

Thanks

 

Additional Info:

  • The controls don't have individual render mode properties on them.
  • The setting is still there in the web config after deployment.

 

 

 

Rumen
Telerik team
 answered on 07 Sep 2016
3 answers
72 views

I am trying to show toolbar dropdown text like:

 

   Dim dropDown As RadToolBarDropDown = New RadToolBarDropDown("PageSize")
            dropDown.Text = GetGlobalResourceObject("Insight", "Per pagina")

This ends up with the following sourcecode:

 

<span class="rtbText rtbHidden">Per pagina</span>

What could be wrong here? Skin = Material 2016.2.607.45

 

Marc

Vessy
Telerik team
 answered on 07 Sep 2016
9 answers
1.3K+ views
How can I programatically set the default pagesize in a grid depending on the number of items in the grid? I want it to be proportionate to the number of total items. Basically limiting the paging to a certain number of pages, rather than the number of items per page. I’ve seen some examples to do this when using the combobox for the PagerStyle, but we’re using the “NextPrevNumericAndAdvanced” and I want it to be the default value. Thanks.
Marin Bratanov
Telerik team
 answered on 07 Sep 2016
1 answer
138 views
We are using Telerik's radgrid for a Kentico site.  We're having a major problem with the user's dashboard.  When a user adds the data grid widget to their dashboard, it posts back and there's the grid. IF they then add a second one, it throws the below error.
If they add a grid, then after it post back, revisits the page, they can add another with no issue.  Same goes for deletions of the widgets, they can delete the first, but if they don't revisit the page so it's not a postback, it throws an error.
The error seems to be occurring in the grid between the Load and Prerender, probably with the PostbackChangeNotification or PostbackEvent.
I can't get the debugger to catch it at all.  There are save and load states in the code, here's the error and some of the code.
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

[NullReferenceException: Object reference not set to an instance of an object.]
   Telerik.Web.UI.GridTableView.LoadControlState(Object savedState) +121
   System.Web.UI.Control.LoadControlStateInternal(Object savedStateObj) +136
   System.Web.UI.Page.RegisterRequiresControlState(Control control) +12314028
   Telerik.Web.UI.GridTableViewBase.OnInit(EventArgs e) +59
   Telerik.Web.UI.GridTableView.OnInit(EventArgs e) +1564
   System.Web.UI.Control.InitRecursive(Control namingContainer) +185
   System.Web.UI.Control.AddedControl(Control control, Int32 index) +188
   Telerik.Web.UI.RadGrid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) +115
   System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) +94
   System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) +221
   System.Web.UI.WebControls.DataBoundControl.PerformSelect() +312
   Telerik.Web.UI.RadGrid.DataBind() +27
   Telerik.Web.UI.RadGrid.AutoDataBind(GridRebindReason rebindReason) +2700
   Telerik.Web.UI.RadGrid.OnLoad(EventArgs e) +223
   System.Web.UI.Control.LoadRecursive() +70
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Control.LoadRecursive() +189
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3177

Here's the files master control, the control, and some of the headers from the attempted requests: http://www.filedropper.com/showdownload.php/files_7 
Eyup
Telerik team
 answered on 07 Sep 2016
3 answers
229 views

Seems that in code behind the AllowFilteringByColumn property is always set to false at all phases of life cycle prior to the data binding stages. Code example like below for example is always returning me false.:

 

protected void Page_Load(sender se, EventArgs evt) // Master Page event
{
 
var grid = ControlHelper.FindControlByCIDRecursive<RadGrid>(Request["__EVENTTARGET"], ContentPlaceHolder1); // Iterate content page to find all RadGrid
                if (grid != null)
                {
                    bool rebind = false;
                    if(grid.AllowFilteringByColumn)
                    foreach (GridColumn column in grid.MasterTableView.Columns)
                        if (column.CurrentFilterFunction!=GridKnownFunction.NoFilter) {
                        column.CurrentFilterFunction = GridKnownFunction.NoFilter;
                        column.CurrentFilterValue = string.Empty;
                            rebind = true;
                    }
                    if (rebind)
                    {
                        grid.MasterTableView.FilterExpression = string.Empty;
                        grid.MasterTableView.Rebind();
                    }
                }
}

 

Our requirement is to apply a certain DOM class to all grids site-wise. If AllowFilteringByColumn is not propertly populated before databinding is there another way to determine whether filtering is enabled?

Viktor Tachev
Telerik team
 answered on 07 Sep 2016
5 answers
52 views
What is the proper way to set FilterTextBoxLabel from codebehind?

RadFileExplorer1.FilterTextBoxLabel= GetGlobalResourceObject("Insight", "Filter")

Doesn't work in _Load nor in _Init

Marc
Vessy
Telerik team
 answered on 07 Sep 2016
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?