Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
79 views
Hello,

I am trying to do a number of things with a RadComboBox and RadAsyncUpload inside a RadWindow:

<telerik:RadWindowManager ID="RadWindowManager1" Behaviors="Close" runat="server"
    Modal="true" Width="900px">
    <Windows>
        <telerik:RadWindow ID="RadWindowApprove" runat="server">
            <ContentTemplate>
                <h3>
                    Approve Supplier Agreement</h3>
                <table>
                    <colgroup>
                        <col class="first-column" />
                    </colgroup>
                      <tr>
                        <td>
                            Document:
                        </td>
                        <td>
                            <telerik:RadComboBox ID="RadComboBoxDocument" runat="server" EmptyMessage="Choose an existing SPA" AllowCustomText="true">
                            </telerik:RadComboBox>  
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td>or upload a new one</td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><telerik:RadAsyncUpload ID="RadAsyncUploadDocument" runat="server" ControlObjectsVisibility="None"
                                MultipleFileSelection="Disabled" MaxFileInputsCount="1" AllowedFileExtensions="pdf" OnClientFileUploaded="FileUploaded">
                            </telerik:RadAsyncUpload></td>
                    </tr>
                </table>
                <telerik:RadScriptBlock ID="RadScriptBlock1" runat="server">
                    <script type="text/javascript">
                //<![CDATA[
  
                        // File selected so remove any uploaded files
                        function FileSelected(sender, args) {
  
                            var fileUpload = $find('<%=  RadAsyncUploadDocument.ClientID %>');
                            var inputs = fileUpload.getUploadedFiles();
  
                            for (i = inputs.length - 1; i >= 0; i--) {
                                fileUpload.deleteFileInputAt(i);
                            }
                        }
  
                        // File uploaded so unselect any selected file
                        function FileUploaded(sender, args) {
  
                            var combo = $find('<%=  RadComboBoxDocument.ClientID %>');
                            alert(combo.get_selectedItem().get_text());
  
                            combo.clearSelection();
                        }
  
                    //]]>
                </script>
                </telerik:RadScriptBlock>
                  
            </ContentTemplate>
        </telerik:RadWindow>
    </Windows>
</telerik:RadWindowManager>

The problem is that in my FileSelected function, no files are returned for getUploadedFiles() and in my FileUploaded function getSelectedItem() is null.

Can anyone tell me why this is?  Am I doing anything wrong?

Thanks,
Jo
Genady Sergeev
Telerik team
 answered on 17 Feb 2011
6 answers
557 views
Hi,
 I've installed version 5.8.0.0 and have found that the image editor increases the size of the image when cropping an original image. Is there a way to change the image quality setting on cropping so that it doesn't increase in size? Theoretically, the cropped image should be MUCh smaller than the original image.

Thanks,
Jason.
Jason Brownhill
Top achievements
Rank 1
 answered on 17 Feb 2011
3 answers
439 views
I've look through all the examples on the forum and can't get my grid height and width to size dynamically.

Here is my code.

