Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
110 views
I need to create a multiview calendar w/ 3 columns.  However, this is for an application that looks backwards in time.  I'm trying to get the current month to show in the 3rd column (right side).  I've tried setting the focused date to today, then setting the FocusedDateColumn property to 2 then to 3 as I wasn't sure if the property was zero-based.  Neither works.

I've tried setting the property at design time which causes a designer error and the control won't render.  I've also tried to set it at runtime which throws the "Index was outside the bounds of the array" error.

Is there a sample that I've overlooked on how to correctly use this property, or am I mistaken on the purpose of the FocusedDateColumn property?

Thanks in advance,

Matt
Missing User
 answered on 31 Jul 2008
5 answers
194 views

I have a slider control that has some search controls in it. I would like to display the slider control when the page loads up the first time. I am doing so like this:

RadSlidingZone1.DockedPaneId = RadSlidingPane1.ClientID

And once they click on the search button, upon postback, I want to hide the slider control (undock basically). Is there any server side property that I can set to achieve this?

RadSlidingZone1.DockedPaneId = Nothing

I tried the above line, but the sliding zone takes up that area where the sliding pane is supposed to show with a blank space.

Also, how can I access the client-side JS functions?

I am trying to do the following. The splitter doesn't recognize these functions like get_dockedPaneId();

var splitter = document.getElementById("<%= RadSlidingZone1.ClientID %>");
alert(splitter.initiallyDockedPaneId);

var pane = splitter.get_dockedPaneId();
alert(pane)
if (pane)
{
pane.collapsePane();
}

Could you tell me what I could be missing? I have the RadControls folder within my application. Also, under RADCONTROLS\Splitter\Scripts\1_3_2, I have both RadSlidingZone.js and RadSplitter.js.

Please help!
Thanks!
R N
Top achievements
Rank 1
 answered on 31 Jul 2008
1 answer
126 views
Hi!

I'm stuck in the following scenario:

<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="test.aspx.vb" Inherits="Generator.test" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title>Untitled Page</title> 
</head> 
<body> 
 
    <form id="form1" runat="server"> 
    <asp:scriptmanager id="ScriptManager" runat="server" /> 
    <div> 
        <telerik:RadUpload ID="ImageUpload" runat="server" RadControlsDir="~/RadControls/Admin/" Skin="Telerik" Language="de-de" /> 
        <telerik:RadDockLayout ID="RadDockLayout1" Skin="Telerik" runat="server" > 
            <telerik:RadDockZone ID="dz1" Width="500px" runat="server" Orientation="Vertical" EnableViewState="false" > 
            <telerik:RadDock runat="server" id="RadDock3" Title="ContentTemplate"> 
                <ContentTemplate> 
                    <telerik:RadUpload ID="RadUpload1" runat="server" RadControlsDir="~/RadControls/Admin/" Skin="Telerik" Language="de-de" /> 
                </ContentTemplate> 
            </telerik:RadDock>  
            </telerik:RadDockZone> 
            <telerik:RadDockZone ID="dz2" Width="500px" runat="server" Orientation="Vertical" EnableViewState="false" > 
            </telerik:RadDockZone> 
       </telerik:RadDockLayout> 
    </div> 
    </form> 
</body> 
</html> 

The RadUpload Control "ImageUpload" is working as expected. But the RadUpload Control "RadUpload1" in a ContentTemplate inside a RadDock doesn't work. There's no code in a code-behind file necessary to reproduce the problem. The Upload Control is not showing up a file selection dialogue, and moving the mouse cursor over the "Select" Button enables scrollbars inside of the dock.

I would really appreciate it, if you could help me.

All the best
Tom
Veselin Vasilev
Telerik team
 answered on 31 Jul 2008
4 answers
289 views
i looked at the different skins for dock objects, the Mac skin and the telerik skin seem to have a rounded corners, however they seem to work only when the background color is set accordingly with the corresponding solid color.

