Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
142 views
In a GridImageColumn there is a DataAlternateTextField atribute informed with a DataItem. There are some urls that doesn't pont to any vàlid file, but the Alternate text is not shown; The alternate text exists but the grid displays an imatge placeholder.

The code is:

​<telerik:GridImageColumn HeaderText="Sintrom[I]" DataImageUrlFields="ImagenSintrom" DataImageUrlFormatString="{0}" 
    UniqueName="Sintrom" DataAlternateTextField="TooTipSintrom">
</telerik:GridImageColumn>


Viktor Tachev
Telerik team
 answered on 01 Oct 2014
2 answers
147 views
Hi,

We use telerik radchart for charting in our app, we've been using it for some time and recently upgraded to 2013.2.717.40 in our app (which was the most recent version our expired subscription had).

Since then, we get a 403 error when using a chart image:

ASPX:
...
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Charting" TagPrefix="telerik" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
...
<telerik:RadChart ID="RadChart" IntelligentLabelsEnabled="True" runat="server" CssClass="RadChart" DefaultType="Spline" />
...


The web.config has:
<httpHandlers>
<add path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" validate="false" />
</httpHandlers>

and
<handlers>
      <remove name="ChartImage_axd" />
<add name="ChartImage_axd" path="ChartImage.axd" type="Telerik.Web.UI.ChartHttpHandler" verb="*" preCondition="integratedMode" />
</handlers>

And I get a 403 permission denied on the url for the ChartImage.axd

The image is correctly created and cached in the appropriate temporary folder we've configured for use.

In processmonitor, as soon as that file is correctly written, the 403 failed request trace log file is created (we've enabled failed request tracing)

That file contains:
ModuleName IsapiModule 
Notification 128 
HttpStatus 403 
HttpReason Forbidden 
HttpSubStatus 0 
ErrorCode 0 
ConfigExceptionInfo  
Notification EXECUTE_REQUEST_HANDLER 
ErrorCode The operation completed successfully. (0x0) 

I'm now at a loss.

I can't see anything being denied permissions and it looks like the web.config is set right for charting.

Any ideas?
Danail Vasilev
Telerik team
 answered on 01 Oct 2014
4 answers
457 views
Hi,

in my project, I changed my implementation from scrolling a grid inside a radpane to a non-scrolling radpane with a scrolling grid with static headers. Unfortunately, this leads to some problems. I've attached an aspx page for reproduction purposes.

Problems are:
1) using sender.getInnerHeight() where sender is the pane just resized, returns an incorrect value. This leads to the problem, that vertical scrollbar bottom end vanishes below the browser window border. This also leads to the problem that horizontal scrollbars vanish below the bottom browser window border (only IE7, because FF3 doesn't even show horizontal scrollbars).
2) I can't get horizontal scrollbars to become visible in FF3 - although in IE7 they exist.
3) right above the horizontal scrollbar, there is a ugly grey rectangle visible inFF3 that matches the height of the grid header. Of course, I'd like to get rid of this rectangle.
4) the grid tries to horizontally 'squash' itself in FF3 - I can't find any reason therefore. The grid in my project contains more rows than a 1280x1024 screen is able to display - so I'd like to have horizontal scrolling enabled without that squashing effect.

Here's the sample aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="scrollbartest3.aspx.cs" Inherits="InteractionToolkit_Custom_scrollbartest3" %> 
 
<!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" style="height: 100%;"
<head runat="server"
    <title></title
</head> 
<body style="margin: 0px; height: 100%; overflow: hidden;" class="pane" scroll="no"
    <form id="form1" runat="server" style="height: 100%; margin: 0px;"
    <script type="text/javascript"
    function RadPane2_ClientResized(sender, eventArgs) { 
                    var oGrid = $find("<%= RadGrid1.ClientID %>"); 
                    var gridHeader = $get("<%= RadGrid1.ClientID %>" + "_GridHeader"); 
                    var gridData = $get("<%= RadGrid1.ClientID %>" + "_GridData"); 
                    var scrollX = sender.getInnerWidth(); 
                    var scrollY = sender.getInnerHeight(); 
                    //gridData.style.width = scrollX + "px"; 
                    gridData.style.height = (scrollY - gridHeader.offsetHeight) + "px"; 
    } 