<asp:Panel ID="Panel1" runat="server" Height="100%" Width="100%"
             <telerik:RadGrid ID="grdProducts" runat="server" Skin="DMID" EnableEmbeddedSkins="False"
           AutoGenerateColumns="False" GridLines="None" GroupingEnabled="False" OnLoad="grdProducts_Load"
           OnPreRender="grdProducts_PreRender"  PageSize="5" AllowPaging="True" 
       AllowSorting="True" Width="99%">
           <HeaderContextMenu EnableEmbeddedSkins="False" CssClass="GridContextMenu GridContextMenu_DMID">
           </HeaderContextMenu>
           <MasterTableView NoMasterRecordsText="No Products available." TableLayout="Fixed" DataKeyNames="ProductID" >
                              <CommandItemSettings ExportToPdfText="Export to Pdf" />
                              <RowIndicatorColumn FilterControlAltText="Filter RowIndicator column">
               </RowIndicatorColumn>
               <ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column">
               </ExpandCollapseColumn>
               <Columns>
                   <telerik:GridBoundColumn FilterControlAltText="Filter ID column" HeaderText="ID"
                       ReadOnly="True" SortExpression="ProductID" UniqueName="ProductID" DataField="ProductID" HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="60px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter Lot column" HeaderText="Lot #"
                       ReadOnly="True" SortExpression="Lot" UniqueName="Lot" DataField="Lot" HeaderStyle-HorizontalAlign="Center"   HeaderStyle-Width="60px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter Description column" HeaderText="Investigational Agent<br/>Description"
                       ReadOnly="True" SortExpression="Description" UniqueName="Description" DataField="Description" HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="100px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter UnitDosage column" HeaderText="Unit Dosage"
                       ReadOnly="True" SortExpression="UnitDosage" UniqueName="UnitDosage" DataField="UnitDosage" HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="75px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter ShipUnit column" HeaderText="Shipping<br/>Unit"
                       ReadOnly="True" SortExpression="ShipUnit" UniqueName="ShipUnit" DataField="ShipUnit" HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="75px" >
                                          </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter Expire column" HeaderText="Expiration Date<br/>(mm/dd/yyyy)"
                       ReadOnly="True" SortExpression="Expire" UniqueName="Expire" DataType="System.DateTime"
                       DataField="Expire" DataFormatString="{0:d}"  HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="80px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter UnitsAvailable column" HeaderText="Units<br/>Available"
                       SortExpression="UnitsAvailable" UniqueName="UnitsAvailable" DataType="System.Int32"
                       DataField="UnitsAvailable"  HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="50px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataType="System.Int32" FilterControlAltText="Filter uRequested column"
                       HeaderText="Units<br/>Requested" SortExpression="URequested" UniqueName="uRequested"
                       DataField="URequested" HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="50px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn DataType="System.Int32" FilterControlAltText="Filter UApproved column"
                       HeaderText="Units<br/>Approved" UniqueName="UApproved" DataField="UApproved"
                       SortExpression="UApproved"  HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="50px" >
                   </telerik:GridBoundColumn>
                   <telerik:GridBoundColumn FilterControlAltText="Filter UShipped column" HeaderText="Units<br/>Shipped"
                       ReadOnly="True" SortExpression="UShipped" UniqueName="UShipped" DataType="System.Int32"
                       DataField="UShipped"  HeaderStyle-HorizontalAlign="Center"  HeaderStyle-Width="50px" >
                   </telerik:GridBoundColumn>
               </Columns>
               <EditFormSettings>
                   <EditColumn InsertImageUrl="Update.gif" UpdateImageUrl="Update.gif" EditImageUrl="Edit.gif"
                       CancelImageUrl="Cancel.gif" FilterControlAltText="Filter EditCommandColumn column">
                   </EditColumn>
               </EditFormSettings>
           </MasterTableView>
           <ClientSettings Scrolling-AllowScroll="true" EnableRowHoverStyle="true" Selecting-AllowRowSelect="true">
               <Resizing AllowColumnResize="true" />
               <Scrolling AllowScroll="true" UseStaticHeaders="true"  />
           </ClientSettings>
           <FilterMenu EnableImageSprites="False" EnableEmbeddedSkins="False">
           </FilterMenu>
       </telerik:RadGrid>
   </asp:Panel>
Pavlina
Telerik team
 answered on 17 Feb 2011
1 answer
99 views
The code below shows two RadComboBox instances. The first is configured and bound within PageLoad. The second is bound within an AJAX request.

Javascript and styles work fine on both comboboxes before clicking on the button. After clicking on btnShow the second combo box has the expected data, but, styling and client side response is disabled.

What am I doing wrong?

ASPX file
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default2" %>
  
<!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">
      <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            <Scripts>
                <%--Needed for JavaScript IntelliSense in VS2010--%>
                <%--For VS2008 replace RadScriptManager with ScriptManager--%>
                <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.Core.js" />
            </Scripts>
        </telerik:RadScriptManager>
      <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
          <telerik:AjaxSetting AjaxControlID="btnShow">
            <UpdatedControls>
              <telerik:AjaxUpdatedControl ControlID="ajaxPanel1" LoadingPanelID="radLoadingPanel" />
            </UpdatedControls>
          </telerik:AjaxSetting>
        </AjaxSettings>
      </telerik:RadAjaxManager>
  
      Populated in Page Load
      <hr />
      <telerik:RadComboBox ID="cbPageLoad" runat="server" Width="300"></telerik:RadComboBox>
  
      <p> </p>
      <p> </p>
        <asp:Button runat="server" ID="btnShow" Text="Populate From Ajax Call" 
          OnClick="btnShow_Click" />
      <hr />
  
      <div>
        <telerik:RadAjaxLoadingPanel ID="radLoadingPanel" runat="server" />
        <telerik:RadAjaxPanel ID="ajaxPanel1" runat="server" >
            <telerik:RadComboBox ID="cbAjax" runat="server" Width="300px"></telerik:RadComboBox>
        </telerik:RadAjaxPanel>
      </div>
    </form>
