Telerik Forums
UI for ASP.NET AJAX Forum
13 answers
254 views

Hi,

This is mahali. I am using radgrid for my application.

In that radgrid i have filter options. While i enter some text in filter textbox with semicolon for search, it showing script error 'Index was out of range'.

Please give any suggestion to avoid these kind of error.

Thanks in advance.

Regards
Mahali.

Pavlina
Telerik team
 answered on 08 Mar 2012
1 answer
139 views
Hi there
We are looking at implementing a combobox with fly outs and would like to know if this is possible to create with telerik (see attached).
The second example is a combobox, with multi-column flyouts. Would we need to combine different solutions to create this scenario?
Any help would be much appreciated.

Regards
Marisa 
Ivana
Telerik team
 answered on 08 Mar 2012
2 answers
168 views
I am trying to make a interactive gantt chart/scheduler and I want users to be able to view the chart at different levels.
Some customers have projects that are two hours long, while others have projects that are two months long.
I want to be able to have the same Timeline but view it with these different columns of time:
1 day per column, 7 Days
1 hour per column, 24 hours
15mins, however many we can fit on the screen at once.
I have days working well, but can quite workout how you would display just the hours in a single day.
Thanks in advance,
Edward
Plamen
Telerik team
 answered on 08 Mar 2012
3 answers
191 views

Hello
I’m using RadScheduler and I’m getting an error when I hit the snooze button the second time.  I have past appointments that I snooze for 5 minutes but then, the reminder dialog pops up again immediately (did not wait 5 minutes) and it gives an error that says “Error: Object doesn't support property or method 'clone'”

Please see pictures attached

Your help will be apprecited

Thanks

Plamen
Telerik team
 answered on 08 Mar 2012
3 answers
59 views

 

how could disable the option to not be able to click on the Timeslot, where it creates the appointment.

thanks for your help 
Plamen
Telerik team
 answered on 08 Mar 2012
7 answers
382 views
I have created a quick sample app to demastrate a problem I am having where by a button does not fire the event when its in the item template for a node.

The idea behind the sample code is that the last button on a node you click it should dissapear, but it only works every other time.


Create a control called OrgChartControl (see below for content), add the control to a page and run the page.

Many thanks for any help you may be able to give 

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="OrgChartControl.ascx.cs" Inherits="RadOrgChartTest.OrgChartControl" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <div>
        <telerik:RadOrgChart runat="server" ID="RadOrgChart1" Skin="Office2007">
            <ItemTemplate>
              
                            <asp:ImageButton ID="ZoomToButton" runat="server"
                                Style="cursor: pointer"
                                CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id")%>'
                                OnClick="ZoomToButton_OnClick"
                                Visible='<%#Eval("NotLastClicked")%>' />
                          
            </ItemTemplate>
        </telerik:RadOrgChart>

       </div>



using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RadOrgChartTest
{
    public partial class OrgChartControl : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            update(0);
        }

 

        private void update(int LastClicked)
        {
           RadOrgChart1.DataTextField = "Label";
            RadOrgChart1.DataFieldID = "Id";
            RadOrgChart1.DataFieldParentID = "Parent";

            RadOrgChart1.DataSource = GetDataFromDatabase(LastClicked);
            RadOrgChart1.DataBind();
       
        }

        protected void ZoomToButton_OnClick(object sender, EventArgs e)
        {
            update( int.Parse(((ImageButton)sender).CommandArgument));
        }

 

        private class FakeData
        {
            public string Label {get;set;}
            public int Id {get;set;}
            public int? Parent {get;set;}
            public bool NotLastClicked {get;set;}
        }

        private List<FakeData> GetDataFromDatabase(int LastClicked)
        {

            List<FakeData> r = new List<FakeData>();
            r.Add(new FakeData { Label = "Parent", Id = 1, Parent = null, NotLastClicked = LastClicked!= 1 });
            r.Add(new FakeData { Label = "Node a", Id = 2, Parent = 1, NotLastClicked = LastClicked != 2 });
            r.Add(new FakeData { Label = "Node b", Id = 3, Parent = 1, NotLastClicked = LastClicked != 3 });
            r.Add(new FakeData { Label = "Node c", Id = 4, Parent = 1, NotLastClicked = LastClicked != 4 });
            r.Add(new FakeData { Label = "Node d", Id = 5, Parent = 1, NotLastClicked = LastClicked != 5 });

            return r;
        }

    }
}




Peter Filipov
Telerik team
 answered on 08 Mar 2012
7 answers
165 views
Hi there,

I'm using:

Visual Studio 2010
AJAX Q2 2011 2011.2.712.35 (Bin35)

I use the RadScriptManager to include all my CSS - I'm successfully including my own stylesheets, as well as a custom skin:

(web.config)
<add key="Telerik.Web.UI.StyleSheetFolders" value="~/_Resources/CSS/" />
<add key="Telerik.Skin" value="IntranetSkin" />
<add key="Telerik.EnableEmbeddedSkins" value="false" />
<add key="Telerik.EnableEmbeddedBaseStylesheet" value="false" />

