Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
128 views
Hello,

I'm working with RadChart control and I want to display the price evolution of an equity.

I can generate my Chart without problems with an XAxis based on the dateTime (converted with ToOADate method). My problem is that an equity is only traded during the opening periods of the market.

Is it possible to personalize the XAxis items to display only the item that I provide to the Chart?
Here is an example of data :

2009/09/10 ==> 23.4
2009/09/11 ==> 23.6
2009/09/14 ==> 23.2
2009/09/15 ==> 22.9

There is no data for the weekend (2009/09/12 and 2009/09/13) and I want that the chart display only the information about the open days without an approximation for the day without prices.

Thank you for your help.
Quantesys IT
Top achievements
Rank 1
 answered on 08 Oct 2009
3 answers
220 views
On my RadGrid have a column of DropDownLists. I use those DropDownLists to present the sting definitions(from another table) of foreign keys of the table to which i bound my RadGrid over my datasource. Such as:

<

telerik:GridTemplateColumn HeaderText="Sube" SortExpression="SubeId" UniqueName="SubeIdddl" AllowFiltering = "true" filterlistoptions="AllowAllFilters" >

 

 

<ItemTemplate >

 

 

<asp:DropDownList ID="DropDownList1" runat="server" DataValueField = "SubeID" DataTextField = "SubeAdi"

 

 

DataSourceID="MyDataSourceSubeler" SelectedValue='<%# Bind("SubeId") %>' Enabled = "false" Width = "200">

 

 

</asp:DropDownList>

 

 

</ItemTemplate>

 

 

<ItemStyle Width="200px"></ItemStyle>

 

 

</telerik:GridTemplateColumn>

However it throws a worktime error saying that: 

Microsoft JScript worktime error: Sys.WebForms.PageRequestManagerServerErrorException: Expression expected

How can i handle that? thanks...

 

Princy
Top achievements
Rank 2
 answered on 08 Oct 2009
4 answers
177 views
Hello,
Can someone please explain to me how you add a custom heading to the exported excel information?  I need a title that merges across all columns.

Thank you!
Stacy Frank
Sundial Software Co.
Daniel
Telerik team
 answered on 08 Oct 2009
3 answers
133 views
Hello,

I would like a textbox column in my RadGrid. Unfortunately, I must have a boolean data type to get this to work, and what I have now is a char of 1 length (Y and N values). I looked into the sql conversion tables and couldn't find a compatible conversion. Is there a way to get the boxes to check or uncheck based on Y and N values, or a way to convert to boolean that I've missed?

I hope this question is clear, and appreciate any help.
Shinu
Top achievements
Rank 2
 answered on 08 Oct 2009
4 answers
84 views
Hello,

I've upgraded from 2009.1.311.35 to 2009.1.527.20 and found problem that broke some of my functionality: automatic post back on dock close does not work in RadDock anymore.

You can use following code to reproduce the problem, compile it with version 2009.1.311.35 and 2009.1.527.20 and you'll see the difference, close the dock and check if postback was issued.

<body> 
  <form id="form1" runat="server"
  <div> 
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" ScriptMode="Debug"
    </telerik:RadScriptManager> 
    <telerik:RadDockLayout ID="RadDockLayout1" runat="server"
      <telerik:RadDockZone ID="RadDockZone1" runat="server" Height="300px" Width="300px"
        <telerik:RadDock ID="RadDock1" runat="server" Width="300px" CommandsAutoPostBack="true" 
          AutoPostBack="true"
          <Commands> 
            <telerik:DockCloseCommand AutoPostBack="true" /> 
          </Commands> 
          <ContentTemplate> 
            test 
          </ContentTemplate> 
        </telerik:RadDock> 
      </telerik:RadDockZone> 
    </telerik:RadDockLayout> 
  </div> 
  </form> 
</body> 

My configuration:
  • Telerik For ASP.NET AJAX 2009.1.527.20 and 2009.1.311.35
  • Windows XP Pro SP3
  • Visual Studio 2008
  • FF 3.5,3, IE 7.0

