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

Hello..
I need to know if i am doing something wrong with the marked zone at radchart.-
But i have a little problem.
If i set the DataLabelsColumn, the Markedzone doesn´t work, but if i comment this line everithing is ok with the markedzone.
The line is this -->RadChart1.PlotArea.XAxis.DataLabelsColumn = "DiasMes";


RadChart1.DataSource = dt;

RadChart1.PlotArea.XAxis.DataLabelsColumn =

"DiasMes";

 

RadChart1.DataBind();

 

foreach (ChartSeries oSerie in RadChart1.Series)

 

{

oSerie.Type =

ChartSeriesType.StackedArea;

 

oSerie.Appearance.LabelAppearance.Visible =

false;

 

 

}

 

 

 

ChartMarkedZone oMZ = new ChartMarkedZone();

 

oMZ.ValueStartX = 10;

oMZ.ValueEndX = 12;

oMZ.Appearance.FillStyle.MainColor = System.Drawing.

Color.Red;

 

RadChart1.PlotArea.XAxis.LabelStep = 1;

RadChart1.PlotArea.XAxis.MinValue = 1;

RadChart1.PlotArea.XAxis.MaxValue = MaxDayOfMonth;//int Value

RadChart1.PlotArea.MarkedZones.Add(oMZ);

RadChart1.DataBind();

Fabian Raul Jofre
Top achievements
Rank 2
 answered on 17 Sep 2009
1 answer
147 views
Hi,

Im trying to implement the inputmanager (numeric) against a grid with Autogenerated columns and it isnt working.  Is this supported?

I have Tried:

defining the target control as the radgrid in the input manager

attaching the uniqueID of the input controls in the grid (auto generated inplace edit mode) to the input manager

attaching the ClientID of the input controls in the grid (auto generated inplace edit mode) to the input manager


The Grid I have:

Is a auto generated grid to show pivot data and all the rows in the grid are in edit mode as the grid loads

Thanks
Sebastian
Telerik team
 answered on 17 Sep 2009
2 answers
105 views
I've run across a minor glitch with setting window height/width in ie7 and wondering if anyone can assist.

We have a ChangePage function that basically opens a new radwindow to a specified URL or changes the url of the radwindow that is currently open if one exists. I need the window to shrink to the 'aov' size if it comes from another location where the window is larger. This appears to work fine in FF and IE8, but in IE7 it is shrinking the height, but not the width. If I then click the refresh button on the radwindow, it will resize properly...but won't be centered.

function ChangePage(FileName, qty)  
   if (window.frameElement) { 
        // Redirect 
        GetRadWindow().SetUrl(FileName);     
         
        var curWidth = GetRadWindow().get_width(); 
        // Coming from Pers to AOV - shrink window 
        if (curWidth > 700 && FileName.indexOf("aov") > -1) { 
            GetRadWindow().set_width(645); 
            GetRadWindow().set_height(600); 
            GetRadWindow().center(); 
        } 
        // Coming from AOV to Pers - expand window 
        if (curWidth < 700 && FileName.indexOf("aov") == -1) { 
            GetRadWindow().set_width(1000); 
            GetRadWindow().set_height(850); 
            GetRadWindow().center(); 
        }            
    } else { 
        // Going to AOV or Pers check 
        if(FileName.indexOf("aov") > -1) { 
            openRadWindow(FileName,600,645,1,0,1,1,qty); 
        } else { 
            openRadWindow(FileName,850,1000,1,0,1,1,qty); 
        } 
    } 
 
 
function GetRadWindow()  
{     
    var oWindow = null
     if (window.radWindow) oWindow = window.radWindow;  
     else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
         
     oWindow.SetModal(true); 
     return oWindow; 
}  

Fiko
Telerik team
 answered on 17 Sep 2009
2 answers
370 views
Hello,

I have a grid which I have configured with a Fixed Table Layout.
There are some cells which contain data which expand beyond the width of the grid and are thereby truncated as is expected.

The grid uses a Web User Control for an edit form.
When in edit mode the edit form displays properly, but the row that pertains to the data to be edited contains the columns with large amounts of data spilling over to the the adjacent cells.

I have been able to duplicate this behavior using one of your demos: UserControlEditForm simply by updating the following code:

<MasterTableView Width="100%" CommandItemDisplay="Top" TableLayout="Fixed" DataKeyNames="EmployeeID">

 


Is there anyway to apply the truncated behavior to the column data for the row being edited when in edit mode?

Thanks,
Jon
Jon
Top achievements
Rank 1
 answered on 17 Sep 2009
5 answers
416 views
Hi all,

After a lot of coffee, angry users, and frustration at finding the dialogs for the Q1 2009 SP2 working great on my development machine, but not on IIS 7, I finally found the solution to the problem.  Now, if you search these forums, you will find other possible problems that might be applicable to you.  For example, you might need to change the dialoghandler.aspx references under system.webServer in your web.config to dialoghandler.axd.  That seems to have helped some.

In my case, however, none of the solutions I tried on the forums made a dent.  It wasn't until I tried loading the dialogs from the editor while logged in to the web server, where I have failed request tracing enabled (which only displays detailed information if you're accessing your site locally). 

