Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
96 views
Hello Everybody,

I would like to know if it's possible to bind this type of object to the rad menu:

class Parent {
  string name
  int id
  List<child>
}

class child {
  string name
  int id
}

I tried many times without any luck.
Thanks.
Kevin
Top achievements
Rank 2
 answered on 08 Mar 2012
3 answers
107 views
I am working on an internal payroll application.  I have a grid with essentially 25 columns.  The first column is frozen and contains a row description of different pay types.  The other 24 are basically semi-monthly pay periods in a pay plan.  I want to "auto-scroll" the grid horizontally to the current pay period column (it varies when reloading plans ... sometime it may be column #1 ... sometimes #13 ... etc).  If anyone could point me to an example of how to accomplish this, I would greatly appreciate it.

Thanks,
Kevin M. Betts
Lead Microsoft Developer
Kimball Midwest
(not really John Fetherolf)
John Fetherolf
Top achievements
Rank 1
 answered on 08 Mar 2012
2 answers
157 views
In week view when I click a new appointment is created. In the appointment details, I can select a start and end time. No matter what I do only 8am to 5:30pm is available in the start time and end time drop downs (edit appointment dialogue). How do I change this to be all day? (00:00:00 to 23:59:59) 

I tried setting these properties but there was no effect on the edit appointment dialogue:

DayStartTime="00:00:00" DayEndTime="23:59:59" 
WorkDayStartTime="00:00:00" WorkDayEndTime="23:59:59"

I need appointments that pass midnight. say, 10pm to 2am. 
Michael
Top achievements
Rank 1
 answered on 08 Mar 2012
13 answers
250 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
136 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
167 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
183 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
381 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
160 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
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?