Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
145 views
hi guys,
i've created a web page where there's one object panel asp and one RoundedCornersExtender .
Now when I run a code behind and part of the loadingpanel, at the end of the operation the asp panel no longer has round edges, as if there were no more or RoundedCornersExtender does not work, why?
this my code:
<form id="form1" runat="server">
    <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="Imgbtnrecupera">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="Panel1"
                        LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManager>
    <telerik:RadFormDecorator ID="RadFormDecorator1" Runat="server"
        DecoratedControls="All" Skin="Sunset" />
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server"
        Skin="Simple" HorizontalAlign="Center" BorderColor="#D5842B"
        BorderStyle="Double" BorderWidth="1px" Width="420px">
    </telerik:RadAjaxLoadingPanel>
    <div style="font-family: Verdana; font-size: small; width: 420px; height: 240px; text-align:center; ">
        <div style="margin: 0px; border: 0px; padding-left: 0px; width: 420px; text-align: center">
            <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" height="200px"
                width="300px">
                <asp:Panel ID="Panel1" runat="server" BackColor="#F0F0F0" BorderColor="Silver"
                Width="420px" Height="240px">
                    <table style="width:100%;">
                        <tr>
                            <td  style="text-align: left; padding-left:9px" colspan="2" class="style1">
                                <asp:Label ID="Label1" runat="server" Text="Dati per la convalida (email)"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td  style="width: 400px; text-align: left; padding-left:9px" colspan="2">
                                <telerik:RadTextBox ID="Txtdati" Runat="server"
                            EmptyMessage="Inserire indirizzo email" LabelWidth="140px" Skin=""
                            Width="400px" ValidationGroup="Gropu">
                                    <EmptyMessageStyle ForeColor="#CCCCCC" />
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td  style="width: 400px; text-align: left; padding-left:9px" colspan="2">
                                <telerik:RadCaptcha ID="RadCaptcha1" Runat="server"
                            CaptchaLinkButtonText="Nuovo codice"
                            CaptchaTextBoxLabel="Inserire il codice dell'immagine"
                            EnableRefreshImage="True" ErrorMessage="Codice errato" Font-Names="Verdana"
                            Font-Size="Small" ValidationGroup="Group" Width="400px" Skin="">
                                </telerik:RadCaptcha>
                            </td>
                        </tr>
                        <tr>
                            <td  style="width: 400px; text-align: center; padding-top:5px">
                                <asp:ImageButton ID="Imgbtnrecupera" runat="server"
                            ImageUrl="~/Image/Recupera.png" />
                            </td>
                            <td  style="width: 400px; text-align: center; padding-top:5px">
                                 <asp:ImageButton ID="Imgbtnesci" runat="server" ImageUrl="~/Image/esci1.png"
                                 ValidationGroup="close" />
                            </td>
                        </tr>
                        <tr>
                            <td  style="width: 400px; text-align: center" colspan="2">
                                 </td>
                        </tr>
                    </table>
                </asp:Panel>
                <asp:RoundedCornersExtender ID="Panel1_RoundedCornersExtender" runat="server"
                BorderColor="Silver" Enabled="True" Radius="4"
    TargetControlID="Panel1">
                </asp:RoundedCornersExtender>
            </telerik:RadAjaxPanel>
    <telerik:RadNotification ID="RadNotification1" runat="server" Height="100px"
        Skin="Simple" TitleIcon="~/Image/iconlogo.png" Width="400px"
        AutoCloseDelay="3500" Position="Center" Title="Recupero password">
    </telerik:RadNotification>
        <telerik:RadNotification ID="RadNotification2" runat="server" Height="100px"
        Skin="Simple" TitleIcon="~/Image/iconlogo.png" Width="300px"
        AutoCloseDelay="5000" Position="Center" Title="Recupero password">
    </telerik:RadNotification>
        </div>
    </div>
    </form>