i have a situation where my background is a not a solid color but a gradient image. i am cutting the corners for left and right as transparent images, however the transperant area is being filled up by the backcolor of the dock.

please advise if this is acheivable with prometheus controls.
LeBear
Top achievements
Rank 1
 answered on 31 Jul 2008
3 answers
132 views
Hi there,  i can get postback on row select from SelectedIndexChanged or ItemCommand. However, when i try to select multi-row using Shift key or area dragging, it's not postback anything.
Any suggestion?
Maria Ilieva
Telerik team
 answered on 31 Jul 2008
5 answers
228 views
Hi,

   In RadGrid, 5th col is checkbox(datatype:bit),I want to get its value when click the commandbotton which is not in grid . How to do....?

Thanks
Princy
Top achievements
Rank 2
 answered on 31 Jul 2008
1 answer
102 views
How to splitter support right to left?
Svetlina Anati
Telerik team
 answered on 31 Jul 2008
2 answers
81 views
My app will display paged data using virtual scrolling. It worked fine using the Q1 release. It works fine using the Q2 release in IE7. In FF however, if I carry out a 'big' scroll action, eg I scroll to the last of 100 pages from the start, the grid appears to do what it's supposed to but then:
  1. The grid contents disappear
  2. The scrollbar thumb moves back to the top
  3. The scrollbar tooltip shows 'Page 1 of <whatever>'
Has anyone else encountered any similar problems in FF?

--
Stuart
Dan
Top achievements
Rank 1
 answered on 31 Jul 2008
