Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
283 views
Version 2012.2.912.40

I'm working with the RadHTMLChart and wanted to dynamically modify a piechart.  Thus, I updated our working Telerik dlls to the latest version.

However, now our rad docks are erroring when being moved on the screen and the layout saved.

I've identified an issue that didn't happen with earlier versions.  Namely, the containing space for the docks must be a whole number (integer) instead of a decimal.  I have my left dock zone in an area of 33% of the screen and the other the remainder.  If I used specified widths, I do not get an error.

EDIT:  I should note that the percentage value widths are on containers that the dock zones are within.

Trying to move a dock errors with variable (percentage) widths:

  1. Uncaught Sys.ArgumentOutOfRangeException: Sys.ArgumentOutOfRangeException: Value must be an integer. Parameter name: x Actual value was 530.4500122070312. ScriptResource.axd:237
    1. Error$argumentOutOfRangeScriptResource.axd:302
    2. Function$_validateParameterTypeScriptResource.axd:217
    3. Function$_validateParameterScriptResource.axd:130
    4. Function$_validateParamsScriptResource.axd:84
    5. Telerik.Web.UI.RadDock._getLocationScriptResource.axd:430
    6. Telerik.Web.UI.RadDock._startDragDropScriptResource.axd:178
    7. Telerik.Web.UI.RadDock.onDragStartScriptResource.axd:191
    8. b.ResizeExtender._raiseDragEventScriptResource.axd:450
    9. b.ResizeExtender._storeStartCoordsScriptResource.axd:484
    10. b.ResizeExtender._onHandleMouseDownScriptResource.axd:597
    11. (anonymous function)
Slav
Telerik team
 answered on 09 Oct 2012
1 answer
116 views
Hi
     I have a radtreeview inside radcombobox. I want to bind the select node of the radtreeview as the text in the radcombobox. How can I achieve that. Please help
thanks in advance
Savyo
Princy
Top achievements
Rank 2
 answered on 09 Oct 2012
1 answer
88 views
I have a column of check boxes that when selected is inserting a row into a database.  I also have Paging=true in the radGrid as this application will continue to grow.  If I check chkBx on Page 1 and then go over to Page 2 and select someone else - when I hit submit - how do I get it to check all the pages?

Thanks,
Amanda
Princy
Top achievements
Rank 2
 answered on 09 Oct 2012
1 answer
125 views
i am new to this issues and i need help. problem is: i cant see page  right format like attachment.  i created page with telerik wizard a page: RadGridAutomaticCrudOperations. i didnt add anything,i guess i missing something. what should i do.

page aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RadGridAutomaticCrudOperations.aspx.cs"
    Inherits="RadGridAutomaticCrudOperations" %>
 
