Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
2.7K+ views
Hi,
I have tried to sum all rows in a RadGrid column which after some research on www.telerik.com saws as quite simple, but it was not. I am missing something. What I did was that I added  DataType="System.Decimal" Aggregate="Sum" in the column binding section.

<telerik:GridBoundColumn DataField="GROSS_FREIGHT_COST" HeaderText="Bruttofrakt [K]" 
UniqueName="GROSS_FREIGHT_COST" DataType="System.Decimal" Aggregate="Sum">
</telerik:GridBoundColumn>

But this was not enough. The only thing that was visualized in footer was the text 'Sum:'

What am I missing? Do I need to have something in my code behind file?
Pavlina
Telerik team
 answered on 24 Dec 2010
5 answers
272 views

Hello,

 

I have a problem to get back my appointment occurrences with the TryParse() method when I use TimeZoneOffset. Here is a procedure I use:

 

I setup my scheduler for UTC-8:

RadScheduler1.TimeZoneOffset = new TimeSpan(-8, 0, 0);

 

I enter a new appointment in the schedule: from Wednesday 1 December 2010 08h00PM to 10h00PM, with a recurrence rule: Weekly, Wednesday and Friday, up to 2 occurrences.

 

This gives me 2 appointments in the scheduler:

Wednesday 1 December 8:00pm

Friday 7 December 8:00pm

 

The data obtains in the appointment object are in UTC time zone, with values:

Start = {12/2/2010 4:00:00 AM}

End = {12/2/2010 6:00:00 AM}

RecurrenceRule = "DTSTART:20101202T040000Z\r\nDTEND:20101202T060000Z\r\nRRULE:FREQ=WEEKLY;COUNT=2;INTERVAL=1;BYDAY=WE,FR\r\n"

 

My problem appears when I use the method Telerik.Web.UI.RecurrenceRule.TryParse() on the Recurrence Rule. I obtain a rule with 2 occurrences:

 [0]  {12/3/2010 4:00:00 AM}

 [1]  {12/8/2010 4:00:00 AM}

 

This means in UTC-8:

Thursday 2 December 8:00pm

Friday 8 December 8:00pm

 

This is not what I scheduled. This appends when the start of the appointment changes of day between local time and UTC time. I think TryParse() cannot restore the occurrence properly because it do not store the time zone in which the rule has been encoded.

I am missing something? Is there another method to get my occurrence from the recurrence rule?

 

Thank you very much for your help,

Mathieu

Peter
Telerik team
 answered on 24 Dec 2010
3 answers
193 views
Hi ,

I have a radgrid and i have enabled scrolling in radgridf it's working fine on my page .But when i am going to export data in PDF then i want to print scroll on the PDF . Is it possible through Radgrid or any other way to achieve this when i am going to export in PDF.I don't want to make font-size to lower px i want my pfd to display same way as it is displaying on page with scrolling feature. I don't want to clooase the columns etc these solutions i don't want . I want the scrollable functionality on pdf file and all records to display in pdf i have used paging so i cann't use windows print page method as it only displays the current records in Grid .

Please answer me ASAP it's very Urgent .I have to make this functionality .I can't find any answer ,

Is it possible in radGrid  to this scrolling feature as it comes in the excel exporting option .
or its a PDF writer that doesn't allow the scrolling functionality to implement in Radgrid .I have runtime 60-70 Columns to display so i want scrolling to be implemented in the PDF export file as it displays in the Excel ,CSV.

Thanks
Gaurav Bhardwaj
Daniel
Telerik team
 answered on 24 Dec 2010
9 answers
179 views
Rebind (web service) does not call TimeSlotCreated.

I know this might be as designed, but is there a way for me to trigger the scheduler to rebuild the timeslots?
Peter
Telerik team
 answered on 24 Dec 2010
2 answers
73 views
I have a RadWindow with several RadComboBox controls.  I'm using javascript to get the selected value from these ComboBoxes.  It's pretty simple code:

function OK_Clicked() {
            var oWindow = GetRadWindow();
            //Get current item
           var combo = <%= RadComboBox1.ClientID %>;
           var combotext = combo.valueOf();
           alert(combotext);
}
The combo is getting populated by a datasource.  Yet, it says object doesn't support this property or method ( the valueOf() call ).  All I'm trying to do is get the selected item.  Do I need to have an event on this combo, on the client side to note when the selected index changes?
Svetlina Anati
Telerik team
 answered on 24 Dec 2010
1 answer
109 views

I have a sample webform with 7 <DIV>. 6 <DIV> nested in one outer <DIV> as shown in the code snippet below. The problem is when I expand a PanelBar on the top row, it shifts the <DIV> area below it to the right instead of vertically downwards. This is illustrated in the figures attached. How can I overcome this problem?

