Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
127 views

I have Visual Studio 2005 and 2008 installed on my computer. The install seems to work fine. The problem is that I don's see any of the rad controls in my toolbox. I run the register rad control option and still nothing. When I manually try to register the controls into my tool box from the telerick 
"C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Bin" folder

I get this error "Could not load file or assembly system.web.extensions version=1.061025.0


When I manually try to register the controls into my tool box from the telerick 
"C:\Program Files\Telerik\RadControls for ASPNET AJAX Q1 2008\Bin35" folder it seems to work
fine except the controls don't show up in the toolbox even though they are checked off in the .net framework components tab.

I didn't have this second problem with the demo version.

FQ
Top achievements
Rank 1
 answered on 25 Jun 2008
1 answer
209 views
Hi,

The graph i have developed just has numbers from 1 onwars in the x-axis. I want to have strings added to x-axis label. I am generating the chart dynamically.
My COde is like this. I want to have the date in the IDictionary displayed as string in the x-axis.

protected void Page_Load(object sender, EventArgs e)
        {
            IDictionary<DateTime, int> cmcValues = new Dictionary<DateTime, int>();
            cmcValues.Add(DateTime.Today.Date, 115);
            cmcValues.Add(DateTime.Today.AddDays(1).Date, 123);
            cmcValues.Add(DateTime.Today.AddDays(5).Date, 136);
            cmcValues.Add(DateTime.Today.AddDays(23).Date, 143);
            cmcValues.Add(DateTime.Today.AddDays(41).Date, 134);
            BuildChart(cmcValues, "Diabetes", "Bar");
         
        }

      

        private void BuildChart(IDictionary<DateTime, int> CareMeasureValues, string chartName, string chartType)
        {


            RadChart rChart = new RadChart();
          
            double stepDate = CareMeasureValues.ElementAt(1).Key.ToOADate();
            rChart.ChartTitle.TextBlock.Text = "";

           
            ChartSeries cSeries = new ChartSeries();
           
            cSeries.Name = chartName;
            ChartSeriesType csType = new ChartSeriesType();

            foreach (string item in Enum.GetNames(csType.GetType()))
            {
                if (item == chartType)
                {
                    cSeries.Type = (ChartSeriesType) Enum.Parse(csType.GetType(), chartType);
                    break;
                }
            }                       
                       
            ChartSeriesItem csItem;
            ChartAxisItem cAxisItem;
            rChart.PlotArea.XAxis.Clear();

            foreach (KeyValuePair<DateTime, int> kvp in CareMeasureValues)
            {
                csItem = new ChartSeriesItem();
                csItem.YValue = kvp.Value;


                cAxisItem = new ChartAxisItem();
                cAxisItem.TextBlock.Text = kvp.Key.ToShortDateString();
                cAxisItem.Value = kvp.Value;
                rChart.PlotArea.XAxis.Items.Add(cAxisItem);

                cSeries.AddItem(csItem);               
            }
           

            double firstDate = CareMeasureValues.First().Key.AddDays(-1).ToOADate();
            double lastDate = CareMeasureValues.Last().Key.AddDays(1).ToOADate();

            rChart.PlotArea.XAxis.AddRange(CareMeasureValues.Count - (CareMeasureValues.Count - 1), CareMeasureValues.Count, 1); 
                       
           
            rChart.PlotArea.XAxis.Appearance.MajorGridLines.Visible = false;
            rChart.PlotArea.Appearance.Dimensions.Margins = "18%, 24%, 22%, 10%";
            rChart.PlotArea.XAxis.AutoScale = false;
            rChart.PlotArea.XAxis.Appearance.LabelAppearance.RotationAngle = 45;
            rChart.PlotArea.XAxis.Appearance.LabelAppearance.Position.AlignedPosition = Telerik.Charting.Styles.AlignedPositions.Top;
            rChart.PlotArea.XAxis.LayoutMode = Telerik.Charting.Styles.ChartAxisLayoutMode.Inside;

            rChart.PlotArea.Appearance.Corners.BottomLeft = Telerik.Charting.Styles.CornerType.Round;
            rChart.PlotArea.Appearance.Corners.BottomRight = Telerik.Charting.Styles.CornerType.Round;
            rChart.PlotArea.Appearance.Corners.TopLeft = Telerik.Charting.Styles.CornerType.Round;
            rChart.PlotArea.Appearance.Corners.TopRight = Telerik.Charting.Styles.CornerType.Round;
           
            rChart.AddChartSeries(cSeries);


            //HtmlTable table = new HtmlTable();
            //HtmlTableRow tRow = new HtmlTableRow();
            //HtmlTableCell tCell = new HtmlTableCell();
            //tCell.Controls.Add(rChart);
            //tRow.Cells.Add(tCell);
            //table.Rows.Add(tRow);
            placeholder1.Controls.Add(rChart);

        }
