Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
148 views

Hi,

Anyone no why the Edit Columns option doesn't show on my Design Time Task list? It should be there according to the Help file.

I am using 2017.1.228 (Trial) .net Framework 4.5 Controls & Visual Studio 2017.

Thanks, Al

 

Alan
Top achievements
Rank 1
Iron
 answered on 04 May 2017
7 answers
216 views
Hi,
    I would like to create a batch edit grid where the first two columns are a pair of cascading combo boxes (actually the first column needs to be a combo, the next column can be a combo or just a dropdown list). I've had a few experimental attempts so far but have not been able to get anything to work properly. Before I go any further, I would like to ask what is the best way to tackle this problem?

The application I'm trying to write is a timesheet module. The idea is that at the end of the week, the user will enter a row on their timesheet for each job (selected from the combo box) they worked on. Then they will select a task (each job is broken down into a number of tasks) from the next combo/dropdown. Then in the next seven columns, they will enter the number of hours worked on that job/task against each day.

The list of jobs and their related tasks is being queried from a SQL database and I've tended to use asp:SqlDataSource controls to supply the data to the page. I'm OK with batch editing generally but the cascading lists has me stumped so any help would be much appreciated.

Regards Geoff
Rayne
Top achievements
Rank 1
 answered on 03 May 2017
9 answers
601 views
Love the new barcode control.  QR is great.  

I'm trying to setup a generic barcode generator that can be used through out my app (http://whatever/barcode.aspx?value=xyz) and have it generate a PNG image.  I know in the Q2 release this was not possible since PNG was not supported.  However now that it is, I would love a few suggestions on how I could render the barcode image in code-behind (C#) and then just stream it out to the browser.  

Basically I just need to be able to get to the PNG image for the barcode from the control.  

Thanks,
Alex  
Garo
Telerik team
 answered on 03 May 2017
0 answers
407 views

Hi,

My grid vertical align text not set properly.

Please help, thanks.

 

<telerik:RadGrid ID="grid" runat="server" AutoGenerateColumns="False" 
        CellSpacing="0"  GridLines="None" Width="600px"
    OnItemDataBound="grid_OnItemDataBound" 
    OnItemCommand="grid_OnItemCommand" >
        <MasterTableView NoMasterRecordsText="Kayıt bulunamadı" ItemStyle-VerticalAlign="Middle" >
            <ItemStyle BackColor="#C6E2FF" Font-Size="Medium" VerticalAlign="Middle" Height="40" />
            <AlternatingItemStyle BackColor="White" Font-Size="Medium" VerticalAlign="Middle" />
            <columns>
                <telerik:GridButtonColumn UniqueName="KatPlani" HeaderText="Kat Planı" HeaderStyle-Width="30" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" CommandName="Detay" ButtonType="ImageButton" ImageUrl="images/harita_32.png" ItemStyle-VerticalAlign="Middle">
                </telerik:GridButtonColumn>

                <telerik:GridButtonColumn UniqueName="Goruntule" HeaderText="Görüntüle" HeaderStyle-Width="30" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" CommandName="Detay" ButtonType="ImageButton" ImageUrl="images/photo_32.png" ItemStyle-VerticalAlign="Middle">
                </telerik:GridButtonColumn>
            
                <telerik:GridButtonColumn UniqueName="Guncelle" HeaderText="Güncelle" HeaderStyle-Width="10" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" Visible="True" CommandName="Guncelle" ButtonType="ImageButton" ImageUrl="images/guncelle_32.png" ItemStyle-VerticalAlign="Middle" >
                </telerik:GridButtonColumn>
                
                <telerik:GridBoundColumn 
                    UniqueName="SATIRID" 
                    HeaderText="SATIRID"
                    DataField="SATIRID" 
                    HeaderStyle-Width="50" 
                    HeaderStyle-HorizontalAlign="Center" 
                    ItemStyle-HorizontalAlign="Center" 
                    ShowFilterIcon="False" 
                    Visible="True" 
                    Display="False">
                </telerik:GridBoundColumn>
                
                <telerik:GridBoundColumn 
                    UniqueName="BINAADI" 
                    HeaderText="Bina Adı"
                    DataField="BINAADI" 
                    HeaderStyle-Width="200" 
                    HeaderStyle-HorizontalAlign="Left" 
                    ItemStyle-HorizontalAlign="Left" 
                    ShowFilterIcon="False" 
                    Visible="True" 
                    >
                </telerik:GridBoundColumn>
                
                <telerik:GridBoundColumn 
                    UniqueName="KATADI" 
                    HeaderText="Kat Adı"
                    DataField="KATADI" 
                    HeaderStyle-Width="150" 
                    HeaderStyle-HorizontalAlign="Left" 
                    ItemStyle-HorizontalAlign="Left" 
                    ShowFilterIcon="False" 
                    Visible="True" 
                    >
                </telerik:GridBoundColumn>
            </columns>
        </MasterTableView>
