Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
107 views
I am trying to use either a RadGrid or a RadListView - however I want the column names to be on the left hand side going up and down - much like the ASP.NET DetailsView.  Does anyone know how to accomplish this?
Sebastian
Telerik team
 answered on 07 Feb 2011
1 answer
96 views
Hi, just wondering if there's a way to display some lines to represent shifts (morning, afternoon, evening) in scheduler week or day view?

Cheers
Prasanna
Veronica
Telerik team
 answered on 07 Feb 2011
1 answer
82 views
Is it possible to use an Excel file as a template for RadGrid layout that would have merged cells, etc.?

Thank you
Princy
Top achievements
Rank 2
 answered on 07 Feb 2011
1 answer
98 views
In my RadSchedular I have set the following parameters.

DayView-WorkDayStartTime="08:00:00"
DayView-DayEndTime="18:00:00"      
WorkDayStartTime="08:30:00"
WorkDayEndTime="17:00:00"


As a test I created a task that started at 16:30 on one day, and finish at 9:00am the next day.

With Workday start and end times of 17:00 and  8:30am this is a one hour task.

However, by clicking the 24 hour view, the RadScheduler displays this task as running from 16.30 on the first day, till midnight that night, and on the next day starting at midnight and finishing at 9am.

Wrong.

How can I tell the RadScheduler to only display tasks in business hours. With this in mind, what is the point of the WorkDay[Start:End]Time parameters?

 
Peter
Telerik team
 answered on 07 Feb 2011
3 answers
1.0K+ views
Hi,

I have a grid on my web page. which is populated with data in bound columns.
I have one Client Select Column in grid to select specific column.
Now, i want to save my grid data in database, when user select any row (by clicking checkbox in clientselectcolumn).
Anyone can provide sample example for this.
Thanks in Advance.
Princy
Top achievements
Rank 2
 answered on 07 Feb 2011
1 answer
77 views

I am try to add user control into a tabscript but it is through me an error please let me know what wrong I am doing here


    protected void Page_Load(object sender, EventArgs e)
    {


        if (!Page.IsPostBack)
        {
            for (int i = 0; i < 6; i++)
            {
                RadPanelItem itm = new RadPanelItem();
                RadPanelItem chlditm = new RadPanelItem();
                if (i == 0)
                    itm.Text = "Professional Degrees";
                else if (i == 1)
                    itm.Text = "Crash courses";
                else if (i == 2)
                    itm.Text = "Professional courses";
                else if (i == 3)
                    itm.Text = "vocational courses";
                else if (i == 4)
                    itm.Text = "CNC courses";
                chlditm.Text = "English speaking courses";




                pnlCourses.Items.Add(itm);
            }
            AddTab("CourseDetail");
            AddPageView(RadTabStrip1.FindTabByText("CourseDetail"));
        }
    
      


    }


    protected void tbCourseDetail_TabClick(object sender, RadTabStripEventArgs e)
    {
       
    }


    


    private void AddTab(string tabName)
    {
        RadTab tab = new RadTab();
        tab.Text = tabName;
        RadTabStrip1.Tabs.Add(tab);
        RadPageView pageView = new RadPageView();
        pageView.ID = tabName;
        RadMultiPage1.PageViews.Add(pageView);
    }




  




    protected void RadMultiPage1_PageViewCreated(object sender, RadMultiPageEventArgs e)
    {
        string userControlName = e.PageView.ID + ".ascx";


        Control userControl = Page.LoadControl(userControlName);
        userControl.ID = e.PageView.ID + "_userControl";


        e.PageView.Controls.Add(userControl);
    }
    protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
    {
        AddPageView(e.Tab);
        e.Tab.PageView.Selected = true;
        
    }


    private void AddPageView(RadTab tab)
    {
        RadPageView pageView = new RadPageView();
        pageView.ID = tab.Text;
        RadMultiPage1.PageViews.Add(pageView);
        pageView.CssClass = "pageView";
        tab.PageViewID = pageView.ID;
    }
Yana
Telerik team
 answered on 07 Feb 2011
16 answers
446 views
I would like to save the dock state when user moves docks from one place to the other. I would like to load this new dock state when user logs into my website next time. The dock state should be saved in the database when user click on save state button and it should be loaded from the database when user logs on next time to my website. I don't want the HttpCookie for saving the dock state configuration. How can I achive this?
Pero
Telerik team
 answered on 07 Feb 2011
1 answer
105 views
There is a problem when using the new feature included in Q32010 for highlighting multiple timeslots then using the context menu to create a new appointment if you set the background color of the timeslots dynamically in the TimeSlotCreated event.