<!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>
    <style type="text/css">
        .MyImageButton
        {
            cursor: hand;
        }
        .EditFormHeader td
        {
            font-size: 14px;
            padding: 4px !important;
            color: #0066cc;
        }
    </style>
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" CdnSettings-TelerikCdn="Enabled" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadAjaxManager runat="server"
        DefaultLoadingPanelID="RadAjaxLoadingPanel1" EnableHistory="True">
    </telerik:RadAjaxManager>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server" CdnSettings-TelerikCdn="Enabled">
        <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" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQuery.js" />
            <asp:ScriptReference Assembly="Telerik.Web.UI" Name="Telerik.Web.UI.Common.jQueryInclude.js" />
        </scripts>
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" />
    <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server">
        <telerik:RadGrid ID="RadGrid1" GridLines="None" runat="server" AllowAutomaticDeletes="True"
            AllowSorting="True" AllowAutomaticInserts="True" AllowAutomaticUpdates="True"
            AllowMultiRowEdit="True" AllowPaging="True" DataSourceID="DataSource1" OnItemUpdated="RadGrid1_ItemUpdated"
            AllowFilteringByColumn="True" OnItemDeleted="RadGrid1_ItemDeleted" OnItemInserted="RadGrid1_ItemInserted"
            OnDataBound="RadGrid1_DataBound" CellSpacing="0">
            <pagerstyle mode="NextPrevAndNumeric" />
            <ClientSettings>
                <Scrolling AllowScroll="True" UseStaticHeaders="True" />
            </ClientSettings>
            <mastertableview autogeneratecolumns="False" commanditemdisplay="TopAndBottom"
                datakeynames="ProductID" datasourceid="DataSource1" editmode="EditForms"
                horizontalalign="NotSet" width="100%">
                <commanditemsettings exporttopdftext="Export to PDF" />
                <rowindicatorcolumn filtercontrolalttext="Filter RowIndicator column"
                    visible="True">
                </rowindicatorcolumn>
                <expandcollapsecolumn filtercontrolalttext="Filter ExpandColumn column"
                    visible="True">
                </expandcollapsecolumn>
                <Columns>
                    <telerik:GridBoundColumn DataField="ProductID" DataType="System.Int32"
                        Display="False" FilterControlAltText="Filter ProductID column"
                        HeaderText="ProductID" ReadOnly="True" SortExpression="ProductID"
                        UniqueName="ProductID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ProductName"
                        FilterControlAltText="Filter ProductName column" HeaderText="ProductName"
                        SortExpression="ProductName" UniqueName="ProductName">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SupplierID" DataType="System.Int32"
                        Display="False" FilterControlAltText="Filter SupplierID column"
                        HeaderText="SupplierID" SortExpression="SupplierID" UniqueName="SupplierID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="CategoryID" DataType="System.Int32"
                        Display="False" FilterControlAltText="Filter CategoryID column"
                        HeaderText="CategoryID" SortExpression="CategoryID" UniqueName="CategoryID">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="QuantityPerUnit" Display="False"
                        FilterControlAltText="Filter QuantityPerUnit column"
                        HeaderText="QuantityPerUnit" SortExpression="QuantityPerUnit"
                        UniqueName="QuantityPerUnit">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="UnitPrice" DataType="System.Decimal"
                        FilterControlAltText="Filter UnitPrice column" HeaderText="UnitPrice"
                        SortExpression="UnitPrice" UniqueName="UnitPrice">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="UnitsInStock" DataType="System.Int16"
                        FilterControlAltText="Filter UnitsInStock column" HeaderText="UnitsInStock"
                        SortExpression="UnitsInStock" UniqueName="UnitsInStock">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="UnitsOnOrder" DataType="System.Int16"
                        Display="False" FilterControlAltText="Filter UnitsOnOrder column"
                        HeaderText="UnitsOnOrder" SortExpression="UnitsOnOrder"
                        UniqueName="UnitsOnOrder">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="ReorderLevel" DataType="System.Int16"
                        Display="False" FilterControlAltText="Filter ReorderLevel column"
                        HeaderText="ReorderLevel" SortExpression="ReorderLevel"
                        UniqueName="ReorderLevel">
                    </telerik:GridBoundColumn>
                    <telerik:GridCheckBoxColumn DataField="Discontinued" DataType="System.Boolean"
                        Display="False" FilterControlAltText="Filter Discontinued column"
                        HeaderText="Discontinued" SortExpression="Discontinued"
                        UniqueName="Discontinued">
                    </telerik:GridCheckBoxColumn>
                    <telerik:GridBoundColumn DataField="CategoryName"
                        FilterControlAltText="Filter CategoryName column" HeaderText="CategoryName"
                        SortExpression="CategoryName" UniqueName="CategoryName">
                    </telerik:GridBoundColumn>
                </Columns>
                <editformsettings>
                    <formtableitemstyle wrap="False" />
                    <formtablestyle backcolor="White" cellpadding="2" cellspacing="0"
                        height="110px" />
                    <formmaintablestyle backcolor="White" cellpadding="3" cellspacing="0"
                        width="100%" />
                    <formcaptionstyle cssclass="EditFormHeader" />
                    <FormMainTableStyle BackColor="White" CellPadding="3" CellSpacing="0"
                        GridLines="None" Width="100%" />
                    <FormTableStyle BackColor="White" CellPadding="2" CellSpacing="0"
                        Height="110px" />
                    <formtablealternatingitemstyle wrap="False" />
                    <editcolumn buttontype="ImageButton" canceltext="Cancel edit"
                        uniquename="EditCommandColumn1">
                    </editcolumn>
                    <formtablebuttonrowstyle cssclass="EditFormButtonRow" horizontalalign="Right" />
                </editformsettings>
            </mastertableview>
            <filtermenu enableimagesprites="False">
            </filtermenu>
        </telerik:RadGrid>
        <telerik:RadWindowManager ID="RadWindowManager1" runat="server">
        </telerik:RadWindowManager>
    </telerik:RadAjaxPanel>
    <asp:SqlDataSource ConnectionString="<%$ ConnectionStrings:NorthwindOAConnectionString %>"
        ID="DataSource1" runat="server"
        SelectCommand="SELECT * FROM [Alphabetical list of products]"></asp:SqlDataSource>
    <telerik:RadSkinManager ID="RadSkinManager1" Runat="server" Skin="Sunset">
    </telerik:RadSkinManager>
    </form>