<MasterTableView >
<CommandItemSettings ExportToPdfText="Export to PDF"></CommandItemSettings>

<RowIndicatorColumn Visible="True" FilterControlAltText="Filter RowIndicator column">
<HeaderStyle Width="20px"></HeaderStyle>
</RowIndicatorColumn>

<ExpandCollapseColumn Visible="True" FilterControlAltText="Filter ExpandColumn column">
<HeaderStyle Width="20px"></HeaderStyle>
</ExpandCollapseColumn>

<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column"></EditColumn>
</EditFormSettings>
</MasterTableView>

<FilterMenu EnableImageSprites="False"></FilterMenu>
        <ClientSettings>
        <Selecting AllowRowSelect="true"></Selecting>
</ClientSettings>
    </telerik:RadGrid>

Kemal
Top achievements
Rank 1
 asked on 03 May 2017
29 answers
377 views
I just installed the new release of telerik asp.net ajax (2014 q2) and I was hoping that they fixed some annoying problems in design mode !
The RadPageLayout still has problems in design mode, In fact, the message appears: "Error Rendering Control. An unhandled exception has occurred. Request is not available in this context" .
This problem prevents us from seeing the contents within the control and prevents change in design mode the control properties.

I hope this problem will be solved as soon as possible because it greatly penalizing !!!

Thanks in advance
Rumen
Telerik team
 answered on 02 May 2017
0 answers
156 views

Hi,

For each uploaded file, I would like to add one or multiple additional field(s) which would be a file (so the goal is to add either a basic input[type=file] or a Telerik AsyncUpload).

How to achieve this ?

I got to add input[type=file] additional fields but the files are not posted and I can't get the binaries on the server side.

ListFiles(i).GetFieldValue("additionalFileInput") returns a string that is the selected file name.

How could I get the binaries from additional fields that are file inputs ?

Julien
Top achievements
Rank 1
 asked on 02 May 2017
4 answers
79 views

Is there any way I can make attached graph axes cross at (0,0)? The left most point is 299, the right most is 292, so there is a little change over these 5 years, but the graphic looked like graph is going off a cliff

Here is my current setup

 

  <telerik:RadHtmlChart ID="rhcWages" runat="server"
                                         Width="225px" Height="200px"
                                         Transitions="false">
                       <ChartTitle Text="">
                            <Appearance Align="Center" Position="Top" Visible="false">
                                <TextStyle Bold="true" />
                            </Appearance>
                        </ChartTitle>
                        <Legend>
                            <Appearance Position="Bottom" Visible="false" OffsetX="5" OffsetY="5"></Appearance>
                        </Legend>
                        <PlotArea>
                            <Series/>
                            <Appearance>
                                <FillStyle BackgroundColor="Transparent"></FillStyle>
                            </Appearance>
                            <XAxis AxisCrossingValue="0" Color="black" MajorTickType="None" MinorTickType="None" Reversed="false" >                 
                                <MajorGridLines  Visible="false"/>
                                <MinorGridLines Visible="false"/>  
                                <LabelsAppearance Visible="false" RotationAngle="0" Skip="0" Step="1">
                                </LabelsAppearance>
                                <TitleAppearance Position="Center" RotationAngle="0"
                                                 Visible="false" Text="Year">
                                   <TextStyle Bold="true"/>
                                </TitleAppearance>
                          </XAxis>
                            <YAxis MajorTickType="None" MinorTickType="None" AxisCrossingValue="0">
                                <MajorGridLines  Visible="false"/>
                                <MinorGridLines Visible="false"/>  
                                <LabelsAppearance Visible="false" RotationAngle="0" Skip="0" Step="1" DataFormatString="{0:N0}" >
                                </LabelsAppearance>
                                <TitleAppearance Visible="false" Position="Center" RotationAngle="0" Text="% Change">
                                    <TextStyle Padding="8" Margin="8" Bold="true"/>
                                </TitleAppearance>   
                          </YAxis>
                        </PlotArea>
                        <Appearance>
                            <FillStyle BackgroundColor="Transparent"></FillStyle>
                        </Appearance>                       
                    </telerik:RadHtmlChart>

