Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
186 views
Hi Telerik,

I want to Traversing my RadGrid, can you please give me some demo running project. Thanks
Shinu
Top achievements
Rank 2
 answered on 08 Jun 2010
3 answers
126 views
Anyone who's interested - try this test page (a cut-down of my original problem page):

http://access.videoezy.com.au/LSM/TestTemplate.aspx

Play with the 'Stores' DDL a couple of times - do you get a Loading Panel that stays on?

This only happened when I went from the 2007 controls (Telerik's own Ajax) to the 2010 controls (v2010.1.309.20).
It uses an RadAjaxMgr on the page...the Stores DDL is a User Control, using Dynamic Invoke of a method on the main page.
ALL Ajax assignments in the main page are dynamic... the table below the DDL is all dynamic controls (constructed from metadata).
There is NO Ajax assignment inside the User Control.

To try and resolve this, I have tried the use of ResponseStart and ResponseEnd JS functions, and then debugging the script to trace this: on debug, I saw this sequence:
  1. I changed the Store DDL setting
  2. program reaches the breakpoint in RequestStart;
  3. press F5 to continue, and the loading panel appears....(ok)
  4. .. and the program reaches the breakpoint in ResponseEnd
  5. press F5 to continue, and PART of the loading panel (or one of the two panels) disappears - i.e.part of (or one of the two) the loading panel remains stuck 'on'.

Have a support ticket open, but we're getting nowhere. One problem may be that the support person doesn't see this issue when she tries it - but I do and my clients do!

Happens in IE and in FF too.

Any insights?
Steve
Steve Bywaters
Top achievements
Rank 1
 answered on 08 Jun 2010
6 answers
163 views
I am using ListView with paging to display photos, and jquery lightbox js to display the photos when clicked.
On the first page the photos display using the lightbox, but when i click next the photos wont display right, like the js is not loaded.
The ListView is inside asp:Panel control, and the panel is handled by AjaxManager.
Any ideas?
Vasja Petkovska
Top achievements
Rank 1
 answered on 08 Jun 2010
1 answer
185 views
Hi,

I'm having an issue with the RadChart.Series collection when performing a drilldown operation utilizing the Click event.

I'm able to perform the operation without any issues if I have drilldown target chart on the webpage (just discretely placed) and just copy its series to the primary chart, however, this seems like cheating.

My goal is to have pie charts that can drill into more detail per click. They are currently using different SQLDataSources.

My problem is that when I drilldown to the secondary chart, only the first datarow appears to be populating the chart. The datasource is working correctly as I have another chart setup ( as mentioned above ) to check the results. I believe there is an attribute that I am missing or not overriding correctly and would appreciate any assistance in locating it.

Attached: (1) Before, (2) After, (3) Target goal. (Had to black out the labels due to privacy)

Here's the code behind:

protected void RadChart2_Click(object sender, Telerik.Charting.ChartClickEventArgs args)  
        {  
                      
            if (args.SeriesItem != null)  
                if (args.SeriesItem.Parent.Name == "a1")  
                {  
                     
                        //Switch chart to b1  
 
                        RadChart2.Series[0].Clear();  
                        RadChart2.PlotArea.XAxis.DataLabelsColumn = "bX1";  
 
                        RadChart2.Series[0].DataLabelsColumn = "bX1";  
                        RadChart2.Series[0].DataXColumn = "bX1";  
                        RadChart2.Series[0].DataYColumn = "bY1";  
                        RadChart2.PlotArea.XAxis.DataLabelsColumn = "bX1";  
                        RadChart2.Series[0].Name = "b1";  
 
                        RadChart2.ChartTitle.TextBlock.Text = args.SeriesItem.Name  
                            + " b1";  
                        RadChart2.DataSourceID = "datasourceB1";  
 
                }  
                else if (args.SeriesItem.Parent.Name == "b1")  
                {  
                 //Switch chart to a1  
                      
                    RadChart2.Series[0].Clear();  
                    RadChart2.PlotArea.XAxis.DataLabelsColumn = "aX1";  
                      
                    RadChart2.Series[0].DataLabelsColumn = "aX1";  
                    RadChart2.Series[0].DataXColumn = "aX1";  
                    RadChart2.Series[0].DataYColumn = "aY1";  
                    RadChart2.Series[0].DefaultLabelValue = "#Y";  
                    RadChart2.Series[0].Name = "a1";  
 
                      
                    RadChart2.ChartTitle.TextBlock.Text = "a1";  
                    RadChart2.DataSourceID = "datasourceA1";  
                 
                }  
               
          
 
        } 
Tim Rankel
Top achievements
Rank 2
 answered on 07 Jun 2010
2 answers
65 views
Hi,Am unable to work with pop-up's.Can u just mail me how to use handlers? Can you just tell me will it work only for single window or will it work for 2 window like if we click on download it will take us to the next page but it is giving the message that "you are trying to open another page that you want to automate. Can you just suggest me how to use this?
Missing User
 answered on 07 Jun 2010
3 answers
117 views
Is it possible to resize items to adjust their start/end dates in month view?


Channa Leang
Top achievements
Rank 1
 answered on 07 Jun 2010
2 answers
186 views
when i use data binding on a objectdatasource entity framework field that is a nullable system64 i get a casting error - is there any tips on handling nullable types for microsoft databinding on this control?
EJ
Top achievements
Rank 1
 answered on 07 Jun 2010
1 answer
109 views
I've got a radgrid that has an OnInsertCommand defined (along with OnItemCommand). I've tried e.Item.Expanded = false from the OnInsertCommand, and it doesn't seem to respond. I've even tried looping through items in the MasterTableView and Expanded=false all of them, and no dice.
Any ideas on how to collapse the insert form from OnInsertCommand programmatically?
Thanks in advance!
tried:
foreach (GridDataItem i in e.Item.OwnerTableView.Items) 
                i.Expanded = false
 
            e.Item.Expanded = false
            RadGrid1.Rebind(); 

Also tried
        protected void RadGrid1_OnItemInserted(object sender, GridInsertedEventArgs e) 
        { 
            e.KeepInInsertMode = false
        } 

but it doesn't even fire that event for whatever reason.
Also tried doing a hard DataBind(), but the control keeps the state (leaves the item insert form open). WTF

Tim
Top achievements
Rank 1
 answered on 07 Jun 2010
2 answers
153 views

I used the below script to remove the padding from the menu items in 2008.Q1.

We recently upgraded to 2008.Q3 and the below doesn't remove the padding, nore can I find any combination that does.

Can you provide the necessary css to remove the menu padding using the Telerik Skin for A3.

Thanks in advance.

<style type="text/css">   
    .RadMenu .rmLink .rmText   
    {    
        font-size:14px;  
        font-weight:normal;  
        padding: 0px 5px;  
    }    
    
</style> 
Tab Alleman
Top achievements
Rank 1
 answered on 07 Jun 2010
1 answer
123 views

I have a page that creates docks programmatically and assigns a custom command to each dock. The custom command uses the OnClientCommand property to set the client-side function that executes when the command is clicked.

The first problem I am having, is that the client-side function is being automatically executed when the docks are loaded. I need the function to be executed only when the user clicks the custom command button.

The second problem is that when I click the custom command button, I get the following script run-time error within the script manager WebResource.axd:

Message: Object doesn't support this property or method
Line: 6
Char: 29366
Code: 0

I am running Telerik RadControls version 2010-1-415. I am using the 3.5 framework .dll inside a 3.5 framework web application using Visual Studio 2010 Professional.

Here is the Web Form code:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadDockTest.aspx.cs" Inherits="TelerikTest.RadDockTest" %> 
 
<!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></title>  
</head> 
<body> 
    <form id="form1" runat="server">  
    <telerik:RadScriptManager ID="RadScriptManager1" Runat="server">  
    </telerik:RadScriptManager> 
 
    <div> 
        <script language="javascript" type="text/javascript">  
        function CustomCommandClick(dockID) {  
            alert("Custom command clicked for dock #" + dockID);  
        }  
        </script> 
          
        <asp:UpdatePanel ID="upRadDocks" runat="server" ChildrenAsTriggers="false" UpdateMode="Conditional">  
            <Triggers> 
                <asp:AsyncPostBackTrigger ControlID="btnLoadDocks" EventName="Click" /> 
            </Triggers> 
            <ContentTemplate> 
                <asp:Button ID="btnLoadDocks" runat="server" Text="Load Docks" OnClick="btnLoadDocks_Click" /> 
 
                <telerik:RadDockLayout ID="rdlRadDocks" runat="server">  
                    <telerik:RadDockZone ID="rdzDynamicDocks" runat="server" Width="800" MinHeight="200">  
                    </telerik:RadDockZone> 
                </telerik:RadDockLayout> 
            </ContentTemplate> 
        </asp:UpdatePanel> 
    </div> 
    </form> 
</body> 
</html> 
 


Here is the class code:


using System;  
using System.Collections.Generic;  
using System.Linq;  
using System.Web;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using Telerik.Web.UI;  
 
namespace TelerikTest  
{  
    public partial class RadDockTest : System.Web.UI.Page  
    {  
        protected void Page_Load(object sender, EventArgs e)  
        {  
 
        }  
          
        /// <summary>  
        /// Creates a new rad dock  
        /// </summary>  
        /// <param name="id">The dock ID</param>  
        /// <returns>A RadDock control</returns>  
        private RadDock CreateRadDock(int id)  
        {  
            //Create the new dock  
            RadDock     dock                    = new RadDock();  
            dock.DockMode                       = DockMode.Docked;  
            dock.UniqueName                     = "rd" + id.ToString();  
            dock.ID                             = dock.UniqueName;  
            dock.Width                          = Unit.Pixel(800);  
 
            //Clear dock commands  
            dock.Commands.Clear();  
 
            //Add the dock commands  
            DockCommand command                 = new DockCommand();  
            command.Name                        = "Custom Command";  
            command.Text                        = "Custom Command";  
            command.OnClientCommand             = "CustomCommandClick('" + dock.UniqueName + "');";  
            dock.Commands.Add(command);  
 
            return dock;  
        }  
 
        /// <summary>  
        /// Load Docks button click event  
        /// </summary>  
        /// <param name="sender"></param>  
        /// <param name="e"></param>  
        protected void btnLoadDocks_Click(object sender, EventArgs e)  
        {  
            //Load the docks  
            for(int i = 0; i <= 4; i++)  
            {  
                //Create a new dock  
                RadDock dock = this.CreateRadDock(i);  
 
                //Add the new dock to the dock zone  
                this.rdzDynamicDocks.Controls.Add(dock);  
            }  
        }  
    }  
Joe Labate
Top achievements
Rank 1
 answered on 07 Jun 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?