Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
269 views

Thanks for adding the Logarithmic charts.  They are a needed addition to the chart toolbox.

After a quick review, I noticed the newly added charts need some additional work... 

The minor tick marks on the Y-axis of the Logarithmic charts for ASP.NET AJAX and Silverlight/WPF should not be evenly spaced.  I did a quick search on the net and found an example of how a logarithmic axis should display. 

Example gif file from this site:  http://www.intmath.com/Exponential-logarithmic-functions/7_Graphs-log-semilog.php

It is difficult to tell from the demos if the values line up with the tick marks.  Test by graphing values like 1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300... which should all line up with the minor tick marks.

The Silverlight Demo also says Logarithmic Y-Axis when it is really graphing logs on the X Axis.  The ASP.NET AJAX correctly graphs on the Y-Axis.

Thanks,
John Lehew
Terry Apodaca
Top achievements
Rank 1
 answered on 19 Aug 2010
2 answers
824 views
HI
1)I had master page "telerik_ex.master" which contains "ASP.Net Scriptmanager"  (I should maintain this Asp.net scriptmanager in this master page )

2) I want to use  radscriptmanager in "content" page 

3) But it gives the error page can't have two scriptmanager but how I can use ?

I am getting following error message
message:    Only one instance of a ScriptManager can be added to the page.


Thanks
Srikanth Gn
nikesh
Top achievements
Rank 1
 answered on 19 Aug 2010
2 answers
114 views
Dear Telerik,

I don't know what is wrong with my PanelBar. I am populating from XML, but when i click on the panelbar item, it does not redirect to my page.
Below is my snippets:
XML
<?xml version="1.0" encoding="utf-8" ?>
<PanelBar Skin="Outlook">
  <Item Text="Parameters" ImageUrl="~/Images/Crystal/images/gif/32.gif" Expanded="True" >
      <Item Text="GOOGLE" ImageUrl="~/Images/Crystal/folder/gif/16.gif" Href="www.google.com"/>
      </Item>
</PanelBar>

PANELBAR DEFINITION(.aspx)
  <telerik:RadSplitter ID="RadSplitter1" runat="server" Height="600px" Skin="Vista"
                SplitBarsSize="" Width="1420px" BackColor="AliceBlue" BorderSize="2">
                <telerik:RadPane ID="panelRadPane" runat="server" MinHeight="300" MinWidth="200"
                    Width="250" EnableEmbeddedBaseStylesheet="False">
                    <telerik:RadPanelBar ID="mainRadPanelBar" runat="server" Height="520px" AllowCollapseAllItems="true" ExpandMode="SingleExpandedItem">
                    </telerik:RadPanelBar>
                </telerik:RadPane>
                <telerik:RadSplitBar ID="mainRadSplitBar" runat="server" CollapseMode="Both" />
                <telerik:RadPane ID="contentRadPane" runat="server" Scrolling="None">
                    <div class="span-24 last" id="ContentPlace">
                        <asp:ContentPlaceHolder ID="MainContentPlaceHolder" runat="server">
                        </asp:ContentPlaceHolder>
                    </div>
                </telerik:RadPane>
            </telerik:RadSplitter>
CODE BEHIND
 mainRadPanelBar.LoadContentFile("~/Resources/Xml/Menu.xml");

Please kindly help. I don't know where i am going wrong.

Much appreciated
.


Robert Jakech
Top achievements
Rank 1
 answered on 19 Aug 2010
1 answer
178 views
I have a RadGrid on an ASP.NET page and the sorting of the rows for each page does not always work properly. For example, I have one grid with 359 rows, the grid's page size is 50, and the column being sorted is a DateTime field. So for 359 rows at 50 each the grid properly breaks things up into 8 pages. When you go to pages 1-4 and 6-8, each page's rows are properly sorted in descending order. When you go to page 5 the rows seemed to be sorted by "date string" order, instead of being sorted the normal DateTime way they sure appear to be sorted in their string order (where the format is "MM/DD/YYYY").

I've used SQL Manager to look at the data returned from the query and each page appears to have the proper rows, just page 5 is not sorted correctly. The control is fed the entire set of data (all 359 rows) any time "needs data" is called, so it is the control that is figuring out which 50 of the set need to be displayed and in what order.

Here's what I think is the pertinent markup:

<telerik:RadGrid ID="InvoicesGrid" runat="server" Skin="Sullivans" EnableEmbeddedSkins="false"
    CellPadding="3" GridLines="None" AlternatingItemStyle-CssClass="orderAltRow"
    AutoGenerateColumns="False" AllowSorting="True" AllowMultiRowSelection="False"
    AllowPaging="True" OnNeedDataSource="InvoicesGrid_NeedDataSource" OnItemDataBound="InvoicesGrid_ItemDataBound"
    OnPageIndexChanged="InvoicesGrid_PageIndexChanged">
    <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
    <MasterTableView Width="100%" DataKeyNames="Header.Invoice_No" AllowMultiColumnSorting="False" ShowFooter="true" AllowNaturalSort="False">
        <Columns>
 
<!-- Bunch of columns removed. -->
 
            <telerik:GridBoundColumn DataField="Header.Invoice_Dt" HeaderText="Date" DataFormatString="{0:d}" Aggregate="None" DataType="System.String" />
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