ex:
void Schedule_TimeSlotCreated(object sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e) {
  e.TimeSlot.Control.BackColor = Color.FromArgb(230, 230, 230);
}

what ends up getting rendered is this:
<td style="background-color: rgb(230, 230, 230);" class="rsSelectedSlot"> </td>

The problem is that because the styles for the background color are applied directly to the element, the class styles are not being overridden.

Is there another way I can set the background color for a timeslot that would fix this problem?  Also, is there a way to change the color of the SelectedSlot through a property and not directly overriding the style on the page or using a skin?
Nikolay Tsenkov
Telerik team
 answered on 07 Feb 2011
1 answer
116 views
I have many combo boxes in a repeater.When the user selects one value from a combo box and then clicks on the next one , I want to display all the unselected values.
Eg. Items - A ,B ,C are bound to the combox box in repeater. If user selects B in one of the combo boxes , I want to display only A , C in the next combo box and so on.
How do I acheieve this? Do i handle this in ItemsRequested event of the combo box? Is it possible to do this on client side?
Yana
Telerik team
 answered on 07 Feb 2011
5 answers
106 views
Hi,

I have a problem with overlapping floating docks. If I try to open 2 consecutive floating dock in one Layout, second one overwhelm first. But if I move first one with my mouse than second one appears perfectly. How can I provide both appears without client handle...

You may find my adjusted code below.

PS: I'm using latest stable version of ASP.NET AJAX component (Telerik.Web.UI: 2010.3.1317.35)

Thanx.

.aspx part:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Default" %>
  
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  
<head runat="server">
    <title></title>
    <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="hdnDeneme" runat="server" />
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
            </Scripts>
        </telerik:RadScriptManager>
        <script type="text/javascript">
            var latestDock;
            function DockCustomCommand(dock, args) {
                latestDock = dock;
                var commandElement = args.Command.get_element();
                document.getElementById("hdnDeneme").value = dock._index;
                showMenuAt(args.event, commandElement)
            }
            function showMenuAt(e, offsetElement) {
                var contextMenu = $find("RadContextMenu1");
                var bounds = $telerik.getBounds(offsetElement);
                var x = bounds.x + bounds.width;
                var y = bounds.y + bounds.height;
                contextMenu.showAt(x, y);
                $telerik.cancelRawEvent(e);
            }
        </script>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="RadContextMenu1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadDockLayout1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
          
        <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Black">
        </telerik:RadSkinManager>
          
        <telerik:RadDockLayout ID="RadDockLayout1" runat="server">
            <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="600px" Width="600px" Orientation="Horizontal">
            </telerik:RadDockZone>
        </telerik:RadDockLayout>
          
        <telerik:RadContextMenu ID="RadContextMenu1" runat="server"  OnItemClick="RadContextMenu1_ItemClick">
            <Items>
                <telerik:RadMenuItem Text="Change Title" Value="Title" />
                <telerik:RadMenuItem Text="Open Floating Dock" Value="FullBox" />
            </Items>
        </telerik:RadContextMenu>
    </form>
</body>
</html>


.cs part:
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
  
using System.Data;
using System.Configuration;
using System.Web.Security;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Telerik.Web.UI;
  
public partial class Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        RadDock rd = null;
        DockCommand dc = new DockCommand()
        {
            Name = "Deneme",
            OnClientCommand = "DockCustomCommand"
        };
        for (int i = 0; i < 12; i++)
        {
            rd = new RadDock()
            {
                ID = "radDock" + i,
                EnableAnimation = true,
                EnableRoundedCorners = true,
                DockMode = DockMode.Docked,
                Width = 140,
                Height = 80,
                Title = "radDock" + i,
                Text = "Hi - " + i
            };
            rd.Style.Add(HtmlTextWriterStyle.Margin, "2px");
            rd.Commands.Add(dc);
            RadDockZone1.Controls.Add(rd);
        }
        rd.Dispose();
    }
  
    protected void RadContextMenu1_ItemClick(object sender, RadMenuEventArgs e)
    {
        switch (e.Item.Value)
        {
            case "FullBox":
                RadDock rd = new RadDock()
                {
                    ID = "hdd1",
                    DockMode = DockMode.Floating,
                    EnableAnimation = true,
                    EnableRoundedCorners = true,
                    EnableViewState = false,
                    Width = 200,
                    Title = "Floating",
                    Text = "Floating"
                };
                RadDockLayout1.Controls.Add(rd);
                rd.Dispose();
                break;
            case "Title":
                ((RadDock)RadDockZone1.Controls[Convert.ToInt32(hdnDeneme.Value)]).Title = e.Item.Value;
                break;
            default:
                break;
        }
    }
}
Pero
Telerik team
 answered on 07 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?