Telerik Forums
UI for ASP.NET AJAX Forum
4 answers
134 views
I have radmenu inside a template column of a radgrid, there is a radmenuitem with text "New Event". When this particular radmenuitem is clicked i want to open a radwindow. Is this possible to achieve?
thanks in advance
sf
Top achievements
Rank 1
 answered on 17 Nov 2010
1 answer
78 views
I have a simple RadGrid that I need to export to Excel, Word, PDF and CSV. I've tried many ways found online but none have worked for me.  here is what I have.

1. Master Page contains Microsoft ScriptManager control.
2. Update Panel contains the Content Page.
3. Grid is setup to export. 
4. The columns of the grid are build dinamically like the example before:
column = new GridBoundColumn();
((GridBoundColumn)column).DataField = col.Name;
((GridBoundColumn)column).HeaderText = col.Title;
((GridBoundColumn)column).HeaderStyle.HorizontalAlign = HorizontalAlign.Center;
grid.MasterTableView.Columns.Add(column);

When I try to export for any of the formats, the header text is not visible.

Anyone know how to fix this?
Daniel
Telerik team
 answered on 16 Nov 2010
2 answers
207 views
I have this radgrid that otherwise works as expected.

For the first time I've tried using a footer with aggregate functions.  I really only care about Sum of the last column, but when that didn't work I tried different agg functions on each column as you can see below and they all have the same result, which is to display "Sum : " in the footer (or whatever agg function I selected).

I'm using a datasource that is a list of business objects.  The property ValueChange is a reaonly Decimal.

Below is my mark up and I'm attaching a screen shot.

Can you think of why this might not work?

<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True"
    AutoGenerateColumns="False" DataSourceID="dsTransactionDetails" GridLines="None"
    Skin="WebBlue" Width="812px">
    <MasterTableView DataSourceID="dsTransactionDetails" AllowCustomPaging="True" 
        ShowFooter="True" >
        <Columns>
            <telerik:GridBoundColumn DataField="PhaseCode" HeaderText="PhaseCode" SortExpression="PhaseCode"
                UniqueName="Phase Code" Aggregate="None">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="CategoryCode" HeaderText="CategoryCode" SortExpression="CategoryCode"
                UniqueName="Category Code" Aggregate="Count">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="OldValue" DataType="System.Decimal" HeaderText="Old Value"
                SortExpression="OldValue" UniqueName="OldValue" Aggregate="Min">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="NewValue" DataType="System.Decimal" HeaderText="New Value"
                SortExpression="NewValue" UniqueName="NewValue"  Aggregate="Max">
            </telerik:GridBoundColumn>
            <telerik:GridBoundColumn DataField="ValueChange" DataType="System.Decimal" HeaderText="Change"
                SortExpression="ValueChange" UniqueName="ValueChange" Aggregate="Sum"
            </telerik:GridBoundColumn>
        </Columns>
        </MasterTableView>            
</telerik:RadGrid>
Quinten
Top achievements
Rank 1
 answered on 16 Nov 2010
3 answers
94 views
Hi,
I am using a RadAlert widow to show a warning message through java script. The window shows up fine but if there is a Silverlight (not telerik) control on the page, it shows behind it. I tried chaging the z-index it does not work. I changed the overlay property of RadWindowManager to True but it shows strange behavior. After changing this property, it shows some part on top and some part behind the silverlight control.

Note: The page is dynamically created and the RadWindowManager is added to another custom control dynamically.


Any help in this regard would be appreciated.

Thanks,
-Kashif
Kashif
Top achievements
Rank 1
 answered on 16 Nov 2010
3 answers
116 views
How can one centralize a numeric character in a RadNumericTextBox? By default, the text seems to be lef aligned. I have tried to use

style.value = "text-align:right"   but this does not seem to work.

Hope to hear from someone soon.

Thanks in advance
Jeffrey
Top achievements
Rank 1
 answered on 16 Nov 2010
1 answer
181 views
I have a page with a ContextMenu on it. The ContextMenu has an option where it opens up a RadWindow. Inside the window there are different buttons that close the RadWindow then send back an argument to the page indicating which button was clicked. I then take this argument and using the OnClientClose event on the RadWindow run a javascript function that is supposed to "click" the ContextMenu on the page using the __doPostBack function.

function OnClientclose(sender, eventArgs){
  var arg = eventArgs.get_argument();
  if(arg)
  {
    __doPostBack("'" + RadContextMenu.ClientID.Replace("_", "$") + "'", arg);
  }
}

The ContextMenuItem that is clicked is determined by the argument passed, the argument is either a 0,1, or 3 which is the location of the item in the ContextMenu (see contextmenu.gif). I have checked that the argument being passed back is correct. I have used the __doPostBack function in the past to click on a ContextMenu in exactly the same fashion. I have checked the page source and the ID in the __doPostBack matches the ID of the ContextMenu exactly except all the _ have been replaced by $ which was needed before to have it work. Any ideas why I cannot get it to trigger a "click" this time?