</script> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" EnableScriptCombine="true" 
        OutputCompression="Disabled" AsyncPostBackTimeout="360" ScriptMode="Release"
    </telerik:RadScriptManager> 
    <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" DecoratedControls="All" 
        EnableViewState="False" EnableEmbeddedSkins="true" /> 
    <asp:HiddenField ID="controlfocus" runat="server" /> 
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" 
        EnableViewState="False" 
        EnablePageHeadUpdate="False"
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="Button1"
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManager> 
    <telerik:RadSplitter ID="MainSplitter" runat="server" Orientation="Horizontal" Height="100%" 
        VisibleDuringInit="False" Width="100%" FullScreenMode="true" BorderSize="0"
        <telerik:RadPane ID="RadPaneTop" runat="server" Height="35px" MaxHeight="35" EnableViewState="false" 
            CssClass="menuPaneTop" Scrolling="None" Locked="True"
            <div style="float: left; width: 214px;"
                <asp:Image ImageUrl="~/InteractionToolkit/Custom/RenderLogo.aspx" ID="imgLogo" runat="server" 
                    AlternateText="Logo" /> 
            </div> 
            <telerik:RadMenu ID="RadMenu1" runat="server" Style="z-index: 2900;"
                <Items> 
                    <telerik:RadMenuItem Text="Start" Value="start" NavigateUrl="Custom/default.aspx"
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="Suche" Value="search"
                        <Items> 
                            <telerik:RadMenuItem Text="Volltextsuche" Value="fulltextsearch" NavigateUrl="Custom/PIU_DecisionMaker_CBUSERIT.aspx"
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem Text="Einzelsuche" Value="directsearch" NavigateUrl="Custom/default2.aspx"
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="Vorlagenverwaltung" Value="templateadminstration" NavigateUrl="Custom/DynamicFilters/expertensuche.aspx"
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="Einstellungen" Value="settings"
                        <Items> 
                            <telerik:RadMenuItem Text="Benutzerdaten" Value="usermanagement" NavigateUrl="Custom/usermanagement.aspx"
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem Text="Downloads" Value="downloads" NavigateUrl="Custom/mydownloads.aspx"
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem Text="Kennwort ändern" Value="changePwd"
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="Hilfe" Value="help"
                        <Items> 
                            <telerik:RadMenuItem Text="Supportanfrage" Value="support"
                            </telerik:RadMenuItem> 
                            <telerik:RadMenuItem Text="Hilfethemen" Value="helptopics"
                            </telerik:RadMenuItem> 
                        </Items> 
                    </telerik:RadMenuItem> 
                    <telerik:RadMenuItem Text="Abmelden" Value="logout" PostBack="true"
                    </telerik:RadMenuItem> 
                </Items> 
            </telerik:RadMenu> 
            <div style="float: right;"
                <div> 
                    <asp:Label ID="lbUser" runat="server" Text="Username" EnableViewState="False"></asp:Label> 
                </div> 
                <div> 
                    <asp:Label ID="lblCA" runat="server" Text="CorporateAccount" EnableViewState="False"></asp:Label> 
                </div> 
            </div> 
        </telerik:RadPane> 
        <telerik:RadPane ID="RadMiddle" runat="server" Scrolling="None"
            <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="100%" VisibleDuringInit="false" 
                Width="100%" LiveResize="false"
                <telerik:RadPane ID="RadPaneBottom" runat="server" Scrolling="None"
                    <telerik:RadSplitter ID="RadSplitter2" runat="server" Width="100%" Height="100%" 
                        Orientation="Horizontal"
                        <telerik:RadPane ID="RadPane1" runat="server" Width="100%" Height="50%"
                            <asp:Button ID="Button1" runat="server" Text="Button" OnClick="Button1_Click" /> 
                        </telerik:RadPane> 
                        <telerik:RadSplitBar ID="RadSplitBar1" runat="server" /> 
                        <telerik:RadPane ID="RadPane2" runat="server" Scrolling="None" OnClientResized="RadPane2_ClientResized"
                            <telerik:RadGrid ID="RadGrid1" runat="server" GridLines="None" Width="100%"
                                <HeaderContextMenu> 
                                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                </HeaderContextMenu> 
                                <MasterTableView AutoGenerateColumns="True"
                                </MasterTableView> 
                                <ClientSettings> 
                                    <Scrolling AllowScroll="true" UseStaticHeaders="true" ScrollHeight="300px" /> 
                                </ClientSettings> 
                                <FilterMenu> 
                                    <CollapseAnimation Duration="200" Type="OutQuint" /> 
                                </FilterMenu> 
                            </telerik:RadGrid> 
                        </telerik:RadPane> 
                    </telerik:RadSplitter> 
                </telerik:RadPane> 
            </telerik:RadSplitter> 
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    <telerik:RadWindow ID="RadWindowChangePassword" runat="server" Title="Content5 ContactBase - change password" 
        EnableViewState="false" NavigateUrl="ChangePassword.aspx" Modal="true" ShowContentDuringLoad="false" 
        VisibleStatusbar="false" Behaviors="Close, Reload" Width="800px" Height="440px"
    </telerik:RadWindow> 
    </form> 
