Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
312 views
Hi, what I am wonting to do is have rounded corners on my top navigation bar.

My top menu is a "RadMenu" with the "Hay" skin, now I wont the skin theme, but have the corners around the menu bar to be rounded.

Here is what they look like now:

[URL=http://img17.imageshack.us/my.php?image=topnavigation.png][IMG]http://img17.imageshack.us/img17/3985/topnavigation.th.png[/IMG][/URL]

And what Im wanting is something along the lines of:

[URL=http://img17.imageshack.us/my.php?image=topnav.png][IMG]http://img17.imageshack.us/img17/6466/topnav.png[/IMG][/URL]

Would I nee to do this through CSS?

Any help would  much appreciated.



Alex Gyoshev
Telerik team
 answered on 15 Sep 2009
1 answer
79 views
Hello,

    as the KB of the scheduler and the Client-side objects API says the  scheduler.get_appointments() method returns the SchedulerAppointmentCollection  only of the current viewed appointments on current scheduler selected view.
(from here: RadScheduler - clientside obj )

As my implementation requires the control on WHOLE collection, how can i obtain such thing?

example:  i'm on current day  X  and i need to get appointments in range (start, end) on day X+3. I got range of hours start and end of the day X+3.   If being on selected view "day" of day X and I use scripts like this:

var result = myScheduler.get_appointments().getAppointmentsInRange(start, end);

IS WRONG, because myScheduler.get_appointments() gets the SchedulerAppointmentCollection  of the DAY X (not the X+3), of course because the selected view is setted on day X and the method returns this.

the functionality of this method is correct, working as it supposed to do. But I need the correct SchedulerAppointmentCollection  for the day X+3 (different from the selected one on current selected view "day".

Best regards, Egor.
Peter
Telerik team
 answered on 15 Sep 2009
1 answer
53 views
I set my grid have a font of size small.  I try to set the font-size of small on the pager style and it is always small. I try adjusting the font-size from IE toolbar and all the ares of the grid increase their font-size except for the pager.  Is there something I could be missing with regard to this?
Dimo
Telerik team
 answered on 15 Sep 2009
1 answer
160 views
Hi,

While creating an appointment using RADscheduler, I would like to stop duplicate appointments from being created. 
When a user tries to create an appointment for the same resource and for the same time period I would like to show a message and stop the insert of the appointment. I would like to know how to do this on client side system.

Thanks
Sabrish
Peter
Telerik team
 answered on 15 Sep 2009
3 answers
96 views
Hi Telerik Support Team,
    I came to know from one of your post replies that I can actually hardcode the text of header date in the following way:-
        

LiteralControl

dateLabel = (LiteralControl)RadScheduler1.FindControl("DateLabel");

 

dateLabel.Text = RadScheduler1.SelectedDate.ToString(

"D");

 



I want to use the FindControl method in a few more places. May I get a list of what are the various controls within the radscheduler so that I can design the scheduler in a lot more flexible way?
Peter
Telerik team
 answered on 15 Sep 2009
3 answers
180 views
hi

I'm using radgrid for PopUp editing mode
I have two template columns.
In the "Insert" mode i want to enable the two text boxes.
But in edit - update mode i want to disable the first text box.
How can we achieve this?

This is my aspx code:

<

 

MasterTableView EditMode="PopUp" CommandItemDisplay="Top" DataKeyNames="Customer _ID" DataSourceID="sdsCustomer" Width="100%">

 

 

<Columns>

 

<

 

telerik:GridTemplateColumn DataField="Customer_ID" Visible="false" HeaderText="Customer ID"

 

 

SortExpression="Customer_ID" UniqueName="Customer_ID">

 

 

<ItemTemplate>

 

 

<asp:Label ID="Customer_IDLabel" runat="server" Text='<%# Eval("Customer_ID") %>'></asp:Label>

 

 

</ItemTemplate>

 

 

<EditItemTemplate>

 

 

<asp:TextBox ID="Customer_IDTextBox" Width="200px" runat="server"

 

 

Text='<%# Bind("Customer_ID") %>'></asp:TextBox>

 

 

</EditItemTemplate>

 

 

</telerik:GridTemplateColumn>

 

 

<telerik:GridTemplateColumn DataField="Customer_Name" HeaderText="Name"

 

 

SortExpression="Customer_Name" ItemStyle-Wrap="false" UniqueName="Customer_Name">

 

 

<EditItemTemplate>

 

 

<asp:TextBox ID="Customer_NameTextBox" Width="200px" runat="server"

 

 

Text='<%# Bind("Customer_Name") %>'></asp:TextBox>

 

 

</EditItemTemplate>

 

 

<ItemTemplate>

 

 

<asp:Label ID="Customer_NameLabel" runat="server"

 

 

Text='<%# Eval("Customer_Name") %>'></asp:Label>

 

 

</ItemTemplate>

 

<

 

ItemStyle Wrap="False"></ItemStyle>

 

 

</telerik:GridTemplateColumn>

 

</

 

Columns>

 



I am using this code:

 

Protected Sub RadGrid1_ItemDataBound(ByVal sender As Object, ByVal e As GridItemEventArgs)

 

If (TypeOf e.Item Is GridEditableItem) AndAlso (e.Item.IsInEditMode) Then

 

 

 

Dim edititem As GridEditableItem = DirectCast(e.Item, GridEditableItem)

 

 

Dim txtbx As TextBox = DirectCast(edititem("Customer_ID").Controls(0), TextBox)

 

 txtbx.Enabled =

False

 

 

 

End If

 

 

 

End Sub

But it don't seems to work. Thanks

 

 

 

 

 

Mira
Telerik team
 answered on 15 Sep 2009
5 answers
218 views
I have code that binds a generic list of resources through a linqdatasource on the server side. I would like to be able to access some of the resource attributes client side. For example, I have a data key called "RoomEmail" that I would like to be able to access from the client. I tried adding the the key to the CustomAttributeNames property but the _attributes array still shows no items for each room when I pull it up in firebug. How can I pass the data to the client side?

<asp:UpdatePanel ID="UpdatePanel1" runat="server"> 
                            <ContentTemplate> 
                                <telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView" 
                                    OnAppointmentDataBound="RadScheduler1_OnAppointmentDataBound" TimelineView-HeaderDateFormat="D" 
                                    DataSourceID="dsEventsDataSource" Skin="Office2007" GroupBy="Room" GroupingDirection="Vertical" 
                                    DayStartTime="08:00:00" DayEndTime="23:30:00" TimeZoneOffset="03:00:00" DataKeyField="Conf_ID" 
                                    DataSubjectField="Conference_Name" DataStartField="Start" DataEndField="End" 
                                    OverflowBehavior="Expand" ShowViewTabs="false" ColumnWidth="10px" Width="950px" 
                                    Height="400px" CustomAttributeNames="Conf_ID,Name,RoomID,RoomEmail" OnAppointmentCommand="RadScheduler1_OnAppointmentCommand" 
                                    OnResourceHeaderCreated="RadScheduler1_ResourceHeaderCreated" RowHeight="40px" 
                                    MultiDayView-NumberOfDays="2" RowHeaderWidth="100px" EnableDatePicker="false" 
                                    ShowNavigationPane="false" AllowInsert="false" AllowEdit="false" AllowDelete="false"> 
                                    <AdvancedForm Modal="true" /> 
                                    <TimelineView NumberOfSlots="192" SlotDuration="0:15" ColumnHeaderDateFormat="h tt" 
                                        TimeLabelSpan="4" /> 
                                    <ResourceTypes> 
                                        <telerik:ResourceType KeyField="RoomID" Name="Room" TextField="Name" ForeignKeyField="RoomID" 
                                            DataSourceID="dsRoomsDataSource" /> 
                                    </ResourceTypes> 
                                    <ResourceHeaderTemplate> 
                                        <asp:LinkButton ID="btnRemove" runat="server" Text="X" CommandName="RemoveResource" 
                                            CausesValidation="false" CssClass="ui-icon ui-icon-trash" Style="float: left" 
                                            OnClientClick="return confirm('Are you sure you want to remove this room?')" />&nbsp; 
                                        <asp:Label ID="ResourceLabel" runat="server" /> 
                                    </ResourceHeaderTemplate> 
                                </telerik:RadScheduler> 
                                <asp:LinqDataSource ID="dsEventsDataSource" runat="server" OnSelecting="dsEventsDataSource_OnSelecting"> 
                                </asp:LinqDataSource> 
                                <asp:LinqDataSource ID="dsRoomsDataSource" runat="server" OnSelecting="dsRoomsDataSource_OnSelecting"> 
                                </asp:LinqDataSource> 
                            </ContentTemplate> 
                        </asp:UpdatePanel> 





protected void dsRoomsDataSource_OnSelecting(object sender, LinqDataSourceSelectEventArgs e) 
    { 
        e.Result = Rooms; 
    } 
 
public class Room 
    { 
        public Guid RoomID { get; set; } 
        public string Name { get; set; } 
        public bool Host { get; set; } 
        public bool Presenting { get; set; } 
        public int Attendees { get; set; } 
        public bool ClientsPresent { get; set; } 
        public string RoomEmail { get; set; } 
        public string Tools { get; set; } 
        public string Comments { get; set; } 
        public List<RoomSchedule> Schedules { get; set; } 
    } 


Peter
Telerik team
 answered on 15 Sep 2009
3 answers
306 views
I'm trying to databind a datatables DATETIME column to the  X-Axis Labels from code behind but I keeping getting this error.
Unable to cast object of type 'System.DateTime' to type 'System.String'.

From the DATETIME, I only want to use the month and year.  Any ideas. Thanks in advance
Schlurk
Top achievements
Rank 2
 answered on 15 Sep 2009
1 answer
93 views
Hi,
I have this code:
RadTreeView radTreeView = (RadTreeView)RadComboBox1.Items[0].FindControl("RadTreeView1"); 
 
            IList<CoorIS.DomainObjects.Unit> units = UnitService.GetUnitsAsExpanded(PageInfo.CurrentUnitID, Guid.Empty); 
            radTreeView.DataSource = units; 
            radTreeView.DataTextField = "Name"; 
            radTreeView.DataValueField = "ID"; 
            radTreeView.DataFieldID = "ID"; 
            radTreeView.DataFieldParentID = "ParentID"; 
            radTreeView.DataBind(); 
 
             
            RadTreeNode node = radTreeView.FindNodeByValue(PageInfo.CurrentUnitID.ToString()); 
            if (node != null) 
            { 
                node.ExpandParentNodes(); 
                node.Selected = true; 
                 
                RadComboBox1.SelectedItem.Text = node.Text; 
            } 

The node is selected but I don't see it cause it doesn't apply the selected style, why?
I have to click on the node to see the correct style.
(I'm using 2009.02.0701.35)

Atanas Korchev
Telerik team
 answered on 15 Sep 2009
1 answer
153 views
Hi,

Why make a hover effect if the user is a guest and he cannot create any appointments?

Is it possible to completely remove the hover effect for all skins - with one(or more) simple command?

Peter
Telerik team
 answered on 15 Sep 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?