</body>
</html>


ASPX.CS File
public class Foo
{
    public string Text {get; set;}
    public string Value {get; set;}
  
    public Foo(string text, string value)
    {
        Text = text;
        Value = value;
    }
  
    public static Foo[] GetData()
    {
        return new Foo[] { 
            new Foo("Bar 1", "V1"), 
            new Foo("Bar 2", "V2"), 
            new Foo("Bar 3", "V3"), 
            new Foo("Bar 4", "V4")};
          
    }
}
  
public partial class Default2 : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindCB(cbPageLoad);
        }
    }
  
  
    protected void BindCB(RadComboBox cb)
    {
        cb.DataTextField = "Text";
        cb.DataValueField = "Value";
        cb.DataSource = Foo.GetData();
        cb.DataBind();
    }
  
    protected void btnShow_Click(object sender, EventArgs e)
    {
        BindCB(cbAjax);
    }
  
}

Helen
Telerik team
 answered on 17 Feb 2011
3 answers
336 views
Hello,

So far I've found the threads here invaluable in the month that I have been using Telerik controls. Unfortunately I find myself in a situation where I cannot find an answer in an existing thread although I've tried to piece some solutions together.

I am using asp.net RegularExpressionValidators and RequiredFieldValidators when needed and they are set to display dynamically. My first task was to shade the invalid rad boxes when they are invalid. I accomplished this by using <ClientEvents>  then setting the enabled style and calling updateCssClass. This is working great. The problem I am having now is that when the submit button is clicked, the client validation is firing but I can no longer set the background color. I'm using the onClientClick then looping through the validators and the rad input controls but I must be doing something wrong. When I step through the javascript I can see the EnabledStyle get set and the updateCssClass get called just like what is working when the individual textboxes work.

I'm only including one textbox in the aspx example for brevity.
Here is the code:

Javascript
function ValidateOnSubmit()
{
    var allRadControls = $telerik.radControls;
    var isValid = true;
    for (var i = 0; i < Page_Validators.length; i++)
    {
        var val = Page_Validators[i];
        ValidatorValidate(val, "all");
        if (!val.isvalid)
        {
            isValid = false;
            for (var y = 0; y < allRadControls.length; y++)
            {
                if (val.controltovalidate == allRadControls[y]._clientID)
                {
                    allRadControls[y].get_styles().EnabledStyle[0] += "background-color: LightPink;";
                    allRadControls[y].updateCssClass();
                }
            }
        }
        else
        {
            isValid = true;
        }
    }
}

ASPX
<telerik:RadTextBox ID="radtbEmailAddress" runat="server" MaxLength="256" ValidationGroup="all" EmptyMessage="Enter Email Address" Width="225px">
<ClientEvents OnValueChanged="ValidatePage" /></telerik:RadTextBox><asp:RegularExpressionValidator 
           id="revEmail"
           runat="server"
           ErrorMessage="Please, enter valid e-mail address."
           ValidationExpression= "^((?:(?:(?:[a-zA-Z0-9][\!\#\$\%\&\'\*\/\=\?\^\`\{\|\}\~\.\-\+_]?)*)[a-zA-Z0-9])+)\@((?:(?:(?:[a-zA-Z0-9][\!\#\$\%\&\'\*\/\=\?\^\`\{\|\}\~\.\-\+_]?){0,62})[a-zA-Z0-9])+)\.([a-zA-Z0-9]{2,6})$"
           ControlToValidate="radtbEmailAddress" ForeColor="Red" Display="Dynamic" ValidationGroup="all" >
</asp:RegularExpressionValidator><asp:RequiredFieldValidator ID="rfvEmailAddress" runat="server" ForeColor="Red" ControlToValidate="radtbEmailAddress" Display="Dynamic" ValidationGroup="all" ErrorMessage="Please enter an email address"></asp:RequiredFieldValidator>
<br />
  
<asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClientClick="ValidateOnSubmit();" OnClick="btnSubmit_Click" CssClass="brown" CausesValidation="true" ValidationGroup="all" />

Any help is greatly appreciated!