<body>
      
    <form id="form1" runat="server">
      
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div>
    <div style=" width:33%; float:left; background-color:Gray;" id="div1">
        <telerik:RadPanelBar ID="RadPanelBar1" runat="server" Width="100%">
            <Items>
            <telerik:RadPanelItem Text="div1">
            <Items>
              
            <telerik:RadPanelItem Value="div1">
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" Text="Button" />
            </ItemTemplate>
            </telerik:RadPanelItem>
            </Items>
            </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>
    </div>
    <div style=" width:33%; float:left; background-color:Green;" id="div2">
        <telerik:RadPanelBar ID="RadPanelBar2" runat="server" Width="100%">
            <Items>
            <telerik:RadPanelItem Text="div2">
            <Items>
              
            <telerik:RadPanelItem Value="div2">
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" Text="Button" />
            </ItemTemplate>
            </telerik:RadPanelItem>
            </Items>
            </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar>
    </div>
    <div style=" width:33%; float:left; background-color:Navy;" id="div3">
    <telerik:RadPanelBar ID="RadPanelBar3" runat="server" Width="100%">
            <Items>
            <telerik:RadPanelItem Text="div3">
            <Items>
              
            <telerik:RadPanelItem Value="div3">
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" Text="Button" />
            </ItemTemplate>
            </telerik:RadPanelItem>
            </Items>
            </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar></div>
    <div style=" width:33%; float:left; background-color:Purple;" id="div4">
    <telerik:RadPanelBar ID="RadPanelBar4" runat="server" Width="100%">
            <Items>
            <telerik:RadPanelItem Text="div4">
            <Items>
              
            <telerik:RadPanelItem Value="div4">
            <ItemTemplate>
                <asp:Button ID="Button1" runat="server" Text="Button" />
            </ItemTemplate>
            </telerik:RadPanelItem>
            </Items>
            </telerik:RadPanelItem>
            </Items>
        </telerik:RadPanelBar></div>
    <div style=" width:33%; float:left; background-color:Teal;" id="div5"></div>
    <div style=" width:33%; float:left; background-color:Fuchsia;" id="div6"></div>
    </div>
    </form>
</body>
Cori
Top achievements
Rank 2
 answered on 24 Dec 2010
3 answers
186 views
Hi

I have a toolstrip in my editor toolbar which contains several items.  When my editor looses focus I want to disable (or hide) some of the toolstrip sub options subject to misc business logic (e.g. in scenario below say I want to disable the "Do That" option)

My tools file is something like :
<root>
    <tools IsRibbon="true">
        <EditorToolStrip Name="MyToolStrip" PopupHeight="90px">
            <EditorTool Name="DoThis" Text="Do This" />
            <EditorTool Name="DoThat" Text="Do That" />
            <EditorTool Name="DoOther" Text="Do Other" />
        </EditorToolStrip>
    </tools>
</root>

I was expecting to be able to write some javascript similar to that below but the editor API doesn't seem to allow me to do it and i cannot figure it out :

editor.getToolByName("MyToolStrip").getToolByName("DoThis").setState(-1)

I have noticed that there is a .getTools() method but all this seems to return me is an array of name/value pairs thus I cannot hide/disable my toolstrip suboptions.

Can you adivise on how to achieve this ?

Thanks in advance

Stanimir
Telerik team
 answered on 24 Dec 2010
1 answer
104 views
Hi,
i am using Telerik RadEditor in one of my project. i am facing the following problem with the RadEditor.
problem is
i have aspx page in that some controls were there among them linkbutton & RadEditor are present.
linkbutton has the accesskey (a). for example if i press the alt+a then focus will move onto the linkbutton, after that if i press the enter key then the linkbutton server side event (click) will be fired this is normal behaviour of the linkbutton.

but the thing is for example i was in the RadEditor contentarea i type some content in that ( i stayed in the contentarea only) after that i pressed the alt+a(this is the accesskey of the linkbutton) after that i am pressing the enterkey to fire the linkbutton click event then that event is not getting fired.instead of that i am going to the next line in the RadEditor.
so, what is the workaround for this?
thanks,
Burepalli V S Rao.
Stanimir
Telerik team
 answered on 24 Dec 2010
5 answers
134 views

Hi,

In my main website I am getting an odd issue with the RadEditor.  The background panel does not stretch all the way down the height of it.  This is visible in the attached image.  The top part of the image shows a test website that I made and it works.  The bottom part of the image shows the problem (1a & 1b in the  image).  Any ideas what could be causing this odd issue?

Also what is the thing shown in position 2.

My code for the editor is shown below.

Regards,

Jon



<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="WebForm1.aspx.vb" Inherits="NJC.Amonet.Web.WebForm1" %>
  
<!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>
</head>
<body>
    <form id="form1" runat="server">
    <div>
      
  
    <telerik:RadScriptManager ID="uxRadScriptManager" runat="server"></telerik:RadScriptManager>
    <telerik:RadStyleSheetManager ID="uxRadStyleSheetManager" Runat="server"></telerik:RadStyleSheetManager>
    <telerik:RadEditor ID="RadEditor1" Runat="server" width="400px" height="100px"></telerik:RadEditor>
    </div>
    </form>
</body>
</html>
Rumen
Telerik team
 answered on 24 Dec 2010
3 answers
78 views
Yea!!!! New requirements to an already functional project :)

I have now been asked to hide any resources (rooms) that do not have appointments for the currently viewed timeframe.
The good news is, in this app, the only displayed view is timeline view (7 days, 14 slots).
I'm sure I could maybe manipulate the provider more? Which I'm already doing to control which get shown by whether or not they have any appointments at all - or do some hack with getAppointmentsInRange, but how exactly would I apply that to the RadScheduler?

Thanks,
Kevin
Peter
Telerik team
 answered on 24 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?