Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
119 views
I need a timeline view just as your examples. categories type on rows, date on columns.
I want to bind their datasources to my businness object, I'm missing something cause nothing happens on the rows
I did this:

getAllTimeLineType and getAllAppointments return collections having IDCategory in common. I guess this is not what needed.

<telerik:RadScheduler runat="server" ID="RadScheduler1" SelectedView="TimelineView"
            OverflowBehavior="Expand"            
            Localization-HeaderMultiDay="Work Week"
            OnNavigationComplete="RadScheduler1_NavigationComplete"
            OnAppointmentInsert="RadScheduler1_AppointmentInsert"
            OnAppointmentUpdate="RadScheduler1_AppointmentUpdate"
            OnAppointmentDelete="RadScheduler1_AppointmentDelete"
            DataKeyField="ID"
            DataSubjectField="Subject"
            DataStartField="StartDate"
            DataEndField="EndDate"
            DataRecurrenceField="RecurrenceRule"
            DataRecurrenceParentKeyField="RecurrenceParentId"
            DataReminderField="Reminder"
            >
 
 
            <ResourceTypes>
                <telerik:ResourceType AllowMultipleValues="true" KeyField="IDCategory" Name="IDCategory" TextField="IDCategory" ForeignKeyField="IDCategory" />
            </ResourceTypes>
            
 
            <AdvancedForm Modal="true" />
             
              <Localization HeaderMultiDay="Work Week" />
 
            <TimelineView UserSelectable="true"
                        GroupBy="IDCategory"
                        GroupingDirection="Vertical" />
            <MultiDayView UserSelectable="true" />
            <DayView UserSelectable="false" />
            <WeekView UserSelectable="false" />
            <MonthView UserSelectable="false" />
              <Reminders Enabled="false" />
        </telerik:RadScheduler>
 
 
 
 
  Private Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs)
        Try
 
                Dim myBusinessResObj = New ADEPT.CScheduleResource(myConn)
                Dim resType1 As New ResourceType("IDCategory")               
                resType1.DataSource = myBusinessResObj.getAllTimelineType()
                resType1.KeyField = "IDCategory"
                resType1.TextField = "IDCategory"
                resType1.ForeignKeyField = "IDCategory"
                RadScheduler1.ResourceTypes.Add(resType1)
                RadScheduler1.GroupBy = "IDCategory"
 
 
 
                myBusinessObj = New ADEPT.CScheduler(myConn)
                RadScheduler1.DataSource = myBusinessObj.getAllAppointments
                myBusinessObj = Nothing
 
        Catch ex As Exception
             
        End Try
    End Sub
Ivana
Telerik team
 answered on 21 May 2012
1 answer
59 views

My RadGrid's used to display Page and Item counts in the bottom right of each Grid.  I recently upgraded Telerik from v2011.3.1305 to v2012.1.411.

The markup is as follows:

<telerik:RadGrid ID="AssetGrid" runat="server" AllowFilteringByColumn="True" AllowPaging="True"
    AllowSorting="True" GridLines="None" GroupingSettings-CaseSensitive="false" Skin="Web20"
    AutoGenerateColumns="False" OnPageIndexChanged="AssetGrid_PageIndexChanged" OnItemCreated="AssetGrid_ItemCreated"
    OnItemDataBound="AssetGrid_ItemDataBound"
    OnPreRender="AssetGrid_PreRender" OnSortCommand="AssetGrid_SortCommand" OnNeedDataSource="AssetGrid_NeedDataSource"
    EnableLinqExpressions="false">
    <ClientSettings EnableRowHoverStyle="true">
        <Selecting AllowRowSelect="true" />
        <ClientEvents OnRowDblClick="RowAssetSelected" />
    </ClientSettings>
    <MasterTableView EditMode="InPlace" AllowFilteringByColumn="true" ShowFooter="false"
        EnableColumnsViewState="true" AutoGenerateColumns="false" CellSpacing="-1" DataKeyNames="AsId"
        Font-Size="90%" AllowCustomSorting="true" AllowCustomPaging="true" Width="100%">
        <PagerStyle Mode="NextPrevAndNumeric" Visible="true" AlwaysVisible="true" />
        <!-- RowIndicatorColumn, ExpandCollapseColumn, Columns, etc -->
    </MasterTableView>
</telerik:RadGrid>
                

    The NeedDataSource event is as follows:

protected void AssetGrid_NeedDataSource(object source, GridNeedDataSourceEventArgs e)
{
    var collection = getAssets()
    AssetGrid.VirtualItemCount = collection.Count;
    AssetGrid.DataSource = collection.Skip(AssetGrid.PageSize *
        AssetGrid.CurrentPageIndex).Take(AssetGrid.PageSize);
}

Sorry if I've missed anything important.

The grid however, is displaying the pager row like this:

PageCountMissing

Is there a setting I've missed to enable the page/item counts in the bottom right?

Tsvetina
Telerik team
 answered on 21 May 2012
3 answers
136 views

Having problems with labels showing up in the right place or at all. I have multiple charts on one page and one chart has 4 series in it and I am using this code to set the lables positions but some of them dont show up at all.

Series2_3.Items[0].Label.Appearance.LabelLocation = Telerik.Charting.Styles.

 

StyleSeriesItemLabel.ItemLabelLocation.Outside;

 

Series2_3.Items[0].Label.Appearance.Position.AlignedPosition = Telerik.Charting.Styles.

 

