Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
181 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
1 answer
161 views
Hi,

I'm using a Rad Chart (pie) for a small datasource.
The dataset looks like this:
Month          Sales in %           
Jan                 30
Feb                40
Mar                40

I have used datalabelcolumn property of the series and I initialised it to the Month then also it is displaying 30 40 40 to the next of slides  

Now i want to display the chart  with labels

 Jan       Feb   Mar
 30 %    40%  40%

With every pie slice and I want those to wrapped and formated as I have given.

Kindly help me.

Ves
Telerik team
 answered on 31 Jul 2008
4 answers
217 views
I am using RadEditor MOSS (5.1) in a WSS only scenario. I am trying to configure the editor by editing the ListConfigFile.xml file. I am using the following information from your site as a reference to what settings can be made to the ListConfigFile.xml: http://www.telerik.com/help/aspnet/editor/usingtheconfigfilexml.html.

It appears to me that a number of settings work perfectly (like the Width, ToolbarMode, ImagesPaths properties), but others do not work at all (like UploadImagesPaths, Height, CssFiles etc.).

Could you please tell me what properties are to be used in the ListConfigFile.xml file or point out to me why some property settings do not work in WSS only scenarios and what settings are availiable for each property?

George
Telerik team
 answered on 31 Jul 2008
1 answer
149 views
I have a composite control which contains (among other things) a textbox as a child control that I would like to spell check.  The Text property of the child control is exposed via a public property of the composite control.

How can I tell RadSpell which property in my custom control I want it to check?

Thanks!

George
Telerik team
 answered on 31 Jul 2008
1 answer
123 views

In a RadGrid, within the grid I have a clomun that shows as a checkbox. When users choose a single record, and then click Botton, in clieked events How do I know if the selected records the value of the Checkbox?

if using Microsoft Grid,correct syntax is as follows:
bool bIsLocked = ((CheckBox)GridView1.Rows[GridView1.SelectedIndex].Cells[9].Controls[0]).Checked;

But if using RadGrid,how to code?

Shinu
Top achievements
Rank 2
 answered on 31 Jul 2008
3 answers
123 views

Hi,

I'd like to use client side databinding with RadGrid Q2.2008 version. I've placed a RadGrid on page and would like to bind my data from WebService to it. I use the sample code: 

var grid = $find("<%= RadGrid1.ClientID %>");  
var tableView = grid.get_masterTableView();  
tableView.set_dataSource(results);  
tableView.dataBind(); 

get_masterTableView returns nothing due to the fact that I don't bind any data to the RadGrid, I think. But I don't want to use server side datasource and I don't know how many columns I get from service. So I can't predefine the columns.
Has anybody an idea how to get RadGrid cooperative for that?

Thnx!

Sebastian
Telerik team
 answered on 31 Jul 2008
1 answer
189 views
When I hit the built in "Add new record" button in the header it works perfectly.  But there is a + (plus) icon on the left of "Add new record" -- when I hit that it behaves differently.  I want the plus icon to behave the same the Add new record.

    protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e)
    {
        if (e.Item is GridCommandItem)
        {
            GridCommandItem cmditm = (GridCommandItem)e.Item;
            LinkButton btn = (LinkButton)cmditm.FindControl("InitInsertButton");
            btn.Attributes.Add("OnClick", "return ShowInsertForm('Roles');");
        }
    }
Dimo
Telerik team
 answered on 31 Jul 2008
2 answers
144 views
I have RadControls for ASP.NET AJAX (version 2008.1 619).
 
I am using a RadGrid with a FormTemplate (EditFormType="Template") for editing .  I am using RadEditor () to edit text a field called Comments inside the <FormTemplate> section along with my other HTML.  When I click on the Edit button in the RadGrid for a row to edit, the Toolbar buttons on the RadEditor are displayed wrong.  They have a lot of extra space around the buttons and graphics used to display the Toolbar.  If I refresh the page (i.e., Control/R, Control/F5, or right-click and Refresh) the Toolbar buttons display correctly.

If I programmatically display the RadGrid with a row in Edit mode (i.e., using RadGrid1.EditIndexes.Add(0); RadGrid1.Rebind(); in PreRender()) then the Toolbar displays correctly when the page first loads.  If I click Cancel to close the FormTemplate and then click the Edit button to re-open it, the Toolbars display wrong again.  A page refresh fixes the display.

I suspected maybe a CSS problem so I removed my StyleSheet links and the problem still occurs.

Any ideas what may be causing this problem?

Thanks,

Randall Price
Rumen
Telerik team
 answered on 31 Jul 2008
3 answers
299 views
I have a simple grid bound to an object data source.

I have configured the grid to use a form template for inline editing.

When I click the grid's "Add new record" button I get an exception....

Specified cast is not valid

I have traced this to the use of  RadDatePickers in the form.  If I use ordinary text fields for the dates then the problem doesn't occur.

This is the snippet of code that is in the <FormTemplate>

<

telerik:RadDatePicker ID="RadDue" runat="server" SelectedDate='<%# Bind("DueDate") %>' EnableTyping="false">

</telerik:RadDatePicker>



Shinu
Top achievements
Rank 2
 answered on 31 Jul 2008
2 answers
114 views
Hi,

I use the below radChart which is bind with a SqlDataSource component :
<telerik:RadChart ID="RadChart_suivi_AO" runat="server" DataSourceID="SqlDataSource_suivi_AO" Height="400px" Width="800px"
    <PlotArea XAxis-AutoScale="true"
        <YAxis MinValue="0" Step="1"
        </YAxis> 
        <YAxis2 MinValue="0" Step="1"
        </YAxis2> 
        <XAxis DataLabelsColumn="Libelle_gestionnaire" LayoutMode="Between"
            <Appearance> 
                <LabelAppearance RotationAngle="90" Position-AlignedPosition="Top"
                </LabelAppearance> 
            </Appearance> 
        </XAxis> 
    </PlotArea>  
    <ChartTitle> 
        <TextBlock Text="Suivi des appels d'offres"
        </TextBlock> 
    </ChartTitle> 
    <Appearance Border-Visible="false" > 
    </Appearance> 
</telerik:RadChart> 
It's work good but the XAxis Label are cut.
How to enlarge the XAxis zone or reduce the Chart aera in order to show completly the XAxis Label?


Eric Ulliac
Top achievements
Rank 1
 answered on 31 Jul 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?