3 answers
181 views
I notice that when using the Items Drag and Drop example on your web site, and experimenting with it in my own code, you must drop dragged rows on rows in the destination grid to trigger the postback.  If you drop on the header or an empty part of the grid body, nothing happens (and it's not because it is being cancelled by the client side OnRowDropping event handler). 

Can this behavior be modified to allow triggering a postback no matter where you drop on the destination grid? If there are no rows in the grid it makes the target area uncomfortably small.  If you don't need to know the location where the drop occurs, the requirement to drop on rows is too restrictive.

Regards,
Bob Reader
Nikolay Rusev
Telerik team
 answered on 31 Jul 2008
1 answer
183 views
I have a requirement to produce a year planner.  This will show employee roles as resources (e.g. Programmer, Test Engineer, Project Manager) and a headcount on a month-by-month basis.  I need the scheduler to show a line for each resource whether it has any appointment data or not.

In Design view I can get Day, Week and Month views to render, however Timeline view shows "error rendering the control".

At runtime the timeline view will render, but shows no resources data, just the navigation bar and timescale.  I also get no data rendering at runtime for any other view either (day, week, month). 

The Scheduler is filtered by a value selected from a combobox.

I have three SQL datasources, one for the grouping, one for the data and one for the combobox.

Combobox:
    <asp:DropDownList ID="ddProject" runat="server" DataSourceID="sdsProjects" DataTextField="Project" 
        DataValueField="idProject" AutoPostBack="True">  
    </asp:DropDownList> 
    <asp:SqlDataSource ID="sdsProjects" runat="server" ConnectionString="<%$ ConnectionStrings:SkillsDB %>" 
        SelectCommand="usp_Project_Select" SelectCommandType="StoredProcedure"></asp:SqlDataSource> 

Scheduler:
        <telerik:RadScheduler ID="rsResourceProfile" runat="server" DataEndField="dteEndDate" DataKeyField="idResourceProfile" DataRecurrenceField="RecurrenceRule" DataRecurrenceParentKeyField="RecurrenceParentID" DataSourceID="sdsResourceProfile" DataStartField="dteStartDate" DataSubjectField="numHeadcount" Skin="Vista" GroupingDirection="Vertical" GroupBy="idProjectRole" ShowViewTabs="true" OverflowBehavior="Expand" Culture="English (United Kingdom)" DayEndTime="08:00:00" MinutesPerRow="1440" MonthVisibleAppointmentsPerDay="50" WorkDayEndTime="00:00:00" WorkDayStartTime="00:00:00" SelectedView="TimelineView">  
            <TimelineView SlotDuration="30.00:00:00" HeaderDateFormat="MMMM yyyy" NumberOfSlots="12" GroupBy="idProjectRole" GroupingDirection="Vertical" /> 
        <ResourceTypes> 
            <telerik:ResourceType KeyField="idProjectRole" Name="Role" TextField="Role" ForeignKeyField="idProjectRole" DataSourceID="sdsProjectRole" /> 
        </ResourceTypes> 
            <MonthView VisibleAppointmentsPerDay="50" /> 
        </telerik:RadScheduler> 

Data & Grouping Datasources:
    <asp:SqlDataSource ID="sdsResourceProfile" runat="server" ConnectionString="<%$ ConnectionStrings:SkillsDB %>" DeleteCommand="usp_ResourceProfile_Delete" DeleteCommandType="StoredProcedure" InsertCommand="usp_ResourceProfile_Insert" InsertCommandType="StoredProcedure" SelectCommand="usp_ResourceProfile_Select_ByProject" SelectCommandType="StoredProcedure" UpdateCommand="usp_ResourceProfile_Update" UpdateCommandType="StoredProcedure">  
        <SelectParameters> 
            <asp:ControlParameter ControlID="ddProject" DefaultValue="-1" Name="idProject" PropertyName="SelectedValue" Type="Int32" /> 
            <asp:ControlParameter ControlID="rsResourceProfile" DefaultValue="" Name="dateStartRange" PropertyName="VisibleRangeStart" Type="DateTime" /> 
            <asp:ControlParameter ControlID="rsResourceProfile" Name="dateEndRange" PropertyName="VisibleRangeEnd" Type="DateTime" /> 
        </SelectParameters> 
        <InsertParameters> 
            <asp:Parameter Name="idProjectRole" Type="Int32" /> 
            <asp:Parameter Name="dteDate" Type="DateTime" /> 
            <asp:Parameter Name="intMonth" Type="Int32" /> 
            <asp:Parameter Name="intYear" Type="Int32" /> 
            <asp:Parameter Name="numHeadcount" Type="Int64" /> 
        </InsertParameters> 
        <UpdateParameters> 
            <asp:Parameter Name="idResourceProfile" Type="Int32" /> 
            <asp:Parameter Name="idProjectRole" Type="Int32" /> 
            <asp:Parameter Name="dteDate" Type="DateTime" /> 
            <asp:Parameter Name="intMonth" Type="Int32" /> 
            <asp:Parameter Name="intYear" Type="Int32" /> 
            <asp:Parameter Name="numHeadcount" Type="Int64" /> 
        </UpdateParameters> 
        <DeleteParameters> 
            <asp:Parameter Name="idResourceProfile" Type="Int32" /> 
            <asp:Parameter Name="idProjectRole" Type="Int32" /> 
            <asp:Parameter Name="dteDate" Type="DateTime" /> 
            <asp:Parameter Name="intMonth" Type="Int32" /> 
            <asp:Parameter Name="intYear" Type="Int32" /> 
            <asp:Parameter Name="numHeadcount" Type="Decimal" /> 
        </DeleteParameters> 
    </asp:SqlDataSource> 
    <br /> 
    <asp:SqlDataSource ID="sdsProjectRole" runat="server" ConnectionString="<%$ ConnectionStrings:SkillsDB %>" 
        SelectCommand="usp_ProjectRole_Select_ByProject_Grouping" SelectCommandType="StoredProcedure">  
        <SelectParameters> 
            <asp:ControlParameter ControlID="ddProject" Name="idProject" PropertyName="SelectedValue" 
                Type="Int32" /> 
        </SelectParameters> 
    </asp:SqlDataSource> 


Not sure if the two problems are related to each other, but any assistance would be greatly appreciated.


Yana
Telerik team
 answered on 31 Jul 2008
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?