Telerik Forums
UI for ASP.NET AJAX Forum
11 answers
281 views
I have a pretty basic image gallery right now, using the following code:

<telerik:RadImageGallery runat="server" Width="300px" Height="300px" LoopItems="true" ID="rigFeaturedNews" >
    <ImageAreaSettings Width="300px" Height="300px" />
    <ToolbarSettings ShowFullScreenButton="false" ShowSlideshowButton="false" ShowThumbnailsToggleButton="false" />
</telerik:RadImageGallery>

I have added two images to the gallery using code behind. On loading the page, the first image displays just fine. At the bottom, the thumbnails for both images are displayed. However, when I click the "next" button, or click on the thumbnail for the second picture, the loading spinner pops up, and the image grays, but the second image never loads.

Any idea what could be causing this?
Maria Ilieva
Telerik team
 answered on 01 Oct 2014
2 answers
82 views
Hi Everyone,
I am using RadEditor ToolBar
telerik control bit its not showing me on Firfox broser. Can anyone help me out on this issue.

Thanks in Advance!
Anjan
Top achievements
Rank 1
 answered on 01 Oct 2014
3 answers
127 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
130 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
442 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
66 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
162 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
96 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
104 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
208 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?