</body> 
</html> 
 

Here's the code-behind:
using System; 
using System.Collections.Generic; 
using System.Linq; 
using System.Web; 
using System.Web.UI; 
using System.Web.UI.WebControls; 
using System.Data; 
 
public partial class InteractionToolkit_Custom_scrollbartest3 : System.Web.UI.Page 
    int colCount = 20; 
 
    protected void Page_Load(object sender, EventArgs e) 
    { 
        RadGrid1.DataSource = CreateTableStructure(); 
        RadGrid1.DataBind(); 
    } 
    protected void Button1_Click(object sender, EventArgs e) 
    { 
        DataTable dt = CreateTableStructure(); 
         
        for (int r = 0; r < 100; r++) 
        { 
            DataRow newRow = dt.NewRow(); 
            for (int i = 0; i < colCount; i++) 
            { 
                newRow[i] = "row " + r + ", col " + i; 
            } 
            dt.Rows.Add(newRow); 
        } 
 
 
        RadGrid1.DataSource = dt; 
        RadGrid1.DataBind(); 
    } 
 
    private DataTable CreateTableStructure() 
    { 
        DataTable dt = new DataTable("data"); 
        int colCount = 20; 
        for (int i = 0; i < colCount; i++) 
        { 
            dt.Columns.Add("col" + i, typeof(string)); 
        } 
 
        return dt; 
    } 
 
 

Would be great if somebody could point out my mistake.

Best regards
Thomas
Pavlina
Telerik team
 answered on 01 Oct 2014
1 answer
75 views
For a RadScheduler, can I choose to pesist the selected view, but not the date?

If so, how?
Peter Filipov
Telerik team
 answered on 01 Oct 2014
7 answers
175 views
Hi,

Both GridRatingColumn or RadRating control in a GridTemplateColumn values are changed after postback. I have attached screen shots for before-after postback. As you will see, values are not changed but ratings are. Here is my code:
<telerik:GridTemplateColumn>
    <ItemTemplate>
        <%# Convert.ToDouble(Eval("Yuzde")) %>
    </ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridRatingColumn DataField="Yuzde">
</telerik:GridRatingColumn>
I have put a button to trigger postback event outside of the grid. RadGrid uses NeedDataSource event to populate data. If I call RadGrid1.Rebind() method in Button1_Click event, everything works fine. What am I missing? Or is this a bug?

Thanks in advance.
Danail Vasilev
Telerik team
 answered on 01 Oct 2014
1 answer
108 views
Hi ,