(Base.Master)
<telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" EnableStyleSheetCombine="true">
    <StyleSheets>
        <telerik:StyleSheetReference Path="~/_Resources/CSS/base.css" />
        <telerik:StyleSheetReference Path="~/_Resources/CSS/start/jquery-ui-1.8.15.custom.css" />
        <telerik:StyleSheetReference Path="~/_Resources/CSS/styles.css" />
        <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Menu.css" Assembly="Telerik.Web.UI" />
        <telerik:StyleSheetReference Name="Telerik.Web.UI.Skins.Grid.css" Assembly="Telerik.Web.UI" />
    </StyleSheets>
</telerik:RadStyleSheetManager>

However, when I do something like this (these classes apply background images to the elements):

(index.aspx)
<div class="ui-state-default ui-corner-all">
    <span class="ui-icon ui-icon-circle-zoomin"></span>
</div>

I get the following 404 errors (via Chrome's error console):

GET http://localhost:411/images/ui-bg_glass_45_0078ae_1x400.png 404 (Not Found)
GET http://localhost:411/images/ui-icons_e0fdff_256x240.png 404 (Not Found)

The files in question exist in http://localhost:411/_Resources/CSS/start/images/, and they're referenced correctly by the JQuery UI CSS file:

(_Resources/CSS/start/jquery-ui-1.8.15.custom.css)
.ui-state-default .ui-icon { background-image: url(images/ui-icons_e0fdff_256x240.png); }

If I include the CSS outside of the StyleSheetManager:

(Base.Master)
<link type="text/css" href="~/_Resources/CSS/start/jquery-ui-1.8.15.custom.css" rel="Stylesheet" />

then things work as expected. I don't seem to have problems with background-image URLs in my other included CSS files.

Any ideas?

Thanks,
Rob
Simon
Telerik team
 answered on 08 Mar 2012
5 answers
188 views
I have data that I need to add a point for each day. I have my code working well enough to label my x axis as mar feb apr etc. Where I'm stuck is on how I add all of the data points.
I have the stored in a datatable with three fields, label (the month), position (an int of its position i.e. 0 is jan, 1 is feb etc), and value (the daily value)

Here's the code I have so far on trying to add the points but it doesn't seem to be working. I'm fairly new with these charts, so please bear with me.

'a holder for the current month
        Dim currentMonth = ""
 
        'a holder for the count
        Dim count = -1
 
        Dim rangeTable As New DataTable
        rangeTable.Columns.Add("Label")
        rangeTable.Columns.Add("Position")
        rangeTable.Columns.Add("Value")
 
 
        Using myconn As New SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings("connection").ToString)
 
            myconn.Open()
            Dim cmd = New SqlCommand(sql, myconn)
            Dim reader = cmd.ExecuteReader()
            While reader.Read()
 
                'if the currentMonth is new, then we add it to the data table for a range
                If Not (currentMonth = (Format(reader("DateHour"), "MMMM"))) Then
                    currentMonth = Format(reader("DateHour"), "MMMM")
 
                    count = count + 1
                 
                End If
 
                rangeTable.Rows.Add(currentMonth, count, reader("PointAverage"))
 
                'Dim tempSeries As New ChartSeries
                'tempSeries.SetValues(1, 2)
                'chart.Series.Add(tempSeries)
 
            End While
 
            myconn.Close()
 
        End Using 'using myconn
 
        'add the range
        chart.PlotArea.XAxis.AddRange(0, count, 1)
 
        For Each i As DataRow In rangeTable.Rows
            chart.PlotArea.XAxis(i("Position")).TextBlock.Text = i("Label")
            Dim tempSeries As New ChartSeries
            tempSeries.SetValues(i("Position"), i("Value"))
            chart.Series.Add(tempSeries)
        Next

A sample of what my data table would look like is something like this
Label Position Value
january 0 10
january 0 20
january 0 30
february 1 10
february 1 20
etc. 

Essentially, I need to add all of the points in each month, but they are in succession by day. So I pull all of the days for jan, feb, and so on. Any ideas on how to go about this?





Web Services
Top achievements
Rank 2
 answered on 08 Mar 2012
1 answer
161 views
With this code, i try to Close a Window (the way i'm doing it works) but i have also an Onclick event which is ignored!

<script type="text/javascript">
 
 
             function GetRadWindow() {
                 var oWindow = null;
                 if (window.radWindow) oWindow = window.radWindow;
                 else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
                 return oWindow;
             }
 
             function CloseDialog() {
                 GetRadWindow().close();
                 
             
              
</script>


ASPX page:

           

<asp:Button ID="Button1" runat="server" Text="Soumettre ce ticket"
               onclick="Button1_Click"  OnClientClick="CloseDialog()"/>


My application never enters Button1_click event, can anyone help me to find out why ?
thanks in advance



EDIT: HTML GENERATED FOR THE BUTTON
<input type="submit" id="Button1" onclick="CloseDialog();" value="Soumettre ce ticket" name="Button1"/>
Ronan BARRANGER
Top achievements
Rank 1
 answered on 08 Mar 2012
1 answer
350 views
Hi

I currently use RadGrids for displaying data on mobile devices and am having trouble with the Client Side Select column.  It will only allow a single select to be made even though multi row select is true - it works fine on a PC browser.

Will switching to the Kendo UI Grid be more compatible with mobile browsers and if so what is the transition from RadGrid to KendoGrid like, for example can I still bind to a list of items server side during page load?

Cheers
Cliff
Stuart Hemming
Top achievements
Rank 2
 answered on 08 Mar 2012
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?