Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
62 views
This is the C# code I tried to convert:

var usaOrders = from od in OrderDetails
where od.Order.Customer.Country == "USA"
select new {
    Company = od.Order.Customer.CompanyName,
    OrderDate = od.Order.OrderDate,
    OrderID = od.OrderID,
    Product = od.Product.ProductName,
    UnitPrice = od.UnitPrice,
    Quantity = od.Quantity,
    Discount = od.Discount,
    Extended = od.UnitPrice * od.Quantity * ( 1M - (decimal)od.Discount )
};


and this is what I got:
Dim usaOrders = _
    Where od.Order.Customer.Country = "USA"
 
'=======================================================
'Service provided by Telerik (www.telerik.com)
'Conversion powered by NRefactory.
'Twitter: @telerik, @toddanglin
'Facebook: facebook.com/telerik
'=======================================================

I expected to have something like:
Dim usaOrders = from od in OrderDetails _
    Where od.Order.Customer.Country = "USA" _
    select  _
        Company = od.Order.Customer.CompanyName, _
        OrderDate = od.Order.OrderDate, _
        OrderID = od.OrderID, _
        Product = od.Product.ProductName, _
        UnitPrice = od.UnitPrice, _
        Quantity = od.Quantity, _
        Discount = od.Discount, _
        Extended = od.UnitPrice * od.Quantity * ( 1 - od.Discount )

Todd Anglin
Top achievements
Rank 2
 answered on 12 May 2011
2 answers
45 views
I've seen one or two posts on this, but I'm not quite there yet.  I looked at this post:

http://www.telerik.com/help/aspnet-ajax/ajax-show-loadingpanel-on-initial-pageload.html

I think the main difference with my project is that I'm using a Masterpage/content page scenario and I'm not sure how to call the Ajax Manager on the Masterpage using the Proxy on the content page.  Basically, I have about 10 drop down lists to load and as soon as the page starts loading, I would like to show the Ajax Panel while it finishes.

Help?

thanks

mark
Maria Ilieva
Telerik team
 answered on 12 May 2011
2 answers
75 views
Hey, it seems like once I'm opening a RadWindow and then moving it around a bit, the focus is now only in the RadWindow, and no more on the background page. How can I give the focus back to my background page ? So that when I click on an image something happen immediatly ?

Thanks in advance,
Francis.
Francis
Top achievements
Rank 1
 answered on 12 May 2011
1 answer
61 views
I have a RadWindow set to autosize. Initially, it sizes correctly. However, when I close and reopen the window (window.close() then window.show()), the window is resized incorrectly. The width is way too narrow, but the height stays the same. I get similar behavior for any AutoSizeBehaviors value and any DestroyOnClose value. I do not have the resize problem in FireFox.
Marin Bratanov
Telerik team
 answered on 12 May 2011
1 answer
247 views
Hi guys,

We try to decide which product to use in our next project. (We do not have a chance to use Silverlight/WPF, it will be ASP.Net Ajax controls)

- In each page we will have charts and grids. In this case,  what do you think the best way of exporting RadChart and RadGrid into the same Excel sheet and PDF is? I know I can't use ExporttoPDF, ExporttoExcel methods with charts/graphs.

- I've already tried to put charts into grid and export to PDF, it works but I really don't prefer to do that. I can't put all of my charts into grids... (And export to excel does not work in this way I guess...)

- I don't prefer to use third party ( itextsharp etc.) products either. BUT if it works with RadGrid/RadChart and makes the export much easier, in  that case, I can switch to that...

I am new to Telerik and really need your thoughts...

Waiting your replies, thanks,
Ervin
Daniel
Telerik team
 answered on 12 May 2011
2 answers
113 views
Hi,

I have an ASP.NET2 project, which is using version 2010.2.929.20 of the Telerik controls.

This project uses the RadEditor, which works fine, until I click to open the Hyperlink Manager, when I get the following error:

Cannot deserialize dialog parameters. Please refresh the editor page.
Error Message:Invalid length for a Base-64 char array.