I added the AllowNaturalSort="False" to the MasterTableView today; I get the same results with or without that tag.

The only binding of the control is when the page is initialized, and in that case a Rebind is called.

The "need data" event simply gets the data from the database into an array of class objects and is bound like this:

InvoicesGrid.DataSource = details;

The item data bound formats some columns, but doesn't touch the date column.

Any ideas appreciated, and if I can supply any further info please let me know.
-glenn-
Top achievements
Rank 1
 answered on 19 Aug 2010
1 answer
109 views
Hi,

We've seem to hit an issue with the TooltipManager and loading dynamic content (by loading a user control when AjaxUpdate is called). The first time we attempt to show a tooltip (and get content), the AjaxUpdate method does not get called. If the tooltip then hides, and we attempt again - it works as expected.

Any suggestions?

Kori
Kori
Top achievements
Rank 2
 answered on 19 Aug 2010
7 answers
125 views

I am tring to save the user data for persisting grid settings to a sql database, using the exact code from the demo site.

protected void btnSaveSettings_Click(object sender, EventArgs e)
    {
        string user = UserSelection.SelectedValue;
        GridSettingsPersister SavePersister = new GridSettingsPersister(RadGrid1);
        Session[user] = SavePersister.SaveSettings();
        InfoImage.Visible = true;
        StatusLabel.Text = "Settings for " + user + " saved successfully!";
        btnLoadSettings.Enabled = true;
    }

 

SavePersister.SaveSettings() is of type String, so I don;t know what the problem is.

However, when I try to save the string into a sql varchar(max) field, it fails. Or rather, LoadSettings(string value) is failing.

Is anyone else having this problem? Is there example code of saving the settings to a DB?

BONUS QUESTION: I need to add a RESET button. Can you pass String.Empty into loadsettings?

Veli
Telerik team
 answered on 19 Aug 2010
2 answers
127 views
Hi

I am having a few troubles, i have never used the charts before.

I  have a radgrid that has a number of columns which is bound to an sqldatasource.

When i click on a row in the grid i want the chart to retrieve data from the database and populate a line chart.

Example.

Columns on the grid: PlayerCode, PlayerName. (Both of these fields are from the Players table)
When you click on the row the chart will populate a line graph by getting data from the Scores table using the PlayerCode field as a join.

Im just having trouble on how to set the parameters for the chart. Also is it best to use an update panel for the chart or use client side code.

Any help is appreciated.
Antony
Top achievements
Rank 1
 answered on 19 Aug 2010
2 answers
113 views
Hi all,

we're using radAjaxPanel (2010 Q2) and we're having a strange behaviour. Whenever we do a first post back it works ok. But if we do a second post back we get an "System.Web.UI.ViewStateException: Invalid viewstate."

Anyone have a clue??

thanks in advance!
Tiago
Sunil
Top achievements
Rank 1
 answered on 19 Aug 2010
3 answers
255 views
Hi,
I am using a RadListbox and I have set the skin to windows 7. However, I would also like to separtely set the backcolor of the selected item to a particular color. How can I do this?
Thanks ... Ed
Genady Sergeev
Telerik team
 answered on 19 Aug 2010
6 answers
541 views
Hi,

Is there any way that the height of the grid will self adjust to the screen resolution each user when it is filled automatically (AutoGenerateColumns="True")?

This is the code of my grid:

<telerik:RadGrid ID="grdReport" runat="server" AllowPaging="true" AutoGenerateColumns="True"
        BorderWidth="1px" GridLines="None"
                        OnPageIndexChanged="grdReport_PageIndexChanged" PageSize="10"
        onitemdatabound="grdReport_ItemDataBound" >
                                        <PagerStyle AlwaysVisible="true"
                                        FirstPageToolTip="<%$ Resources:WebDexon, FirstPage %>"
                                        LastPageToolTip="<%$ Resources:WebDexon, LastPage %>" Mode="NextPrevAndNumeric"
                                        NextPagesToolTip="<%$ Resources:WebDexon, NextPages %>"
                                        NextPageToolTip="<%$ Resources:WebDexon, NextPage %>"
                                        PagerTextFormat="<%$ Resources:WebDexon, PagerTextFormat %>" Position="Bottom"
                                        PrevPagesToolTip="<%$ Resources:WebDexon, PrevPages %>"
                                        PrevPageToolTip="<%$ Resources:WebDexon, PrevPage %>" Visible="true" />
                                        <clientsettings scrolling-allowscroll="true" scrolling-usestaticheaders="true" Resizing-AllowColumnResize="true" Resizing-ClipCellContentOnResize="false">
                                        <Scrolling AllowScroll="True" UseStaticHeaders="True"></Scrolling>
                                        </clientsettings>       
                                        <statusbarsettings loadingtext="<%$ Resources:WebDexon, Loading %>"
                                        readytext="<%$ Resources:WebDexon, Ready %>" />
                                        <mastertableview nodetailrecordstext="" nomasterrecordstext="" Height="90%">
                                        <HeaderStyle Width="200px" />
                                        </mastertableview>
                    </telerik:RadGrid>
edward ropero
Top achievements
Rank 1
 answered on 19 Aug 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?