Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
449 views
Hi,

I'm new to the Telerik community, and have been trying to get the Sales Dashboard demo working in my environment.

I started by downloading the ZIP archive from <http://demos.telerik.com/aspnet-ajax/salesdashboard/SalesDashboardSource.zip>, then looked at the "README.txt" file, which lead to me installing the Telerik Data Access product (free product). I suspect the source of my problems may have begun here, as I was not able to find a download link for "Telerik Data Access Q3 2013". I could only find, and hence install, "Telerik Data Access Q3 2014".

Thereafter, did everything suggested in README file, but I cannot get solution to build in VS 2012. The build is failing because of following:

1>C:\Projects\DashBoard.Demo\ReferencesTRIAL\Telerik OpenAccess\OpenAccess.targets(104,3): error MSB4018: File name: 'Telerik.OpenAccess.SDK, Version=2013.3.1014.1, Culture=neutral, PublicKeyToken=7ce17eeaf1d59342'
1>C:\Projects\DashBoard.Demo\ReferencesTRIAL\Telerik OpenAccess\OpenAccess.targets(104,3): error MSB4018:    at Telerik.OpenAccess.Tools.OpenAccessEnhancer.Execute()
1>C:\Projects\DashBoard.Demo\ReferencesTRIAL\Telerik OpenAccess\OpenAccess.targets(104,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
1>C:\Projects\DashBoard.Demo\ReferencesTRIAL\Telerik OpenAccess\OpenAccess.targets(104,3): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()

It looks like the enhancer included in the Sales Dashboard demo is expecting an older version of OpenAccess?

I would be grateful for any guidance on how I might be able to fix this problem?

One other thing I've noticed is the Telerik Control Panel reports Data Access is "PARTIALLY INSTALLED"? Although I have tried reinstallation and repair, cannot change this situation, which I guess might be affecting my ability to build a solution.

Many thanks in advance.
cynthia
Top achievements
Rank 1
 answered on 29 Nov 2014
1 answer
88 views
I'm trying to plot a 2nd Y axis with the associated scale on the right of the graph.  When I plot the 2nd value though, it seems to be using the scale on the left.  What am I doing wrong here?  You can see from the attached graph snapshot that the plotting isn't what I'd expect.

Dim lineMonthlyProfits As New LineSeries
Dim lineTotalProfits As New LineSeries
Dim yAxisTotalProfits As New AxisY
 
 
Do While ChartingMonth < Now()
    GrossProfit = 0 : Fees = 0
   'Code here that pulls values from db
    TotalProfit += GrossProfit - Fees
    lineMonthlyProfits.SeriesItems.Add(CInt(GrossProfit - Fees))
    lineTotalProfits.SeriesItems.Add(Int(TotalProfit))
    chartMonthlyProfits.PlotArea.XAxis.Items.Add(CStr(Month(ChartingMonth)) & "/" & Right(CStr(Year(ChartingMonth)), 2))
    ChartingMonth = DateAdd(DateInterval.Month, 1, ChartingMonth)
Loop
lineMonthlyProfits.Name = "Monthly Profit"
lineMonthlyProfits.LabelsAppearance.DataFormatString = "{0:c0}"
lineTotalProfits.LabelsAppearance.DataFormatString = "{0:c0}"
chartMonthlyProfits.PlotArea.Series.Add(lineMonthlyProfits)
chartMonthlyProfits.PlotArea.YAxis.MaxValue = 20000 'Not needed but in place for testing purposes
yAxisTotalProfits.Name = "Total Profits"
chartMonthlyProfits.PlotArea.AdditionalYAxes.Add(yAxisTotalProfits)
chartMonthlyProfits.PlotArea.XAxis.AxisCrossingPoints.Add(0)
chartMonthlyProfits.PlotArea.XAxis.AxisCrossingPoints.Add(lineTotalProfits.SeriesItems.Count)
lineTotalProfits.Name = yAxisTotalProfits.Name
chartMonthlyProfits.PlotArea.Series.Add(lineTotalProfits)
chartMonthlyProfits.PlotArea.YAxis.LabelsAppearance.DataFormatString = "{0:c0}"
chartMonthlyProfits.PlotArea.YAxis.MinorGridLines.Visible = False
chartMonthlyProfits.PlotArea.XAxis.MinorGridLines.Visible = False
chartMonthlyProfits.PlotArea.XAxis.MajorGridLines.Visible = False
chartMonthlyProfits.Legend.Appearance.Visible = False
Brian
Top achievements
Rank 2
 answered on 29 Nov 2014
1 answer
39 views
I have the exact similar scenario which is descrbed in the below thread. 
http://www.telerik.com/forums/problem-working-with-dynamically-created-radgrid-s

The solution suggested by Telerik Team in this thread is given below

1) To drop the resizing and reordering features from this grid.
2) To disable the ViewState of the whole placeholder where you load the RadGrid control. In this scenario have in mind that the SqlDataReader binding may not works, as each postback in the page will make the grid try to rebind and if the reader is currently closed, you will get an exception.