Turns out, if you have request filtering enabled, and you have a maximum querystring length set to, say, the neighborhood of 500, the web server will truncate that gigantic querystring that the dialogs are passed by the editor (and, I'm assuming, other controls). 

To see if this is what you are running into, and to resolve it if it is, do the following:

1.  Open notepad as an administrator.
2.  Open applicationHost.config in c:\windows\system32\inetsrv\config
3.  Do a search for maxUrl and maxQueryString.  They'll be under the requestFiltering section of the file, in the requestLimits node.

For me, setting the maxQueryString to 1000 did the trick.  maxUrl will need to be at least that, since it'll include host and path information, as well.

For me, the worst part was that ASP.Net wasn't ever getting the error since the request was being trapped by a native module higher up the food chain, and as far as I knew, it was a simple 404.  Turns out it was a 404.something else, a .13 I think.

Anyway, I hope this helps someone butting heads with the problem.  Yesterday was pretty stressful for me.  GP's a high-load site with a lot of members that expect I won't break stuff with every push!  =)
Steve
Top achievements
Rank 2
 answered on 17 Sep 2009
2 answers
97 views
Hi guys,

I have a tree view and I use a call to Expand only the first level so the user can see the first node expended.

IE, Safari and Chrome do not see RadTreeView only FF and Opera

What am I doing wrong here?

code:

The RadTreeView

<telerik:RadTreeView ID="RadTreeView" runat="server" OnNodeDataBound="RadTreeView_NodeDataBound"
    OnClientNodeClicked="onClientNodeClickedHandler" OnClientMouseOver="onClientMouseOverHandler"
    CheckBoxes="false" CheckChildNodes="false" MultipleSelect="true" TriStateCheckBoxes="false"
    SingleExpandPath="true" BorderColor="LightGray" BorderWidth="0">
</telerik:RadTreeView>

The call

$(document).ready(function() {
   // expand until level
   treeExpandNodes(0);
});

   function treeExpandNodes(level) {
      var treeView = $find('<%= RadTreeView.ClientID %>');
      if (treeView != null) {
         var nodes = treeView.get_allNodes();

         for (var i = 0; i < nodes.length; i++) {
            if (nodes[i].get_nodes() != null) {
               if (nodes[i].get_level() <= level)
                  nodes[i].expand();
               else
                  nodes[i].collapse();
            }
         }
      }
      else
         alert('Why is it null?'); // only in FF and Opera this alert is not called!
   }

image of the output in the 4 browsers

Veselin Vasilev
Telerik team
 answered on 17 Sep 2009
1 answer
200 views
Hi,

 i am displaying graphs using radcharts.I want to export these graphs into excel/word/pdf.

Please tell me how to do it?

Thanks for your replies.




Schlurk
Top achievements
Rank 2
 answered on 17 Sep 2009
6 answers
182 views
Hi,

I have a situation where i have 2 listboxes with transfer enabled.  In one of the listboxes i have an ItemDatabound handler where in a certain condition the item is in the listbox but disabled.  When i use the transfer all button it will transfer everything including the disabled items.  I tried code in handling the Transferring that would remove the items from the args.Items but it tells me it cant because its a fixed size collection.

Is there anyway at the transferring handler i can remove the specific items i dont want transferrable while still transferring the rest?
Genady Sergeev
Telerik team
 answered on 17 Sep 2009
4 answers
170 views
Hi,

Using the standard RadTreeView examples (.NET35, Ajax RadView Q2 2009).
I can set event handlers fine in the markup, but as soon as I try to set an event handler in a callback, it doesn't work.

For example, the following does not work:
.aspx:
    <telerik:RadTreeView ID="RadTreeView2" Skin="Black"
        OnNodeExpand="RadTreeView2_NodeExpand"
        runat="server">... </telerik:RadTreeView>

.cs:


    protected void RadTreeView2_NodeExpand(object sender, RadTreeNodeEventArgs e)
    {
            RadTreeView2.EnableDragAndDrop = true;
            RadTreeView2.NodeDrop += new RadTreeViewDragDropEventHandler(this.RadTreeView2_NodeDrop);
    }
   private void RadTreeView2_NodeDrop(object sender, RadTreeNodeDragDropEventArgs e) {}



any idea why? I thought it was perhaps a view state problem, but enabling it explicitly didn't change anything.

If I put the handler assignment in the Page_Load or Page_Init, it works.

In short: what do I need to do to dynamically enable/disable drag-drop features on nodes?

Thanks!
R





Vesko
Top achievements
Rank 2
 answered on 17 Sep 2009
2 answers
160 views
Greetings

i have a RadPaneBar with a RadComboBox inside
and want to fill the combobox at runtime
for example:
     dim cmb as RadComboBox = ctype(RadPanelBar.parent.findcontrol("Comboname"),RadComboBox)
     dim a as integer
     for a = 1 to 30
        cmb.items.add(new RadComboBoxItem(a,a))
    next

and gave me this error

"Object reference not set to an instance of an object"


please help
thanks
Luis
Luis
Top achievements
Rank 1
 answered on 17 Sep 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?