Edit: I've also tried to use WebForm_OnSubmit() but that doesn't work either. When using Developer Tools in IE to look at the markup, the css is being overwritten by the time I see it.
Martin
Telerik team
 answered on 17 Feb 2011
1 answer
161 views
Hi All,
       

I am creating a custom control(.dll) which has RadTextBox, Rad combo box having gird(_grd2) as its Item and a Image button which opens radwindow having another grid(_grd1).

My requirement is that onKeypress i.e., based on character entered in combobox text, content of grid(_grd2)  (which is available as item in combobox) need to be filtered and displayed .

To achieve this i am using Item requested event where i am setting grid’s(_grd2)filter expression but getting following error popup immediately after ItemsRequested event procedure.

 “Script control xxx(i.e.,_grd2) is not a registered script control. Script controls must be registered using RegisterScriptControl() before calling RegisterScriptDescriptors()

Parameter name: scriptControl”

Please suggest  me way to resolving this issue.

As a note that

1)       using script manager in aspx where custom control is consumed.

2)      I approached following ways but none of them worked
I tried using RadScriptManger instead of aspx scriptamanager but still I got same error.

Same error is poping up even on use of OnClientItemRequesting and OnClientItemRequested events.

When I made _grd2.RegisterWithScriptManager = false;  and combobox.RegisterWithScriptManager = false then ItemRequested event is fired and grid got filtered with filter expression applied but none of filtered rows are selectable i.e., postback is not happening during row click of radgrid(_grd2) , infact row click is not happening and item command is not fired.

RadAjaxManagerProxy _ramMangagerProxy = new RadAjaxManagerProxy();
_ramMangagerProxy.ID = "RadAjaxManager";
_ramMangagerProxy.ClientIDMode = ClientIDMode.AutoID;
 
RadAjaxLoadingPanel _ralLoadingPanel = new RadAjaxLoadingPanel();
_ralLoadingPanel.ID = "RadAjaxLoadPanel";
_ralLoadingPanel.ClientIDMode = ClientIDMode.AutoID;
 
AjaxSetting _settings = new AjaxSetting();
_settings.AjaxControlID = _grd1.ID;
 
AjaxUpdatedControl _id = new AjaxUpdatedControl();
_id.ControlID = _grd1.ID;
_id.LoadingPanelID = _ralLoadingPanel.ID;
 
_settings.UpdatedControls.Add(_id);
_ramMangagerProxy.AjaxSettings.Add(_settings);
 
RadGrid _grd2 = new RadGrid();
_grd2.ID = “Grd2”;
_grd2.ClientIDMode = ClientIDMode.AutoID;
_grd2.NeedDataSource += new GridNeedDataSourceEventHandler(Grd2_NeedDataSource);
_grd2.ClientSettings.Selecting.AllowRowSelect = true;
_grd2.EnableLinqExpressions = false;
_grd2.RegisterWithScriptManager = true;
_grd2.ItemCommand += new GridCommandEventHandler(Grd2_GridItemCommand);
 
RadComboBox  _drdComboBox = new RadComboBox();
_drdComboBox.ID =“ DrdComboBox”;
_drdComboBox.CssClass = DrdComboBoxCss;
_drdComboBox.AllowCustomText = true;
_drdComboBox.AutoPostBack = false;
_drdComboBox.MarkFirstMatch = true;
_drdComboBox.EnableLoadOnDemand = true;
_drdComboBox.ClientIDMode = ClientIDMode.AutoID;
_drdComboBox.ItemsRequested += new RadComboBoxItemsRequestedEventHandler(_drdComboBox_ItemsRequested);
 
RadComboBoxItem item = new RadComboBoxItem();
item.Controls.Add(_grd2);
_drdComboBox.Items.Add(item);
 
protected void Grd2_NeedDataSource(object sender, GridNeedDataSourceEventArgs e)
{
 
_grd2. DataSource = dataTable (or) dataset (or) list;
 
}
 
protected void Grd2_GridItemCommand(object sender, GridCommandEventArgs e)
{
 
// code regarding row click.
 
}
 
protected void _drdComboBox_ItemsRequested(object sender, RadComboBoxItemsRequestedEventArgs e)
{
if (e.Text != "")
{
this._grd2.MasterTableView.FilterExpression = "([Col] LIKE 'txt %')";
_grd2.MasterTableView.Rebind();
}
}