AlignedPositions.Left;

also I am setting the label text  color to black but that doesn't work either

 

Series2_1.AddItem(itm2.AdministrativeServices,

 

"Administrative Services", Color.Black);


any suggestions?
Thanks!

 

Evgenia
Telerik team
 answered on 21 May 2012
7 answers
889 views
Hi,
I have a custom control, let's say MyControl1.ascx
Inside this control I have the following code:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript">
        function ClearRadCombo(sender, eventArgs)
        {
            var mycombo = $find("<%= RadComboBox1.ClientID %>");
            mycombo.clearItems();
            mycombo.clearSelection();
        }
    </script>
</telerik:RadScriptBlock>

This works just well.

Now I want to put all of the js code in a separate file, so I've changed the above code like this:

<telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
    <script type="text/javascript" src="../script/myscript.js">
    </script>
</telerik:RadScriptBlock>

I've registered the js file in the RadScriptManager on my MasterPage in this way:

<asp:ScriptReference Path="~/script/myscript.js" />

but it doesn't work anymore. I get a "object is null" error when the script calls the "clearItems" method, and "mycombo" is null, indeed.
So, it's possible to use RadScriptBlock with an external js file? If yes, what's wrong with my code, please?

Any help will be really appreciated.
Thank you.
ALEX
Top achievements
Rank 1
 answered on 21 May 2012
6 answers
176 views
Hi,

I have a requirement of using user control for tooltip. I am using RadScheduler, RadAjaxManager and the RadToolTipManager together. I followed all the steps as discussed in this but still there is a problem hitting OnAjaxUpdate event. I absolutely have no idea why OnAjaxUpdate event is not firing on Mouse hover of scheduler's appointment. Can someone please help me in this regard.

Thanks in Advance.

Note: I found that in view source code "loadOndemand"=false. can someone please tell me how to make this to true.
Marin Bratanov
Telerik team
 answered on 21 May 2012
1 answer
196 views
By default, toolbars take up the available space before starting on a new line. Is it possible to incluence this behaviour?

I have attached two screenshots. On the first one (it's called before.png in case the order isn't preserved), the toolbar that starts with the text and background color tools is on the first line. The toolbar that starts with the bold-tool is on the second line.

I would like to move the toolbar that starts with the color tools to the second line, as illustrated on the second screenshots (after.png).

Is this possible?
Rumen
Telerik team
 answered on 21 May 2012
1 answer
82 views
Our Application is supporting Multiple Language.
In some reports We have added option for Grid Column Filter.Some Countrie Like Netherlands using Comma(,) as decimal Separator.For the NL the data in the Grid is Translating correctly(means the Decimal separator is changing as (,)Ex the a value in the Grid is coming as 345,56).But When ever user Filtering By a Comma Separated Decimal value(like 345,56),Report Throwing Exception.
Andrey
Telerik team
 answered on 21 May 2012
4 answers
119 views
I have a radtree inside a div and I have two buttons inside that same div:  " Print Report" and Print Detailed Report" . "Print report" will print the div with radtree collapsed and "Print Detailed Report" will print the div with radtree expanded. I am using javascript to do that. Now, everything works fine in IE but in Firefox, I am not able to print the div with radtree expanded. I can see radtree expanding on the webpage but not on the window for printing. It prints that div with radtree collapsed. Here is my javascript:
for Collapsed radtree:

 

 

function PrintMe(node) {

 

 

 

var content = node.innerHTML;

 

 

 

var pwin = window.open('', 'print_content', 'width=800,height=700,scroll=no');

 

pwin.document.open();

pwin.document.write(

 

'<html><body onload="window.print()">' + content + '</body></html>');

 

pwin.document.close();

setTimeout(

 

function () { pwin.close(); }, 1000);

 

}
for Expanded Radtree:

 

 

function printSelection(node) {

 

 

 

var treeView = $find("<%= rdTreeDetails.ClientID %>");

 

 

 

var nodes = treeView.get_allNodes();

 

 

 

for (var i = 0; i < nodes.length; i++) {

 

 

 

if (nodes[i].get_nodes() != null) {

 

 

 

if (nodes[i].get_nodes().get_count() != 0) {

 

nodes[i].expand();

}

}

}

 

 

var content = node.innerHTML;

 

 

 

var pwin = window.open('', 'print_content', 'width=800,height=700,scroll=no');

 

pwin.document.open();

pwin.document.write(

 

'<html><body onload="window.print()">' + content + '</body></html>');

 

pwin.document.close();

 

setTimeout(

 

function () { pwin.close(); }, 1000);

 

 

 

for (var j = 0; j < nodes.length; j++) {

 

 

 

if (nodes[j].get_nodes() != null) {

 

 

 

if (nodes[j].get_nodes().get_count() != 0) {

 

nodes[j].collapse();

}

}

}

}

What can be done to print it expanded in firefox?

Plamen
Telerik team
 answered on 21 May 2012
1 answer
107 views
Hi ,
 I have upgraded the latest of telerik dlls.
I am facing a peculiar problem , my rad windows are opening twice.
my dot net frame work is 4.0
Thanks,
Raghav
rdmptn
Top achievements
Rank 1
 answered on 21 May 2012
1 answer
91 views
Hai there,
     Can anybody suggest a way to change transparency of tooltip with modality.
Thanks
Savyo
Princy
Top achievements
Rank 2
 answered on 21 May 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?