I am facing a weird problem.
When I am filtering a datetime column, I am getting the correct data that should be coming. But when the control goes to Page-PreRender event , the data is lost.
And finally I donot get any data in the radgrid.
Btw I am just changing the format of the date to match the format in the database. And that seems fine since I get correct data in the datatable that is the source of the radgrid.
The problem is only with datetimecolumn(Not with any other columntype)

Thanks in advance.
Anurag


Eyup
Telerik team
 answered on 01 Oct 2014
1 answer
113 views
Hello guys ... and girl,

I need a hand in resolving an issue with RadRibbonBar. As I understand, I can get it to minimize / collapse by setting its EnableMinimizing to True. That's all fine but there's a small problem to it. It can collapse, but the height would remain there, serving as unnecessary whitespace. Is there a way to adjust the height on minimize? I know that can be done with a bit of javascript and css, but would love to skip the css part, if possible that's because css varies from Skins, if I'm not mistaken.

Thank
Aneliya Petkova
Telerik team
 answered on 01 Oct 2014
6 answers
229 views

Hi All,

I have integrated the bar-chart with my application and checked graph with different scenarios. I found one issue with rendering the negative values. The X axis labels gets plotted on the grid lines of graph. Please check the attached image("Barchart_NegativeValues.jpg"). This is looking vary ugly. I have old RAD Chart implementation in my project, I have attached sample image of old graph. In old RAD chart this case was handled.

Can anyone tell me know how to show the labels outside the graph in case of negative value(Please see attached image "old HTML Chart.jpg")

Thanks,

Vaibhav

Stamo Gochev
Telerik team
 answered on 01 Oct 2014
1 answer
113 views
Whenever I add a Telerik control to any aspx or master page I seem to come across a rending problem.
As an example,a RadMenu is placed on a master page which only partially shows up (see attachments).
When running in browser, all appears fine and as it should.
VS2013 Professional designer is not showing anything Telerik correctly.
I've tried this on a laptop and main PC, both the same.

Any assistance appreciated.

Thanks
ArronG


Vessy
Telerik team
 answered on 01 Oct 2014
7 answers
139 views
Hi,

Some of the tools on the RadEditor that I have added does not work.  For example, the bold doesn't bold and the indent doesn't indent nor does the outdent.

Here's my code:

    <telerik:radeditor runat="server" ContentFilters="RemoveScripts" ID="RadEditor1" EditModes="Design"
                            OnClientLoad="OnClientLoad" Width="800px" Height="200px">
                            <Tools>
                                <telerik:EditorToolGroup Tag="Top">
                                    <telerik:EditorTool Name="AjaxSpellCheck" Enabled="true" />
                                    <telerik:EditorTool Name="Cut" />
                                    <telerik:EditorTool Name="Copy" />
                                    <telerik:EditorTool Name="Paste" />
                                    <telerik:EditorTool Name="Undo" />
                                    <telerik:EditorTool Name="Redo" />
                                    <telerik:EditorTool Name="FontName" popupwidth="150px" popupheight="150px" width="150px" />
                                    <telerik:EditorTool Name="FontSize" popupwidth="35px" popupheight="35px" width="35px" />
                                    <telerik:EditorTool Name="ForeColor" />
                                    <telerik:EditorTool Name="Bold" />
                                    <telerik:EditorTool Name="Italic" />
                                    <telerik:EditorTool Name="Underline" />
                                    <telerik:EditorTool Name="InsertUnorderedList" />
                                    <telerik:EditorTool Name="InsertOrderedList" />
                                    <telerik:EditorTool Name="Indent" />
                                    <telerik:EditorTool Name="Outdent" />
                                    <telerik:EditorTool Name="JustifyLeft" />
                                    <telerik:EditorTool Name="JustifyCenter" />
                                    <telerik:EditorTool Name="JustifyRight" />
                                    <telerik:EditorTool Name="JustifyFull" />
                                </telerik:EditorToolGroup>
                            </Tools>
                            <Content></Content>
                        </telerik:radeditor>


Also the Font tool would add an extra empty tool row in IE, but does not in Firefox or Chrome.

Ianko
Telerik team
 answered on 01 Oct 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?