I have been looking through these forums to find an answer, but nothing I try (including this: http://www.telerik.com/community/forums/aspnet-ajax/editor/cannot-deserialize-dialog-parameters.aspx) seems to work.

I setup an ASP.NET3.5 project using the latest version of the Telerik controls (2011.1.413.35) and the Hyperlink Manager works. So, I assume this is a bug in the older version of the RadEditor? If so, is there a work-around, as I cannot convert the master project to .NET3.5 and I cannot see a version of the latest Telerik controls for .NET2 (unless I am missing something?)

Thanks in advance,
Matt.
Matt
Top achievements
Rank 1
 answered on 12 May 2011
1 answer
137 views
I have a RadCalendar set with
MultiViewColumns="4" 
MultiViewRows="3"

When I click on SLOW Navigation button,  I do not want to move the view by an entire year.

I want to only move ONE month back or forward.

How can I do that?

Thanks.
Simone
Top achievements
Rank 1
 answered on 12 May 2011
23 answers
1.3K+ views
Hi all,

Is there a way of setting the width and height of a radchart control to be a percentage value fitting into a panel, so that when window resizes, the panel also resizes (eg. 50% of the window), therefore the radchart within the panel also resizes automatically.
At the moment, width and height of radcontrol seems to only accept fixed number of pixels.

Cheers
Alan
Ravi
Top achievements
Rank 1
 answered on 12 May 2011
1 answer
86 views

The javascript error pops up when the drag and drop listbox control is used.

"Microsoft JScript runtime error: 'undefined' is null or not an object"

The code :

  <telerik:RadAjaxPanel ID="RadAjaxPanel2" runat="server">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="lblLHSHeader" runat="server"></asp:Label>
                                <br />
                                <telerik:RadListBox ID="LHSListBox" runat="server" Width="150px" Height="200px" SelectionMode="Multiple"
                                    AllowTransfer="true" TransferToID="RHSListBox" AutoPostBackOnTransfer="true"
                                    Skin="Office2007" AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true"
                                    ButtonSettings-ShowTransfer="false" ButtonSettings-ShowTransferAll="false" ButtonSettings-ShowReorder="false"
                                    AutoPostBack="false" OnTransferred="lhstransfer" OnSelectedIndexChanged="lhsitemcheck" OnClientDropped="fnOnClientDragStartLHS">
                                </telerik:RadListBox>
                                <br />
                                <asp:CheckBox ID="chklhsselectAll" runat="server" Text="Select All" Font-Names="Arial"
                                    Font-Size="Small" OnCheckedChanged="lhsselectall" Visible="false" AutoPostBack="true" />
                            </td>
                            <td runat="server" id="lstrequiredSpace" width="30px" align="center">
                                <asp:Label ID="lblCenterText1" runat="server" Text="Drag Field(s)"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="lblRHSHeader" runat="server"></asp:Label>
                                <br />
                                <telerik:RadListBox ID="RHSListBox" runat="server" Width="150px" Height="200px" SelectionMode="Multiple"
                                    AllowReorder="true" AutoPostBackOnReorder="true" EnableDragAndDrop="true" ButtonSettings-ShowTransfer="false"
                                    ButtonSettings-ShowTransferAll="false" ButtonSettings-ShowReorder="false" OnTransferred="lhstransfer"
                                    Skin="Office2007" OnSelectedIndexChanged="rhsitemcheck" AutoPostBack="false" OnClientDropped="fnOnClientDragStartRHS">
                                </telerik:RadListBox>
                                <br />
                                <asp:CheckBox ID="chkrhsselectAll" runat="server" Text="Select All" Visible="false"
                                    Font-Names="Arial" Font-Size="Small" OnCheckedChanged="rhsselectall" AutoPostBack="true" />
                            </td>
                            <td align="center">
                                <asp:Label ID="lblCenterText2" runat="server" Text=" Drag <bR/> To Change<BR/> Order "></asp:Label>
                            </td>
                        </tr>
                    </table>
                </telerik:RadAjaxPanel>


The javascript error comes when the page loads. It searches for RHSListBox when it is not completely loaded.

Please see the attachment. Expecting the response as soon as possible.

Thanks
Ram


 



Ivan Zhekov
Telerik team
 answered on 12 May 2011
1 answer
57 views
I discovered that no class is applied to an image when the image is selected and the class is applied through the "Apply CSS class" dropdown on the toolbar. This is happening in IE9, in FireFox (4.0.1) it works OK.
I have tested it in the First Look demo on the telerik website...

BR,
Marc
Rumen
Telerik team
 answered on 12 May 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?