Unfortunately I cannot use the above suggestion as my customer is so particular on the ReOrder functionality.

As it an old thread(2011) My query here is there any solution available for this issue in latest Telerik Controls?

PS: I am posting this issue in a new thread again as I didn't get the solution from my previous posts.

Thanks,
A2H
Konstantin Dikov
Telerik team
 answered on 29 Nov 2014
2 answers
65 views
Hi,

We are using Sitecore 6.6 which is using RadEditor v7.2.0.0, when we insert an image using 'Insert media item' it creates duplicate 'width' and 'height' attributes.

<img width="200" height="200" alt="Award" src="~/media/D4FCA204AE3940F3959DA208A7157D48.ashx" width="200" height="200" />

How we can fix this issue ?

Thanks for help

Regards
Piotr
Piotr
Top achievements
Rank 1
 answered on 28 Nov 2014
6 answers
606 views

Hello,

I noticed that when I click the Cancel button or the 'X' on a radConfirm dialog box, the radConfirm window closes without doing a postback of the original page.  I would like to duplicate this with my own radWindow.  If the user is canceling, there's no need for the postback.

My Cancel button calls the below CloseOnReload function (the same one I've seen throughout this site for closing a radWindow):

 
 
function GetRadWindow() {  
 
var oWindow = null;  
 
if (window.radWindow) oWindow = window.radWindow; //Will work in Moz in all cases, including clasic dialog  
 
else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; //IE (and Moz az well)  
 
return oWindow;  
 
}  
 
function CloseOnReload() {  
 
GetRadWindow().Close();  
 
}  
 

Is there any way to stop the postback when the user clicks the Cancel button or the 'X'?

Thanks.

Steve

Ahmed
Top achievements
Rank 1
 answered on 28 Nov 2014
1 answer
119 views
I have merged the action columns together by using GridColumnGroup. Now I want my radgrid to have the vertical borders by using css class like this :

div.RadGridCustomClass .rgMasterTable td {
border-right: 1px solid #f0f0f0 !important;
}

My problem is when I use this Css to have vertical line in my grid it will be included the merged columns too and I do NOT want the merged column to have the vertical border. Would you please help me to remove just the merged columns border?
My code for merged border is this:

<%--Actions Columns --%>

<telerik:GridEditCommandColumn ButtonType="ImageButton" ColumnGroupName="Actions" HeaderStyle-CssClass="header" UniqueName="EditCommandColumn" EditImageUrl="~\Images\HomePage\Toolkit-Actions-Calendar.jpg" ItemStyle-CssClass="MergedBorder" EditText="Edit Dates">
<HeaderStyle CssClass="header" />
<ItemStyle HorizontalAlign="Center" Width="15" />
</telerik:GridEditCommandColumn>

<telerik:GridButtonColumn ButtonType="ImageButton" ColumnGroupName="Actions" HeaderStyle-CssClass="header" ImageUrl="~\Images\HomePage\Toolkit-Actions-Users.jpg" UniqueName="ManageUserColumn" CommandName="ManageUsers" ItemStyle-CssClass="MergedBorder" Text="Manage Users">
<HeaderStyle CssClass="header" />
<ItemStyle HorizontalAlign="Center" Width="5" />
</telerik:GridButtonColumn>


<telerik:GridButtonColumn ButtonType="ImageButton" ColumnGroupName="Actions" HeaderStyle-CssClass="header" ImageUrl="~\Images\HomePage\Toolkit-Actions-Distribute.jpg" UniqueName="DistributeColumn" CommandName="DistributeButtonColumn" ItemStyle-CssClass="MergedBorder" Text="Distribute Toolkit">
<HeaderStyle CssClass="header" />
<ItemStyle HorizontalAlign="Center" Width="5" />
</telerik:GridButtonColumn>

<telerik:GridTemplateColumn UniqueName="DeleteColumn" ColumnGroupName="Actions" AllowFiltering="False" ItemStyle-CssClass="MergedBorder">
<ItemTemplate>
<asp:ImageButton ID="DeleteImageButton" runat="server" AlternateText="Delete Toolkit" CommandName="Delete"
OnClientClick="javascript:if(!confirm('This action will delete the selected Toolkit. Are you sure?')){return false;}"
ImageUrl="~\Images\HomePage\Toolkit-Actions-Delete.jpg" ToolTip="Delete Toolkit" />
</ItemTemplate>
<HeaderStyle CssClass="header" />
<ItemStyle HorizontalAlign="Center" Width="5" />
</telerik:GridTemplateColumn>

</Columns>
<ColumnGroups>
<telerik:GridColumnGroup HeaderStyle-HorizontalAlign="Center" HeaderText="Actions" Name="Actions">
<HeaderStyle HorizontalAlign="Center" CssClass="gridheaderlight" ForeColor="white" />

</telerik:GridColumnGroup>
</ColumnGroups>
<EditFormSettings>
<EditColumn UniqueName="EditCommandColumn" ButtonType="ImageButton" CancelImageUrl="~/RadControls/Grid/Skins/Default/Cancel.gif" UpdateImageUrl="~/RadControls/Grid/Skins/Default/Update.gif">
</EditColumn>

<EditColumn FilterControlAltText="Filter EditCommandColumn1 column" UniqueName="EditCommandColumn1">
</EditColumn>
</EditFormSettings>
​
Konstantin Dikov
Telerik team
 answered on 28 Nov 2014
1 answer
141 views
Hi,
Using a radcombobox for multiple column with multiple selection but this item list not show properly inside a radcombobox  and also hover event design mismatch.

i want to show this list is a inline.
please provide css.

Thanks,
Rahul
Magdalena
Telerik team
 answered on 28 Nov 2014
1 answer
63 views
Hi

This isn't specifically for the Telerik guys, rather the community. Does anyone have any ideas how I would query the database to find either recurring events, or rooms that don't have events, when taking into consideration recurring events?

Andy
​
Boyan Dimitrov
Telerik team
 answered on 28 Nov 2014
5 answers
409 views
Hi

I've created a completely standard, empty web project in VS 2012 / 2013 - and the 2013 version doesnt allow me to see the png sprites and style sheets that _should_ be served by WebResource.axd. The Telerik.Web.UI.WebResource.axd requests seem to work just fine. 

In both projects I've referenced the Bin45 versions of Telerik.Web.UI.dll and Telerik.Web.UI.Skins.dll, located in the "dependencies" folder, but deleted to save file size in the upload.

In the 2013 version I have removed a reference to System.Core (probably irrelevant) and I have aligned the minor differences between the two project's web.config files. None of the changes I made caused any differences whatsoever.

I'm attaching screenshots of the 2012/2013 differences.

This is a copy of a support ticket I created, I'll post an answer here if I get one before the forum manages to fix the problem :o)

Here is the web.config that works in 2012, but not in 2013
<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  -->
<configuration>
    <!--
    For a description of web.config changes for .NET 4.5 see http://go.microsoft.com/fwlink/?LinkId=235367.
 
    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.5" />
      </system.Web>
  -->
    <system.web>
        <compilation debug="true" targetFramework="4.5">
 
            <!-- this section is added because it was in the VS2013 solution -->
            <assemblies>
                <add assembly="System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B03F5F7F11D50A3A" />
                <add assembly="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089" />
                <add assembly="System.Speech, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
            </assemblies>
            <!-- end section added -->
        </compilation>
 
        <!-- this section is added because it was in the VS2013 solution -->
        <httpRuntime targetFramework="4.5" />
        <!-- end section added -->
        <pages controlRenderingCompatibilityVersion="4.0" />
        <httpHandlers>
            <add path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" verb="*" validate="false" />
        </httpHandlers>
    </system.web>
    <system.webServer>
        <validation validateIntegratedModeConfiguration="false" />
        <handlers>
            <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />
        </handlers>
    </system.webServer>
</configuration>

The GridTest.aspx file
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="GridTest.aspx.cs" Inherits="EmptyVs2012withTelerik.GridTest" %>
 
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
 
<!DOCTYPE html>
 
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server">
        </telerik:RadStyleSheetManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        </telerik:RadAjaxManager>
        <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>
    <div>
     
        <telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" CellSpacing="0" GridLines="None">
        </telerik:RadGrid>
     
    </div>
    </form>
</body>
</html>

And the GridTest.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace EmptyVs2012withTelerik
{
    public partial class GridTest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            var persons = new List<Person>();
 
            persons.Add(new Person() { FirstName = "Jan", LastName = "Hansen", Age = 37 });
            persons.Add(new Person() { FirstName = "Jannik", LastName = "Meibom", Age = 39 });
            persons.Add(new Person() { FirstName = "Anne", LastName = "Hansen", Age = 40 });
            persons.Add(new Person() { FirstName = "Jan", LastName = "Hansen", Age = 37 });
            persons.Add(new Person() { FirstName = "Jannik", LastName = "Meibom", Age = 39 });
            persons.Add(new Person() { FirstName = "Anne", LastName = "Hansen", Age = 40 });
            persons.Add(new Person() { FirstName = "Jan", LastName = "Hansen", Age = 37 });
            persons.Add(new Person() { FirstName = "Jannik", LastName = "Meibom", Age = 39 });
            persons.Add(new Person() { FirstName = "Anne", LastName = "Hansen", Age = 40 });
            persons.Add(new Person() { FirstName = "Jan", LastName = "Hansen", Age = 37 });
            persons.Add(new Person() { FirstName = "Jannik", LastName = "Meibom", Age = 39 });
            persons.Add(new Person() { FirstName = "Anne", LastName = "Hansen", Age = 40 });
            persons.Add(new Person() { FirstName = "Jan", LastName = "Hansen", Age = 37 });
            persons.Add(new Person() { FirstName = "Jannik", LastName = "Meibom", Age = 39 });
            persons.Add(new Person() { FirstName = "Anne", LastName = "Hansen", Age = 40 });
 
            RadGrid1.DataSource = persons;
        }
    }
 
    public class Person
    {
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public int Age { get; set; }
    }
}

