Telerik Forums
UI for ASP.NET AJAX Forum
7 answers
186 views
I am adding a RadGrid to a Panel that is initially non visible (display=none). I am doing this because the grid is in a popup control that will be programatically displayed later.

The height of the grid is about 10 pixels. I see lots of forum posts about this issue that has been "fixed" in the last version. I guess it is fixed but not quite.

More info: the grid is in a panel that is the popup control for a PopupControlExtender. If the panel is visible at load, the contents flash on the screen before the extender hides it. So setting display=none avoids this flashing.

It is only the wrong size if the height is specified, and scolling is enabled. If scrolling is enabled without the height, the height is a little smaller than the height of the contents - causing both scroll bars to apprear. I have a test project read to go if you want me to open a ticket.

Thanks
Sandeep Verma
Top achievements
Rank 1
 answered on 25 Jul 2008
3 answers
265 views
I have this situation and want to find out what is the best solution:

I need some menu links to open the radwindow directly. I have put the rad-menu in a user control and the user control is included in my master page. Where should I put the WindowManager - in Master Page or in Menu user control?

Some of my pages that are opened directly in the browser may contain their own child radwindows too. So, will there be conflict if they also have radwindow manager too along with having window manager in master page / menu user control?

Let me know what is the best approach!

Thanks,
Piyush Bhatt






KevinMc
Top achievements
Rank 1
 answered on 25 Jul 2008
4 answers
121 views
Hi,

I am dynamically building raddock zones and rad dock objects with client commands on the dock object.

I have recently upgraded to FireFox 3 and the rad dock OnClientCommands no longer work, I just get syntax errors, or upon modifying the javascript of my client commands - the first client command runs on page load without anything being clicked then I get loads of JS errors!

Can anybody help with this? I have multipule client sites running with this code and I'm pulling my hair out.

Thanks!
Jacques Woolston
Top achievements
Rank 1
 answered on 25 Jul 2008
1 answer
263 views
I was trying to follow the tutorial to bind the radgrid for the Hierarchy. The tutorial shows binding with Access data source, i am binding with Sql server data source. When i give where calsue in the datasource configuration wizard, it does not show me the details table. If i take off the where clause it shows all records of details table, even though i have set the relation between child and parent table.

please advice.
Thanks
Mona
Daniel
Telerik team
 answered on 25 Jul 2008
4 answers
103 views
I have a column in my grid that I have changed the text to (something like) "<a href='#'>blah</a>" and the ExportToPdf no longer works. Sometimes it gives an xml error, sometimes it just produces a 0 byte pdf.

I notice that if you just make the contents "<" the same thing happens. Looks like the converter is just assuming that the column values are plain text!

My columns contain data that must be a valid link that the user can click on.

Please advise.

Thanks
Nikolay Rusev
Telerik team
 answered on 25 Jul 2008
1 answer
355 views
Hi,

i want to know how i can attach a Axis Item to a series item. This is my sample code. If you execute this u'll see that ... the axis items get added up in the x-axis.. but the series item is not rendered according to the x-axis value.

I am creating the radchart dynamically

My Code:

 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);
 

              
                IDictionary<DateTime, int> newcmcValues = new Dictionary<DateTime, int>();
                newcmcValues.Add(DateTime.Today.Date, 75);
                newcmcValues.Add(DateTime.Today.AddYears(3).Date, 22);
                newcmcValues.Add(DateTime.Today.AddYears(5).Date, 26);
                newcmcValues.Add(DateTime.Today.AddYears(8).Date, 43);
  
               

                BuildChart(newcmcValues,cmcValues, "Survey1", "Line");
            }
      

private void BuildChart(IDictionary<DateTime, int> CValues, IDictionary<DateTime, int> CVals, string chartName, string chartType)
        {
            RadChart rChart = new RadChart();
            double stepDate = CValues.ElementAt(1).Key.ToOADate();
            rChart.ChartTitle.TextBlock.Text = "";

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

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

            foreach (KeyValuePair<DateTime, int> kvp in CValues)
            {
                csItem = new ChartSeriesItem();
                csItem.YValue = kvp.Value;
               
                cAxisItem = new ChartAxisItem();
                cAxisItem.TextBlock.Text = kvp.Key.ToShortDateString();
                rChart.PlotArea.XAxis.Items.Add(cAxisItem);

                cSeries.AddItem(csItem);               
            }

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

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

                cSeries1.AddItem(csItem1);
            }
           

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

            rChart.PlotArea.XAxis.Appearance.MajorGridLines.Visible = false;
            //rChart.PlotArea.Appearance.Dimensions.Margins = "18%, 24%, 22%, 10%";
            rChart.PlotArea.Appearance.Dimensions.Margins.Bottom.Value = 25;
            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);
            rChart.AddChartSeries(cSeries1);

           

            divRadCharts.Controls.Add(rChart);

        }