also when I click the button imgbtnesci, the radwindow not close and there is a refresh of the radcaptcha
bye
Kevin
Top achievements
Rank 2
 answered on 20 Dec 2012
8 answers
354 views
I would like to use RadGrid drag'n drop feature to reorder a list of items.
So I follow your sample available at http://www.telerik.com/DEMOS/ASPNET/Prometheus/Grid/Examples/Programming/DragAndDrop/DefaultCS.aspx
(Telerik.Web.UI.dll 2008.1.415.20)

It worked very well until I embed the grid into the content template of a master page. Then I cannot retreive the destination node in the drop event handler...

I do not understand why a master page causes this problem but the rest of the code is strictly the same :

Page without master page :

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WithoutMasterPage.aspx.cs" Inherits="WithoutMasterPage" %> 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<!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>Page sans titre</title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
     
        <asp:ScriptManager ID="scripManager" runat="server" /> 
         
        <telerik:RadGrid runat="server" ID="grdPendingOrders" Skin="Sunset" OnNeedDataSource="grdPendingOrders_NeedDataSource" AllowPaging="True" Width="350px" OnRowDrop="grdPendingOrders_RowDrop" AllowMultiRowSelection="true"> 
            <MasterTableView DataKeyNames="Id"> 
            </MasterTableView> 
            <ClientSettings AllowRowsDragDrop="True"> 
                <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> 
            </ClientSettings> 
        </telerik:RadGrid><asp:Label ID="LabelDestItem" runat="server" ForeColor="Red" /> 
     
    </form> 
</body> 
</html> 

Page with master page (the master page is the default template, no extra code) :

<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="WithMasterPage.aspx.cs" Inherits="WithMasterPage" Title="Untitled Page" %> 
 
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> 
 
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server"> 
 
    <asp:ScriptManager ID="scripManager" runat="server" /> 
     
    <telerik:RadGrid runat="server" ID="grdPendingOrders" Skin="Sunset" OnNeedDataSource="grdPendingOrders_NeedDataSource" AllowPaging="True" Width="350px" OnRowDrop="grdPendingOrders_RowDrop" AllowMultiRowSelection="true"> 
        <MasterTableView DataKeyNames="Id"> 
        </MasterTableView> 
        <ClientSettings AllowRowsDragDrop="True"> 
            <Selecting AllowRowSelect="True" EnableDragToSelectRows="true" /> 
        </ClientSettings> 
    </telerik:RadGrid> 
     
    <asp:Label ID="LabelDestItem" runat="server" ForeColor="Red" /> 
 
</asp:Content> 

Code behind is the same for the two pages :

    protected void grdPendingOrders_NeedDataSource(object source, GridNeedDataSourceEventArgs e) { 
        List<GridItem> items = new List<GridItem>(); 
        items.Add(new GridItem(1, "Item1")); 
        items.Add(new GridItem(2, "Item2")); 
        items.Add(new GridItem(3, "Item3")); 
        this.grdPendingOrders.DataSource = items; 
    } 
 
    protected void grdPendingOrders_RowDrop(object sender, GridDragDropEventArgs e) { 
        if (e.DestDataItem != null) { 
            this.LabelDestItem.Text = "e.DestDataItem.OwnerGridID = " + e.DestDataItem.OwnerGridID; 
        } else { 
            this.LabelDestItem.Text = "e.DestDataItem is null!"; 
        } 
    } 
In the first case, e.DestDataItem is correctly set, in the other it's always null.

Have you got an explaination for this issue?

Thanks,

Gilles

Maria Ilieva
Telerik team
 answered on 20 Dec 2012