Please suggest

David
Top achievements
Rank 1
Iron
Iron
Veteran
 answered on 02 May 2017
1 answer
779 views

Dear Telerik Team,

We would like to use rad notification session timeout feature in my code but we have different project scenario.
We have master page in project but Form tag is inside content page so we are not able to add notification control in master page.
We don't want to add rad notification on each page.
We have created a dynamic control on page load but getting error on continue session button.

Master Page ASPX
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Site1.master.cs" Inherits="SampleApplicationSession.Site1" %>

<!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></title>
    <asp:ContentPlaceHolder ID="head" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
     <div class="clockSession">
            <div class="contSession">
                <div class="sesseionExpire">
                    Your Session will expire in minutes</div>
                <div class="showNotification">
                    Notification will be shown in:</div>
                <div class="timeRemain">
                    <span class="timeSeconds"><span id="mainLbl">60 </span></span>seconds</div>
            </div>
        </div>
    <div>
        <asp:ContentPlaceHolder ID="ContentPlaceHolder1" runat="server">
        
        </asp:ContentPlaceHolder>
    </div>
</body>
</html>

Master page CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SampleApplicationSession
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
    }
}
WebForm1.CS
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SampleApplicationSession
{
    public partial class WebForm1 :BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Session["Userid"] = "Test";

        }
    }
}

WebForm ASPX

<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="SampleApplicationSession.WebForm1" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>




<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">


   

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
 
<form id="GlmasterViewForm" runat="server">
<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Assembly="Telerik.Web.UI" 
            Name="Telerik.Web.UI.Common.Core.js">
        </asp:ScriptReference>
        <asp:ScriptReference Assembly="Telerik.Web.UI" 
            Name="Telerik.Web.UI.Common.jQuery.js">
        </asp:ScriptReference>
        <asp:ScriptReference Assembly="Telerik.Web.UI" 
            Name="Telerik.Web.UI.Common.jQueryInclude.js">
        </asp:ScriptReference>
    </Scripts>
</telerik:RadScriptManager>
</form>

</asp:Content>


BaseFile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Telerik.Web.UI;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;


namespace SampleApplicationSession
{
    public class BasePage : System.Web.UI.Page
    {

        RadNotification SessionTimeOutNotification = new RadNotification();

        protected void OnCallbackUpdate(object sender, RadNotificationEventArgs e)
        {

        }
        protected override void OnLoad(EventArgs e)
        {
            try
            {

                if (!Page.IsPostBack)
                {
      



                    SessionTimeOutNotification.ContentContainer.CssClass = "";
                    SessionTimeOutNotification.ID = "TestRad";
                    SessionTimeOutNotification.RenderMode = RenderMode.Lightweight;
                    //SessionTimeOutNotification.Position = NotificationPosition.TopCenter;
                    //rad.Width = 190;
                    SessionTimeOutNotification.Title = "Continue Your Session";
                    SessionTimeOutNotification.EnableRoundedCorners = true;
                    SessionTimeOutNotification.ShowCloseButton = false;
                    SessionTimeOutNotification.KeepOnMouseOver = false;
                    SessionTimeOutNotification.LoadContentOn = NotificationLoad.PageLoad;
                    //SessionTimeOutNotification.AutoCloseDelay = 6000;
                    
                   
                    //configure the notification to automatically show 1 min before session expiration
                    SessionTimeOutNotification.ShowInterval = (Session.Timeout - (Session.Timeout - 1)) * 60 * 1000;
                    SessionTimeOutNotification.AutoCloseDelay = 60000;

                    //set the redirect url as a value for an easier and faster extraction in on the client
                    SessionTimeOutNotification.Value = Page.ResolveClientUrl("SessionExpired.aspx");
                    MyTemplate1 objTemplate = new MyTemplate1();
                    SessionTimeOutNotification.ContentTemplate = objTemplate;
                    SessionTimeOutNotification.OnClientShowing = "notification_showing";
                    SessionTimeOutNotification.OnClientHidden = "notification_hidden";

                    SessionTimeOutNotification.CallbackUpdate += OnCallbackUpdate;

                    //SessionTimeOutNotification.CallbackUpdate += new EventHandler(OnCallbackUpdate);

                    this.Form.Controls.Add(SessionTimeOutNotification);

                    if (!ClientScript.IsStartupScriptRegistered("key1"))
                    {
                        ClientScript.RegisterStartupScript(GetType(), "key1", @"<script type=""text/javascript"" src=""../Resources/js/SessionExpired.js""></script>");
                    }

                    if (!ClientScript.IsStartupScriptRegistered("SessionControlScript"))
                    {
                        String cstext1 = "<script type=\"text/javascript\">" +
                        "serverIDs({ notificationID: 'ctl00_ContentPlaceHolder1_TestRad' });</" + "script>";
                        
                        ClientScript.RegisterStartupScript(GetType(), "SessionControlScript", cstext1);
                    }


                }
            }
            catch(Exception ex )
            {}


    
        }