Thanks,
Dan Miller
Cori
Top achievements
Rank 2
 answered on 16 Nov 2010
2 answers
126 views
Can we have this in alphabetical order please?

Making sure that all of the entries in any section are in proper alphabetical order should be a step in the documentation team's QA process. There's not really a good excuse for not doing this, is there?

-- 
Stuart
Stuart Hemming
Top achievements
Rank 2
 answered on 16 Nov 2010
0 answers
482 views
When the RadButton (ButtonType="StandardButton", UseSubmitBehavior="true") is used as an Ajax Trigger for the Ajax manager, the controls affected by the Ajax request are not updated on the client. The issue will be fixed for the upcoming Q3 2010 SP1 release. You can follow the progress of the issue here.

For the time being, please, set the UseSubmitBehavior property to false.

<%@ 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">
<head runat="server">
       <title></title>
</head>
<body>
       <form id="form1" runat="server">
       <asp:ScriptManager ID="ScriptManager1" runat="server">
       </asp:ScriptManager>
       <script runat="server">
              void btnSaveTenplateDefault_Click(object sender, EventArgs e)
              {
                     Label1.Text = DateTime.Now.ToString();
              }
       </script>
       <telerik:RadAjaxManager ID="AjaxManager1" runat="server" UpdatePanelsRenderMode="Inline">
              <AjaxSettings>
                     <telerik:AjaxSetting AjaxControlID="RadButton1">
                           <UpdatedControls>
                                  <telerik:AjaxUpdatedControl ControlID="Label1" />
                           </UpdatedControls>
                     </telerik:AjaxSetting>
              </AjaxSettings>
       </telerik:RadAjaxManager>
       <telerik:RadButton ID="RadButton1" runat="server" Text="Postback" OnClick="btnSaveTenplateDefault_Click"
              UseSubmitBehavior="false">
       </telerik:RadButton>
       <asp:Label ID="Label1" runat="server"></asp:Label>
       </form>
</body>
</html>
Telerik Admin
Top achievements
Rank 1
Iron
 asked on 16 Nov 2010
3 answers
271 views
Hi,

I have a PanelBar inside of a Splitter/Pane configuration that loads its data from an XML file. I want the PanelBar to postback the selected item so that codebehind can act on it and load additional things on the form. To do this smoothly, I'm trying to implement AJAX via either the Manager or Panel, but I'm getting the following error when clicking on items in the PanelBar:

Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12030

Sometimes the error number is 404 instead of the 12030. If I take AJAX out of the form, the error goes away but the screen flicker comes back. My form code is:

<%@ Page AutoEventWireup="false" CodeFile="Administration.aspx.vb" Inherits="JHU.APL.BCSD.TST4.AISDStaffTool.Website.Administration" 
    Language="VB" MasterPageFile="~/MasterPages/AISDStaffTool.master" Title="AISD Staff Development Tool - Administration" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" runat="Server">  
    <telerik:RadSplitter ID="spltAdmin" runat="server" Orientation="Vertical" Width="100%" 
        Height="100%" Skin="Web20">  
        <telerik:RadPane ID="panePanelBar" runat="server" Width="20%" Height="100%">  
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px">  
                <telerik:RadPanelBar ID="pnbActions" runat="server" Width="100%" Height="100%" Skin="Vista" 
                    DataSourceID="xdsPanelBar" DataTextField="Text" DataValueField="Value">  
                    <CollapseAnimation Duration="100" Type="None" /> 
                    <ExpandAnimation Duration="100" Type="None" /> 
                </telerik:RadPanelBar> 
            </telerik:RadAjaxPanel> 
        </telerik:RadPane> 
        <telerik:RadSplitBar ID="splbActions" runat="server" /> 
        <telerik:RadPane ID="paneAdminDetails" runat="server" Height="100%" Width="80%">  
        </telerik:RadPane> 
    </telerik:RadSplitter> 
    <asp:XmlDataSource ID="xdsPanelBar" runat="server" DataFile="~/App_Data/AdminPanelBar.xml" 
        XPath="/Items/Item"></asp:XmlDataSource> 
</asp:Content> 
 

Can anyone tell me how to get this to stop? I'm using Q1 2008 FUTURES.

Thanks!
Nikolay Tsenkov
Telerik team
 answered on 16 Nov 2010
1 answer
103 views
This page in the TreeView Docs has a typo.

The section that reads true if child nodes will be checked (checked) when the user checks (unchecks) their parent node; otherwise, false. The default value is false

should read true if child nodes will be checked (unchecked) when the user checks (unchecks) their parent node; otherwise, false. The default value is false

This error is duplicated in the installed help.

-- 
Stuart
Yana
Telerik team
 answered on 16 Nov 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?