Can you please help me in finding best solution for this issue.
Helen
Telerik team
 answered on 17 Feb 2011
2 answers
166 views
i am trying to update my literal control. so everytime i select a value on dropdownlist, the literal content will change. the problem is that the content of the literal is all javascript because it is a script to draw chart from Fusion Chart (third party control).

It works great on the first time visit. but if dropdownlist selected index is changed, and is in asyncpostback, it just wont work. the literal will update if i onlyl put text in there. So my question is that how do i register javascript and write it to literal then make it works when asyncpostback is called. something like registerscriptcodeblock? pelase help me thank you very much.

literal1.Text = FusionCharts.RenderChart(c
harttype.ToString, "", chartData.ToString, "FactorySum", "798", "300", False, False)

that works fine.

now i click update  and it should update the literal which it does but it just can't see the script inside of that. the fusioncharts.renderchart() return
<!-- START Script Block for Chart FactorySum --> 
<div id='FactorySumDiv' > 
Chart. 
</div> 
<script type="text/javascript"
var chart_FactorySum = new FusionCharts("FusionCharts/MSColumn3D.swf""FactorySum""798""300""0""0""""noScale""EN" ); 
chart_FactorySum.setDataXML("<chart caption='Test' xAxisName='X Value' yAxisName='Y Value' showValues='0'><categories><category label='8/6/2006'/><category label='8/7/2006'/><category label='8/8/2006'/><category label='8/9/2006'/><category label='8/10/2006'/><category label='8/11/2006'/><category label='8/12/2006'/></categories><dataset seriesName='Offline Marketing' color='1D8BD1' anchorBorderColor='1D8BD1' anchorBgColor='1D8BD1'><set value='1327'/><set value='1826'/><set value='1699'/><set value='1511'/><set value='1904'/><set value='1957'/><set value='1296'/></dataset></chart>"); 
chart_FactorySum.render("FactorySumDiv"); 
</script> 
<!-- END Script Block for Chart FactorySum --> 
 

and the only thing that i see there is the word Chart.
<div id='FactorySumDiv' > 
Chart. 
</div> 


 and i want that to be in literal and work just like the way it is working when you first load the page.
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
<html xmlns="http://www.w3.org/1999/xhtml"
<head runat="server"
    <title>Sales Report</title> 
    <script type="text/javascript" src="FusionCharts/FusionCharts.js"></script> 
    <script type="text/javascript"
        function RequestStart(sender, eventArgs) 
        { 
            var divElementStyle = document.getElementById("RadAjaxLoadingPanel1").style; 
            divElementStyle.position = 'absolute'; 
            //position the loading panel 
            divElementStyle.left = eventArgs.get_eventTargetElement().offsetLeft + "px"
            divElementStyle.top = eventArgs.get_eventTargetElement().offsetTop + "px"
        } 
   </script> 
</head> 
<body style="background-color:#3d766f; font-family:Verdana; font-size:12px;"
    <form id="form1" runat="server">         
        <telerik:radscriptmanager id="RadScriptManager1" runat="server" AsyncPostBackTimeout="0"/> 
        <telerik:RadFormDecorator ID="RadFormDecorator1" runat="server" Skin="Office2007" DecoratedControls="All" /> 
        <telerik:radajaxmanager id="RadAjaxManager1" runat="server">             
            <ClientEvents OnRequestStart="RequestStart"></ClientEvents> 
            <AjaxSettings> 
                <telerik:AjaxSetting AjaxControlID="RadTabStrip1"
                    <UpdatedControls>                         
                        <telerik:AjaxUpdatedControl ControlID="RadMultiPage1" LoadingPanelID="RadAjaxLoadingPanel1" />  
                        <telerik:AjaxUpdatedControl ControlID="lt_HourlyGraph" LoadingPanelID="RadAjaxLoadingPanel1" />                        
                    </UpdatedControls> 
                </telerik:AjaxSetting>                       
                <telerik:AjaxSetting AjaxControlID="ddlcharttype"
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="Panel_HourlyGraph" LoadingPanelID="RadAjaxLoadingPanel1" />                         
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
            </AjaxSettings> 
        </telerik:radajaxmanager> 
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" MinDisplayTime="1000"
            <img alt="Loading..." src='<%= RadAjaxLoadingPanel.GetWebResourceUrl(Page, "Telerik.Web.UI.Skins.Default.Ajax.loading.gif") %>' style="border:0;" /> 
        </telerik:RadAjaxLoadingPanel> 
        <asp:Table ID="main" runat="server" BorderColor="white" BackColor="white" BorderWidth="0" CellPadding="5" CellSpacing="0" Width="1024px"  Height="100%" HorizontalAlign="center"
            <asp:TableRow> 
                <asp:TableCell VerticalAlign="top" Width="220px"
                    <b>Company Report:</b><br /><br />                   
                    <telerik:RadComboBox ID="ddlCompanyReport" Font-Size="12px" Width="200px" AutoPostBack="true" runat="server" Skin="Web20" /><br /><br /><br /> 
                    <b>Build your own:</b><br /><br /> 
                    <telerik:RadComboBox ID="ddlAdhocReport" Font-Size="12px" Width="200px" AutoPostBack="true" runat="server" Skin="Web20" /> 
                </asp:TableCell> 
                <asp:TableCell VerticalAlign="top" Width="798px"
                    <asp:Table ID="tbl_hourlyparam" runat="server" Width="798px"
                        <asp:TableRow> 
                            <asp:TableCell VerticalAlign="top"
                                <table border="0" cellpadding="5" cellspacing="0" width="798px"
                                    <tr> 
                                        <td align="center"
                                            Previous Year: <telerik:RadDatePicker Font-Size="12px" Calendar-ShowColumnHeaders="false" Calendar-ShowRowHeaders="true" 
                                                    ID="txt_hourlyFrom" runat="server" Skin="Web20" />    
                                            Current Year: <telerik:RadDatePicker Font-Size="12px" Calendar-ShowColumnHeaders="false" Calendar-ShowRowHeaders="true" 
                                                    ID="txt_hourlyTo" runat="server" Skin="Web20" /> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td width="798px">                                             
                                            <telerik:RadComboBox ID="ddlcharttype" Font-Size="12px" runat="server" Skin="Web20" AutoPostBack="true">                                                                                                 
                                                    <Items> 
                                                        <telerik:RadComboBoxItem Text="Select a chart type" Value="" /> 
                                                        <telerik:RadComboBoxItem Text="Area" Value="Area" /> 
                                                        <telerik:RadComboBoxItem Text="Bar" Value="Bar" /> 
                                                        <telerik:RadComboBoxItem Text="Column" Value="Column" /> 
                                                        <telerik:RadComboBoxItem Text="Line" Value="Line" /> 
                                                    </Items> 
                                            </telerik:RadComboBox> 
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td>  
                                            <asp:Panel ID="Panel_HourlyGraph" runat="server"
                                                <asp:Literal ID="lt_HourlyGraph" runat="server"></asp:Literal>                                                                                    
                                            </asp:Panel>                                                        
                                        </td> 
                                    </tr> 
                                    <tr> 
                                        <td> 
                                            <telerik:RadTabStrip ID="RadTabStrip1" ReorderTabsOnSelect="true"  runat="server" Skin="Office2007"  
                                                MultiPageID="RadMultiPage1" SelectedIndex="0"
                                                <Tabs> 
                                                    <telerik:RadTab Text="Norwalk" runat="server" Selected="True" />                            
                                                    <telerik:RadTab Text="Danbury" runat="server" /> 
                                                    <telerik:RadTab Text="Yonkers" runat="server" /> 
                                                    <telerik:RadTab Text="Newington" runat="server" /> 
                                                </Tabs> 
                                            </telerik:RadTabStrip> 
                                            <telerik:RadMultiPage style="border: 1px solid #828282; padding: 40px 10px 25px;" runat="server" ID="RadMultiPage1" SelectedIndex="0"
                                                <telerik:RadPageView runat="server" ID="RadPage_Norwalk">                                              
                                                      <asp:Literal ID="Hourly_NOR" runat="server"  /> 
                                                </telerik:RadPageView>  
                                                <telerik:RadPageView ID="RadPage_Danbury" runat="server"
                                                    <asp:Literal ID="Hourly_DAN" runat="server" /> 
                                                </telerik:RadPageView> 
                                                <telerik:RadPageView ID="RadPage_Yonkers" runat="server"
                                                    <asp:Literal ID="Hourly_YON" runat="server" /> 
                                                </telerik:RadPageView> 
                                                <telerik:RadPageView ID="RadPage_Newington" runat="server"
                                                    <asp:Literal ID="Hourly_NWG" runat="server" /> 
                                                </telerik:RadPageView> 
                                             </telerik:RadMultiPage>     
                                        </td> 
                                    </tr> 
                                </table>                                 
                            </asp:TableCell> 
                        </asp:TableRow> 
                    </asp:Table> 
                </asp:TableCell> 
            </asp:TableRow> 
            <asp:TableRow> 
                <asp:TableCell ColumnSpan="2" BackColor="gray" Width="798px" ForeColor="white" HorizontalAlign="center"
                   © 2009 All Rights Reserved. 
                </asp:TableCell> 
            </asp:TableRow>     
        </asp:Table> 
    </form> 
</body> 
</html> 
 
 
server side is 
 Protected Sub ddlcharttype_SelectedIndexChanged(ByVal o As ObjectByVal e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles ddlcharttype.SelectedIndexChanged 
        Dim charttype As String = GetChartType() 
        Dim chartData As String = GetFactorySummaryChartHtm() 
        lt_HourlyGraph.Text = FusionCharts.RenderChart(charttype.ToString, "", chartData.ToString, "FactorySum""798""300"FalseFalse
    End Sub 
Yana
Telerik team
 answered on 17 Feb 2011
3 answers
357 views
Hello,

is there a way to show dropdown list above the textbox when i click on the arrow? 

Thanks,
Max
Max
Top achievements
Rank 1
 answered on 17 Feb 2011
3 answers
163 views
Hello,

I have a SlidingZone which load content on demand. The SlidingPanes open, when the user moves the mouse over a tab. In common the user do not hit the right tab and moves the mouse to the desired tab. Now every tab, the user moves over, is opening and starting a ajax-request for loading its content. So my question, how can I configure a delay before the expanding is started?

<telerik:RadPane ID="RightPane" runat="server" Width="22px" Scrolling="None">
    <telerik:RadSlidingZone ID="SlidingZone1" runat="server" Width="22px" SlideDirection="Left"
        ClickToOpen="false" >                        
        <telerik:RadSlidingPane ID="RadSlidingPane2" Title="Lokal" ToolTip="Lokale Gruppen"
            runat="server" Width="355px" IconUrl="/images/folder.png" OnClientExpanded="LoadLocalGroup" EnableDock="false">
            <asp:Panel ID="PanelLocal" runat="server" Height="100%">
                <twoeyes:LocalGroupAllocation ID="alloc_LocalGroup" runat="server" />
            </asp:Panel>
        </telerik:RadSlidingPane>
        <telerik:RadSlidingPane ID="RadSlidingPane3" Title="Global" ToolTip="Globale Gruppen"
            runat="server" Width="355px" IconUrl="/images/folder_blue.png" OnClientExpanded="LoadGlobalGroup" EnableDock="false">
            <asp:Panel ID="PanelGlobal" runat="server" Height="100%">
                <twoeyes:GlobalGroupAllocation ID="alloc_GlobalGroup" runat="server" />
            </asp:Panel>
        </telerik:RadSlidingPane>
    </telerik:RadSlidingZone>
</telerik:RadPane>

Thanks and greetings,
Ronny
Dobromir
Telerik team
 answered on 17 Feb 2011
1 answer
146 views
HI

i am using radmenu.LoadXML(StrXML) to bind data to my rad menu
StrXML=

"<Items Text=" "><Item Text="My Tracker" Url="#"><Item Text="Add My Menu" Url="Add_MyMenu.asp"/><Item Text="Manage My Menu" Url="Manage_MyMenu.asp"/><Item Text="Tracker Queue" Url="Start.asp"/><Item Text="Edit Profile" Url="edit_profile.asp"/><Item Text="Assign Accounts" Url="assign.asp"/><Item Text="Help" Url="Help.asp"/><Item Text="Report Builder" Url="ReportBuilderMain.asp"/><Item Text="DnB Admin Tool" Url="Insured_admin.asp"/></Item><Item Text="Advantage Reports" Url="AdvAcctsByBroker.asp"></Item></Items>"


this is throwing me error .."Invalid operation exception There is an error in XML document (1, 1)."

Please Help

Thanks
Harin
Kate
Telerik team
 answered on 17 Feb 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Bohdan
Top achievements
Rank 3
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Elliot
Top achievements
Rank 1
Iron
Iron
Iron
Sunil
Top achievements
Rank 1
Cynthia
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?