Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
74 views
Hello-

When I implement the  OnClientTimeSlotContextMenuItemClicked client-side event handler in my ASPX page and call the get_startTime() method, it always adds exactly eight hours to whatever time slot I clicked on.  Since I haven't found this issue reported by anyone else, I have to assume it's something in my code or on my system, but I'm really not sure where to look.  If it helps, below is the javascript code that I am using:

        function OnClientTimeSlotContextMenuItemClicked(sender, eventArgs) {
            // this line is always 8 hours off
            alert(eventArgs.get_slot().get_startTime().format("MM/dd/yyyy hh:mm:ss"));
        }

Thanks in advance for any ideas you have.

-Doug
Peter
Telerik team
 answered on 24 Dec 2010
1 answer
256 views
Hi,

I'm using RadControls version: 2010.Q3.1109.

I'm trying to select a child row in a Hierarchical RadGrid programmatically, but I'm having a world of woes. I've scoured Telerik's resources and this forum and I haven't seen an example of this for the RadAJAX Grid control.

Here's the code I'm trying to use:

RadGrid3.MasterTableView.Items(j).ChildItem.NestedTableViews(0).Items(i).Selected = True

However, I'm getting an ArgumentOutOfRangeException when I use this code, even when I set:

RadGrid3.MasterTableView.Items(j).ChildItem.NestedTableViews(0).HierarchyDefaultExpanded = True

The values for integer variables j and i are perfectly valid. If I should use:

RadGrid3.MasterTableView.HierarchyDefaultExpanded = True

...then it will work, but then every child record of every parent record in the table is expanded and that's not what I want. I only want the one parent record to be expanded — not all of them.

I can select the parent record just fine with:

RadGrid3.MasterTableView.Items(j).Selected = True

I'm at wits end. Your help would be greatly appreciated.

Jonathan
Jonathan
Top achievements
Rank 1
 answered on 24 Dec 2010
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
237 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
164 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
168 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
60 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
82 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
158 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
85 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
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?