</body>
</html>
Cuneyt
Top achievements
Rank 1
 answered on 09 Oct 2012
2 answers
67 views
As soon as I applied an IconCssClass to one of my buttons, all of my buttons have move to random locations on the screen and cannot be put back. In Visual Studio, when I click on them, they state that they have margins applied to them when they do not either in the CSS, the markup or the button properties. I have replaced them with <asp:Button> and these appear to work fine.

I have deleted and attempted to create a new <telerik:RadButton> without an icon and automatic margins are automatically applied with no place to delete them, it seems.

It seems that these phantom style rules have been applied to all current and future instances of <telerik:RadButton>
Slav
Telerik team
 answered on 09 Oct 2012
1 answer
55 views
I am using a reg exp validator and I can not get the reg expression exactly how I want it. Below is my Reg Ex.

((#\*){1}) | (([0-9\*]{1,9})+-+([0-9\*]{1,9}))


What I want is for the reg Expression to allow either a # or a * one time OR allow a string of [Numbers or *]-[Numbers or *] 0-9 times.

Some examples would be ...

Ex. 1 = *
Ex. 2 = #
Ex. 3 = 12345678-123456789
Ex. 4 = *-1234
Ex. 5 = 1234-*

Please any help would be great!

Thanks,
Trevor

Princy
Top achievements
Rank 2
 answered on 09 Oct 2012
4 answers
165 views


How could fire GridNeedDataSourceEventArgs though the Javascript

Thanks Advance,
Mohamed.
mohamed
Top achievements
Rank 1
 answered on 09 Oct 2012
1 answer
114 views
I've been trying to get a feature similar to this implemented: http://www.telerik.com/community/forums/aspnet-ajax/listbox/onclientselectedindexchanged.aspx

This works fine for one listbox, but after transferring the contents over to the other listbox, the functions do not perform as expected. The checkboxes no longer change, but the selection does. Using the transfer all button to the original side shows that the checkstate actually is being updated.  Moving selections back and forth further screw up the code to the point where I'm not sure what it's doing anymore.

Is there any way to accomplish the feature in the above link and maintaining that functionality across the listbox that the item gets transferred to? I have added items to both the source and destination listbox and confirmed that the function is working individually for the listboxes until a transfer happens.
Bozhidar
Telerik team
 answered on 09 Oct 2012
1 answer
121 views
Hello there,

I am developing a web application using rad controls. I am using radwindow for popup, in one of the radwindow there is a radbutton with other controls like textbox, dropdown. My requirement is to apply ajaxify and show loading panel after radbutton click.

As a solution I have registered radajaxmanager and radajaloadingpanel on master page.

 <telerik:RadAjaxManager ID="rAjaxManagerPopUp" runat="server" >
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="rLoadingPanel" ZIndex="8001" Skin="MyCustomSkin"
        EnableEmbeddedSkins="false" runat="server">
    </telerik:RadAjaxLoadingPanel>

and write this code on aspx.cs

                RadAjaxManager radAjaxManager = Content("rAjaxManagerPopUp") as RadAjaxManager;
                RadAjaxLoadingPanel radAjaxLoadingPanel = Content("rLoadingPanel") as RadAjaxLoadingPanel;
                if (radAjaxManager != null)
                {
                    radAjaxManager.AjaxSettings.AddAjaxSetting(radAjaxManager, pnlPaymentConfirmation);
                    radAjaxManager.AjaxSettings.AddAjaxSetting(radAjaxManager, rBtnSubscribe, radAjaxLoadingPanel);
                    radAjaxManager.AjaxSettings.AddAjaxSetting(rBtnSubscribe, pnlPaymentConfirmation, radAjaxLoadingPanel);
                    radAjaxManager.AjaxSettings.AddAjaxSetting(radAjaxManager, rBtnSaveNSubscribe, radAjaxLoadingPanel);
                    radAjaxManager.AjaxSettings.AddAjaxSetting(rBtnSaveNSubscribe, pnlPaymentConfirmation, radAjaxLoadingPanel);
                }
after these changes I able to show loading panel on Radwindow Popup. But beacuse of these change I am not able to call registered javascript function on aspx.cs
e.g
               String script = "<script language='javascript' type='text/javascript'>Sys.Application.add_load(BillingInfoKeepInEditMode); </script>";
           Page.ClientScript.RegisterStartupScript(this.GetType(), "BillingInfoKeepInEditMode", script);

Please help me to resolved this issue.
its very urgent

Thanks,
Avinash





Andrey
Telerik team
 answered on 09 Oct 2012
1 answer
80 views
Hi there,
i'm new in Telerik framework.
I've a problem with radgrid control, In my grid there are unwanted gray bars.
 Please take a look at attached screenshot (screenshot barre grigie.png).

I've tryed to change many attributes of radgrid but the gray bars are always there!

The portion of rendered html regarding the gray bar is in the second attached file (screenshot barre grigie html code.png)

This is my code:

<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="StayDay.ascx.cs" Inherits="WebTickets.SubModules.StayDay" %>
<div id="dayStay"style="width:100px;padding:3px;">
    <asp:Panel runat="server" ID="container" meta:resourcekey="containerResource1">
  
  <asp:Label ID="day" runat="server" height="10px" Font-Size="Smaller"
            meta:resourcekey="dayResource1"></asp:Label>
       <br />
        <br /><span class="description">Disponibilità</span>
 
 <telerik:RadGrid ID="rgDays" runat="server" GridLines="None"
            AutoGenerateColumns="False" OnItemDataBound="rgDataBound"
            OnItemCreated="rgItemCreated" CellPadding="0" Width="68px" 
            BorderStyle="None" BorderColor="Transparent"
            meta:resourcekey="rgDaysResource1" BackColor="#FFFFFF">
     <AlternatingItemStyle Width="67px" CssClass="RadGrid_Default" BorderStyle="None" BorderColor="Transparent" />
    <MasterTableView DataKeyNames="Id" ShowHeader="False" BorderWidth="0px" 
         BorderStyle="None" BorderColor="Transparent"
         style="padding:2px" CellPadding="0" CellSpacing="0" Width="68px"
         CssClass="RadGrid_Default">
     <NoRecordsTemplate>
     <asp:Label ID="lblQuantity" runat="server" meta:resourcekey="lblQuantityResource1" ></asp:Label> ingressi
    <asp:HiddenField Id="hfmax" runat="server"/>
    <table width="60px" border="0">
     <tr>
     <td style="height:14px;width:14px"">
     
     <telerik:RadComboBox ID="rTB" runat="server" OnClientSelectedIndexChanging="setTotal" EnableScreenBoundaryDetection="false"
              DropDownWidth="48px"   AllowCustomText="false"  MaxHeight="180px"
             EnableVirtualScrolling="True"   Width="48px" AutoPostBack="false"
             meta:resourcekey="rTBResource1" ChangeTextOnKeyBoardNavigation="false"> <%-- OnClientItemsRequested="ClientLoadItem"OnItemsRequested="LoadItem"OnClientLoad="LoadFirst10"--%>
              <Items>
              <telerik:RadComboBoxItem Text="0" Value="0" />
              </Items>
              </telerik:RadComboBox>
 
  </td>
     </table>
     </NoRecordsTemplate>
    <Columns>
     <telerik:GridTemplateColumn meta:resourcekey="GridTemplateColumnResource1" UniqueName="TemplateColumn">
     <ItemTemplate>
     <table cellspacing="1px" cellpadding="1px">
     <tr>
     <td style="height:12px;width:12px;padding:0px"><asp:Label ID="fromHour"
             runat="server" Text='<%# Eval("fromHour") %>'
             meta:resourcekey="fromHourResource1"></asp:Label>-<asp:Label ID="toHouor"
             runat="server" Text='<%# Eval("toHour") %>' meta:resourcekey="toHouorResource1"></asp:Label></td>
          <td style="height:10px;padding:2px;padding:0px">
          
           <telerik:RadComboBox ID="rTB" Width="40px" runat="server" ChangeTextOnKeyBoardNavigation="false" EnableScreenBoundaryDetection="false"
                  OnClientSelectedIndexChanged="setTotal2" DropDownWidth="20"   MaxHeight="180px"
                   EnableVirtualScrolling="True" AllowCustomText="false" AutoPostBack="false"
                  meta:resourcekey="rTBResource2"><%-- OnItemsRequested="LoadItem"OnClientLoad="LoadFirst10"OnClientItemsRequested="ClientLoadItem"--%>
           <Items>
              <telerik:RadComboBoxItem Text="0" Value="0"/>
              </Items>
               
           </telerik:RadComboBox>
     
          </td></tr>
     </table>
      </ItemTemplate>
     </telerik:GridTemplateColumn
     </Columns>
        <ItemStyle Height="12px" Width="95px" />
        <AlternatingItemStyle BackColor="White" BorderWidth="0px" />
    </MasterTableView>
    </telerik:RadGrid>
  </asp:Panel>
</div>


Can some one help me? Thanks.
Davide.



Eyup
Telerik team
 answered on 09 Oct 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?