5 answers
222 views
Hi,
I have used the rad grid. In the ItemCommand i have checked for the rows as below. Also, if any of the existing rows in the available 10 are deleted, the user should be able to add one more item. I  have used this code:
protected void radgrid1_ItemCommand(object sender, GridCommandEventArgs e)
        {
             
                int i = int.Parse(hdnRowsCount.Value);
  
                if (e.CommandName == RadGrid.InitInsertCommandName)
                {                                  
                   if (i < 10)
                    {
                       i++;
                       hdnRowsCount.Value = Convert.ToString(i);
                    }
                    else
                    {
                        e.Canceled = true;
                        radgrid1.MasterTableView.CommandItemDisplay = GridCommandItemDisplay.None;
                    }
                }
                if (e.CommandName == RadGrid.DeleteCommandName)
                {
                    i--;
                }
              
        }

In the aspx, i have the "hdnRowsCount" set to 0. Once the item is deleted, the user should be able to add new rows again. Also, when the number of rows has reached, "Add new item" option should be hidden. Now It is not gettiong hidden.
How to fix this?
Thanks
Tsvetoslav
Telerik team
 answered on 20 Dec 2012
1 answer
103 views
Hello,

Currently I'm using a Chart, type pie. I've a legend next to the pie, to define the colors in the pie. Next to the chart, there is a DataList, which shows the corresponding data value per item. 

I was wondering, if it were possible, to show the item name AND the item value in the legend. Then I can delete my DataList, and the design will be much better.

Is that possible?

Greetings,
Thye
Petar Kirov
Telerik team
 answered on 20 Dec 2012
5 answers
210 views
Hello, I have page with several rad textboxes - and one of them doesn't work right in Internet Explorer (IE 9).  It works fine in all other browsers.
The issue is that you can't click on it to type into the box.  BUT, if you hover over the border (very edge of the textbox), you get the Text Mouse Pointer that allows you to click on it and type.  But, just clicking on the textbox in the type area doesn't work.

It works great in Chrome and FireFox.

How to overcome this issue?
Vasil
Telerik team
 answered on 20 Dec 2012
3 answers
183 views

How to set the different color for FooterAggregateFormatString show value

and one more doubt how to set different color for every level

reply as soon as possible .

Thanks Advance,
Mohamed.
Princy
Top achievements
Rank 2
 answered on 20 Dec 2012
9 answers
135 views
Hi,
We currently use a custom skin for our Grids and Menu's however, i would like to use the "Metro" Skin for the Grid Filter menu's but it seems the attributes provided do not work.

<telerik:RadGrid ID="rgCampaignSelect" runat="server" AllowPaging="True" PageSize="10" AllowSorting="true" AllowFilteringByColumn="true" EnableEmbeddedSkins="False" Skin="GatorLayout" FilterMenu-Skin="Metro" FilterMenu-EnableEmbeddedSkins="True">

The above doesnt set the Filter Menu Items skin to Metro, it stays as GatorLayout.  I then tell it to use Embedded Skins and it errors saying GatorLayout is not an embedded skin.

How can i fix this?

Thanks,
Michael
Eyup
Telerik team
 answered on 20 Dec 2012
1 answer
71 views
I know that there is an option to set first day of the week,
but is there an option to set the workweek to be different from monday-friday?
For example saturday-wednesday workweek as in some arabic countries.
Plamen
Telerik team
 answered on 20 Dec 2012
1 answer
132 views
2012 Q3 controls

This sample code: <telerik:RadTextBox runat="server" Width="400px" Label="Test" /> results in the label and inputbox having equal widths.  I need to produce the more accepted behaviour of having the input box closer to the label and having it widen/narrow according to the Width property for all my textbox controls.  How can I accomplish this?

Eyup
Telerik team
 answered on 20 Dec 2012
8 answers
1.0K+ views
I'm getting this error:


RadAsyncUpload does not have permission to write files in the TemporaryFolder. In Medium Trust scenarios, the TemporaryFolder should be a subfolder of the Application Path.


I have given Network Service full control of App_Data folder.  What am I missing?
Peter Filipov
Telerik team
 answered on 20 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Dean
Top achievements
Rank 1
Leland
Top achievements
Rank 2
Iron
Iron
Iron
Emil
Top achievements
Rank 1
Iron
Robert
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?