Maria Ilieva
Telerik team
 answered on 28 Nov 2014
1 answer
129 views
Hi Team
We have defined a custom button column which is inherited from GridButtonColumn. On page load we can see the column and button in it. As soon as it gets data from an Ajax call. Data is populated into the grid but it clears all the contents in the custom button cell.This option is working fine in version 2013.3.1114.35 . As soon as I migrated to version 2014.3.1024.35 this problem popped up. Please help us to solve the issue.
I investigated and found that there is some change in the telerik populating the data into the cell.

In the previous version (i.e. 2013) cell is populating the data based on grid.data.ColumnType =="GridButtonColumn" so even if we inherited column from GridButtonColumn we manage to set the required ColumnType of masterTableView to GridButtonColumn on client side so that telerik grid databinding method behave as expected and displays button column.

But In new version even though we checked that columntype is set to GridButtonColumn in masterTableView button column data is cleared while binding data. We are not sure how to bring the same behaviour so that we can get the button column working because in new version (i.e. 2014 Q3) data bind internally calls "populateCell" method which gives a call to a function which is fired based on column type I think (i.e. a.Grid.GridBoundColumn or a.Grid.GridButtonColumn etc.)

We have implemented the following code while inheriting the GridButtonColumn .

i.e.

public override GridColumn Clone()

{

    RequiredGridBoundColumn requiredGridBoundColumn = new RequiredGridBoundColumn();

    requiredGridBoundColumn.CopyBaseProperties(this);

    return requiredGridBoundColumn;

}

Konstantin Dikov
Telerik team
 answered on 28 Nov 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?