Best regards, Oleg Yaroshevych.
Pero
Telerik team
 answered on 08 Oct 2009
1 answer
40 views
I recently upgraded from 2009.2.713.35 to 2009.2.826.35 and now I am noticing extremely weird behavior with the RadEditor that wasn't present in the previous version.

Essentially I have a three panel layout on my page. The left panel contains a tree list and the middle panel dynamically loads a usercontrol  when I click on a tree node. This works perfectly.

My problem is that the very first time I click on a node that loads a usercontrol containing a RadEditor, the editor is completely deformed - buttons are there, but not aligned correctly and missing labels. The editing surface panel is enormous and everything seems all over the place.

However, if I click on another node that uses the same usercontrol, then the editor appears exactly how I would assume it would. In fact, it appears to work perfectly from then on.

It seems that this is due to me using a relative width in the control (99%) because once I changed this setting to a flat pixel width, I haven't been able to reproduce the problem (Yet).

How did this happen between versions? Is this a known problem? Is there a way I can still have relative widths on this control?
Rumen
Telerik team
 answered on 08 Oct 2009
1 answer
165 views
Hi, I am getting an error when I try to rename a directory in the File Explorer. To reproduce this error I right-click the item in either the treeview or gridview, change the name, and either hit enter or click somewhere else on the screen to make the changes. When I hit enter the following error appears on my screen. This error only appears when I am renaming a directory, it doesn't happen when I am renaming a file.

System Error:
System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at Telerik.Web.UI.RadFileExplorer.RenameTreeNode(RadTreeNode node, String newName) at Telerik.Web.UI.RadFileExplorer.RadTreeView1_NodeEdit(Object sender, RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.OnNodeEdit(RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.RaisePostBackEvent(String eventArgument) at Telerik.Web.UI.RadTreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) at Telerik.Web.UI.RadFileExplorer.RenameTreeNode(RadTreeNode node, String newName) at Telerik.Web.UI.RadFileExplorer.RadTreeView1_NodeEdit(Object sender, RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.OnNodeEdit(RadTreeNodeEditEventArgs e) at Telerik.Web.UI.RadTreeView.RaisePostBackEvent(String eventArgument) at Telerik.Web.UI.RadTreeView.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Lini
Telerik team
 answered on 08 Oct 2009
1 answer
98 views
Hi

I need to be able to create a dynamic layout of RadDockZones and RadDocks.
In my attached pictures I have 2 examples of layouts I want to create where the different colors represent different DockZones.
They must be dynamic so I can load and save the layout on init. I also have to have the layout resizable to its container.
Is there a way to arrange RadDockZones to solve this problem.
I've tried many ways. For example to create a layout of tables created dynamic. Then attach a zone to each <td> using javascript. It work kind off but not really the way I want it to work.
Does anyone have an idea or example that can fix this problem?

/Mathias
Pero
Telerik team
 answered on 08 Oct 2009
1 answer
86 views
Hi all!

I'm using N-Tier application architecture, and I pass array of objects (got from my Data Access Layer) as a DataSource for RadGrid so I don't want to use DataSource SQL Commands.
How can I access edited object values from UpdateCommand event?

Pavlina
Telerik team
 answered on 08 Oct 2009
3 answers
102 views
Hello,

I have an instance when I am using a treeview inside a combobox, and when I open up a number of nodes I get a vertical scrollbar which is fine, however, when I open up more and more nodes, i get a horizontal scrollbar and then when I scroll to the right there is an additional vertical scrollbar.  So I have a horizontal scrollbar and two vertical scrollbars.  Once I hover over the tree, the horizontal and one of the vertical bars does go away, but I would like it so that I do not get the extra scroll bars at all.  I believe the first vertical scroll bar belongs to the combobox and the horizontal and extra vertical belong to the treeview.  Does anyone have any suggestions on how to keep only the one vertical scrollbar.

Thank you

Aaron
Magnus Bilock
Top achievements
Rank 1
 answered on 08 Oct 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?