Ves
Telerik team
 answered on 25 Jul 2008
3 answers
204 views

Hi,

I am using my own RadWindow to add and edit Appointments and that is all working fine.  However, when I pass the date and time double clicked to the RadWindow, it's an hour out.

The javascript:

var

start = formatDate(eventArgs.get_startTime());

seems to be returning 15:00 when I am clicking on 14:00.

Is this to do with UTC time and, if it is, how do I get it to consistently return the correct time?  I am assuming (maybe wrongly) that this is caused because I am in the UK and we are currently British Summer Time which is one hour offset. 

What can I do to make sure this is passed as the correct time I clicked on, Summer and Winter, and what happens if the app is used somewhere else in the world?

David Penny

David Penny
Top achievements
Rank 2
 answered on 25 Jul 2008
1 answer
117 views
Hi All,

I am using radControl asp.net Q1 2008 control

I am using RadtoolBar and radGrid,radajaxmanager
Radtool bar contain 2 button as btnrefresh and btnexport.

   <telerik:RadAjaxManager ID ="radAjaxManagerAdvSearch" runat ="server" DefaultLoadingPanelID="radLoadingPnl">
            <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID ="btnrefresh" >
            <UpdatedControls >
            <telerik:AjaxUpdatedControl ControlID ="dgAdvSearch" LoadingPanelID ="radLoadingPnl" />
            </UpdatedControls>
            </telerik:AjaxSetting>
                       
            <telerik:AjaxSetting AjaxControlID ="dgAdvSearch" >
            <UpdatedControls >
            <telerik:AjaxUpdatedControl ControlID ="dgAdvSearch" LoadingPanelID ="radLoadingPnl" />
            </UpdatedControls>
            </telerik:AjaxSetting>
            </AjaxSettings>
            </telerik:RadAjaxManager>
           
           
           
            <telerik:RadAjaxLoadingPanel ID="radLoadingPnl"  runat="server" BackColor="Control" Transparency="15" >
     <asp:Image ID="imgCustom1" runat="server"
                    ImageUrl="~/images/loadingFinal.gif" />
    </telerik:RadAjaxLoadingPanel>

Query
I want to show loading panel on grid when click on refresh button of radtoolbar.
Currently it not showing loading panel on btnrefresh click.

Thanking You
Paul
Telerik team
 answered on 25 Jul 2008
4 answers
138 views

We have a splitter set up with 3 panes, and after a couple postbacks the panes get "locked" ...  collapse/expand state also gets corrupted between postbacks.


Repro:

  1. Collapse and expand the left pane
  2. Click the "refresh page" button
  3. Notice left splitter is "locked" and no longer resizable or collapsable
  4. Click the "refresh page" button again
  5. Notice now that the left pane collapses itself for some reason


Here's a repro page source:

<%@ Page Language="C#" AutoEventWireup="true"  %> 
 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI"  %> 
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
 
<html xmlns="http://www.w3.org/1999/xhtml">  
<head runat="server">  
    <title>Telerik Splitter Test</title>     
</head> 
<body> 
    <form id="form1" runat="server">  
      
        <asp:ScriptManager ID="DefaultScriptManager" runat="server" /> 
        <asp:Button ID="btn_Refresh" runat="server" Text="Refresh Page" CssClass="command_button"  /><br /><br /> 
    <div height="100%" > 
    <telerik:RadSplitter id="RadMainSplitter"  runat="server" width="100%" height="500"   > 
 
        <telerik:RadPane id="LeftPane" runat="server" width="260"  > 
          
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse dictum sapien et mauris. Suspendisse malesuada cursus est. Sed ante dolor, lacinia a, porta   
          
        </telerik:RadPane> 
 
        <telerik:RadSplitBar id="LeftSplitBar" runat="server" collapsemode="Forward"   ></telerik:RadSplitBar> 
        <telerik:RadPane id="CenterPane" height="100%" runat="server" > 
 
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse dictum sapien et mauris. Suspendisse malesuada cursus est. Sed ante dolor, lacinia a, porta   
          
        </telerik:RadPane> 
        <telerik:RadSplitBar id="RightSplitBar" runat="server" collapsemode="Backward"  ></telerik:RadSplitBar> 
        <telerik:RadPane id="RightPane" runat="server" Width="160" Visible="true" > 
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Suspendisse dictum sapien et mauris. Suspendisse malesuada cursus est. Sed ante dolor, lacinia a, porta   
          
        </telerik:RadPane> 
 
    </telerik:RadSplitter> 
      
    </div> 
    </form> 
</body> 
</html> 
Z
Top achievements
Rank 1
 answered on 25 Jul 2008
1 answer
146 views
Hi,
I have a link button inside the Appointment Template, and have 2 appointment for a day. How can I  get the ID of  the clicked appointment in the link button's onclick event?

Regards
Sudheep

Simon
Telerik team
 answered on 25 Jul 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?