        /// <summary>
        /// This is the base class for the web pages.
        /// We need to implement the common functionalities in this 
        /// class going forward.
        /// </summary>
        public class MyTemplate1 : ITemplate
        {
            protected RadButton btnMsg;
            string colnames;
            public MyTemplate1()
            {

            }
            public void InstantiateIn(System.Web.UI.Control container)
            {


                btnMsg = new RadButton();
                btnMsg.ID = "btnMsg";
                btnMsg.Text = "Continue Your Session";
                btnMsg.OnClientClicked = "ContinueSession";
                btnMsg.AutoPostBack = false;

                //boolValue.DataBinding += new EventHandler(boolValue_DataBinding);
                // boolValue.Enabled = false;
                HtmlGenericControl DivinfoIcon = new HtmlGenericControl("DIV");
                DivinfoIcon.Attributes.Add("class", "infoIcon");
                HtmlGenericControl DivinotificationContent = new HtmlGenericControl("DIV");
                DivinotificationContent.Attributes.Add("class", "notificationContent");
                HtmlGenericControl Div1 = new HtmlGenericControl("DIV");
                Label lblText = new Label();
                lblText.Text = "Time remaining: ";
                lblText.ID = "lblTime";
                HtmlGenericControl tiemlbl = new HtmlGenericControl("SPAN");
                tiemlbl.ID = "timeLbl";
                tiemlbl.InnerHtml = "60";
                tiemlbl.Attributes.Add("class", "timeLbl");
                Div1.Controls.AddAt(0, lblText);
                Div1.Controls.AddAt(1, tiemlbl);
                DivinotificationContent.Controls.AddAt(0, Div1);
                DivinotificationContent.Controls.AddAt(1, btnMsg);
                DivinfoIcon.Controls.Add(DivinotificationContent);
                container.Controls.Add(DivinfoIcon);
            }
        }

    }
}


i am getting attached error on this. Is there any better way to implement it ?

 

Please suggest is there is any better way to implement it.

Marin Bratanov
Telerik team
 answered on 02 May 2017
1 answer
116 views

Hello, I have just upgraded to the latest Telerik version and am trying to make my pager template responsive by having the page numbers hide via the trim class.  I've added the TrimMd="true" to my button field control, and the class showing up in Developer Tools, but the WebResource file does not seem to have the latest CSS, it does not include the trim classes.  

Is there something else I need to add to the control to have it recognize the responsive classes?  I'm confident the DLLs updated properly, as my Telerik Editor is working on mobile.

Thanks for any help!

<telerik:RadDataPagerButtonField FieldType="NextLast" HorizontalPosition="RightFloat" />
  <telerik:RadDataPagerButtonField FieldType="Numeric" TrimMd="true" HorizontalPosition="RightFloat" />
<telerik:RadDataPagerButtonField FieldType="FirstPrev" HorizontalPosition="RightFloat" />

 

Rumen
Telerik team
 answered on 02 May 2017
1 answer
149 views

Hello, I have just upgraded to the latest Telerik version and am trying to make my datapager responsive by having the page numbers hide via the trim class.  I've added the TrimMd="true" to my button field control, and the class showing up in Developer Tools, but the WebResource file does not seem to have the latest CSS, it does not include the trim classes.  

 

Is there something else I need to add to the control to have it recognize the responsive classes?  I'm confident the DLLs updated properly, as my Telerik Editor is working on mobile.

 

Thanks for any help!

 

 

<CCWeb:TelerikPager runat="server" Skin="Bootstrap"  RenderMode="Lightweight"   >
    <Fields>
     
     <telerik:RadDataPagerButtonField FieldType="NextLast" HorizontalPosition="RightFloat" />
      <telerik:RadDataPagerButtonField FieldType="Numeric" TrimMd="true" HorizontalPosition="RightFloat" />
    <telerik:RadDataPagerButtonField FieldType="FirstPrev" HorizontalPosition="RightFloat" />
     
    </Fields>        
</CCWeb:TelerikPager>

 

Rumen
Telerik team
 answered on 02 May 2017
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?