John
Top achievements
Rank 1
 answered on 25 Jun 2008
1 answer
112 views
Hi,

we tested the RadEditor version 4.5.2 for Moss. Now we bought version 5.0.2. Many things are not working as before. We removed some buttons by editing the EditorDialogs in version 4.5.2. But this does not work any more. You mentioned that it will be fixed with the next update. I installed it and now I can see the ascx pages for the dialogs, but editing them as we done it before doesn't have any impact on the appearance.
Another thing which you wanted to fix was the fullscreenmode functionality. In the fullscreen mode the dropdownboxes do not expand in a sharepoint environment, because the doctype for xhtml is missing. But sharepoint is not well formed. Therefor it is not easily added to the masterpages and we even do not want it.

Falk
Lini
Telerik team
 answered on 25 Jun 2008
4 answers
140 views
Hi
I m having a RAD grid, on whose row click i want to show a tooltip with the internal details about row. but that grid is being populated by ajax call because of which tooltips are not opening.
Svetlina Anati
Telerik team
 answered on 25 Jun 2008
1 answer
121 views
Hi all,
I am really new to programming world.
I have a RADtreeview and i want to load the tree view at runtime from code behind. I have 2 tables in the sql server database. one is customer and other one is customer site. On the page load of the page i want to have all the customers in the customer table as the parent node of the tree and when you click on each customer i want the sites allocated to that particular customer to be loaded from the site table as the child node for that customer. I am not able to do this . Pleae help me out anyone to do this.
As it is two different tables i dont know how to load them at run time according this scenerio. I am using sql server 2005 as the database where these table resides.
Your kind response would be highly appreciated.
Regards,
Deepak
Veselin Vasilev
Telerik team
 answered on 25 Jun 2008
4 answers
153 views
Hello,

I have a page that has 2 grids and an asp:panel that contains various controls including a button.  When the page first loads only the 2 grids are visible.  When the user clicks a button command in grid1, I want to display the panel and hide grid2 such that only grid1 and the panel are visible.  When the user clicks a "cancel" button in the panel, I want to hide the panel and redisplay grid2 such that only the 2 grids are visible.  I want similar behavior when the user clicks a button command in grid2 i.e. I want to display the panel and hide grid1.  When they click the "cancel" button in the panel, I want the panel to be hidden and grid2 redisplayed.

I am using RadGrids and a RadAjaxManager.  The grids have been added through the designer, but the columns are programmatically created.

When I click the button command in grid1, the panel will display, but grid2 will not hide, yet if I click something in grid2 with the panel visible, grid2 will disappear and never come back.  Same thing happens if I start with the grid2 button command.  The panel will display, but grid1 won't disappear, yet if I click something in grid1 it will disappear and never come back.

The button command in grid1 makes a call to a function that does this:

aspPanel.Visible =

true;

grid2.Visible =

false;

The button command in grid2 makes a call to function that does this:

aspPanel.Visible = true;

grid1.Visible =

false;

The button command in the asp:panel makes a call to a function that does this:

// hide the panel

aspPanel.Visible =

false;

// show all the grids

grid1.Visible = true;

grid2.Visible =

true;

I'm thinking it has something to do with how I configure the AjaxManager so here is how I have it set up right now:

ajaxManager.AjaxSettings.AddAjaxSetting(grid1, grid1);

ajaxManager.AjaxSettings.AddAjaxSetting(grid2, grid2);

ajaxManager.AjaxSettings.AddAjaxSetting(grid1, aspPanel);

ajaxManager.AjaxSettings.AddAjaxSetting(grid2, aspPanel);

Any help would be greatly appreciated.
Thanks!
Lyn

Lyn Mannato
Top achievements
Rank 1
 answered on 25 Jun 2008
3 answers
162 views
I have spent a bit of time trying to upgrade a project to version 2008.1 619 but have been getting this error:

[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +2748189
   System.Web.UI.StateManagedCollection.System.Collections.IList.get_Item(Int32 index) +9
   Telerik.Web.StronglyTypedStateManagedCollection`1.get_Item(Int32 index) +20

I have traced it down to the line: "RadEditor1.Tools[0].Tools.Insert(0, custom1);"

in

EditorTool custom1 = new EditorTool();
custom1.Name = "CustomSave";
custom1.ShortCut = "CTRL+1";
RadEditor1.Tools[0].Tools.Insert(0, custom1);

The help file also shows adding a button using the code below which also creates the error

EditorTool tool = new EditorTool("Bold");
tool.Type = EditorToolType.Button;
RadEditor1.Tools[0].Tools.Add(tool);

Has something been changed or is this a bug to be resolved. Any help would be greatly appreciated.

Thanks,
Dave
Rumen
Telerik team
 answered on 25 Jun 2008
0 answers
130 views
Dear All,

I am using the file upload control and I kept it in the update panel,

How can I upload the files while clicking on the button "Upload"?

If it is not inside the update panel, on post back automatically it is uploadign the files to the target location.

But I want to check the file before uploading and check the contents and then I have to upload.

How can I get the files in the upload control.

Best Regards,

M. J. Jaya Chitra
Jebamalai
Top achievements
Rank 1
 asked on 25 Jun 2008
5 answers
89 views
Hi,
if i use the formdecorator with RadGrid on the same page, the Command-Items "Add New Record & Refresh" of the grid are hided.

cheers
Konstantin Petkov
Telerik team
 answered on 25 Jun 2008
1 answer
171 views
Hi ,

    I have used Rad Tooltip to display the information of each row in the rad grid when hovered over the first columns label. I get the tooltip correctly positioned on bottom right of the label for each row but in IE6 Its being displayed somewhere on the top of the grid in the browser. I am sending you the code

<!-- code using telerik rad grid for displaying default view of competencies -->

<telerik:RadGrid ID="lstCompetencies" runat="server" AllowPaging="True"

AllowSorting="True" GridLines="both" Skin="WebBlue"

PagerStyle-Mode="Slider" Width="610px" PageSize="25">

<ExportSettings ExportOnlyData="False" FileName="Competencies" Excel-Format="Html"

OpenInNewWindow="True">

</ExportSettings>

<PagerStyle Mode="Slider" />

<MasterTableView autogeneratecolumns="False">

<RowIndicatorColumn Visible="False">

<HeaderStyle Width="20px"></HeaderStyle>

</RowIndicatorColumn>

<ExpandCollapseColumn Visible="False" Resizable="False">

<HeaderStyle Width="20px"></HeaderStyle>

</ExpandCollapseColumn>

<Columns>

<telerik:GridTemplateColumn>

<ItemTemplate>

<asp:Label ID="lblComp" Text='<% #Eval("CompetencyName") %>' runat="server"></asp:Label>

<!-- POP Up control for displaying competency info -->

<telerik:RadToolTip runat="server" ID="RadToolTip1"

TargetControlID="lblComp" IsClientID="False" OffsetY="4" Sticky="true" Animation="Slide"

Position="BottomRight" RelativeTo="Element" Skin="Web20">

<b><asp:Label Font-Underline="True" id="lbl0" Width="100%" text="Competency Description" runat="Server"/></b><br /><br />

<asp:Label Width="100%" text='<%# "<b>Competency Name</b> : " & Eval("CompetencyName")%>' runat="Server"/><br />

<asp:Label Width="100%" text='<%# "<b>Category Name</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : " & Eval("CatogeryName") %>' runat="Server"/><br />

<asp:Label Width="100%" text='<%# "<b>Description</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : " & Eval("CompetencyDesc") %>' runat="Server"/><br />

<asp:Label Width="100%" text='<%# "<b>Skill Type</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : " & Eval("SkillTypeName") %>' runat="Server"/><br />

<asp:Label Width="100%" text='<%# "<b>Skill Level Type</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : " & Eval("SkillLevelType") %>' runat="Server"/><br />

</telerik:RadToolTip>

<!-- end of pop up control for displaying info -->

</ItemTemplate>

</telerik:GridTemplateColumn>

<telerik:GridBoundColumn DataField="CatogeryName" HeaderText="CategoryName"

SortExpression="CatogeryName" UniqueName="CatogeryName">

</telerik:GridBoundColumn>

etc....

Is there any solution to sort it out. The thing is i want the tooltip to be displayed exactly at the bottom right of a row column in IE6 too.

Thanks,
Sandeep.M
Svetlina Anati
Telerik team
 answered on 25 Jun 2008
Narrow your results
Selected tags
Tags
+? more
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Shiori
Top achievements
Rank 2
Iron
Tien
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Rob
Top achievements
Rank 4
Bronze
Bronze
Iron
Geoff
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?