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

I am using  web service for search, that returns me total no. of results found and search results with in given limit (say 10 records per request),

Is it possible to set total no. records for grid, so paging will done automatically ?

(web service is not developed in .net)


 Thanks,
Amol




Iana Tsolova
Telerik team
 answered on 25 May 2009
1 answer
81 views
Hi, i wrote simple program like this http://demos.telerik.com/aspnet-ajax/ajax/examples/manager/usercontrol/defaultcs.aspx

If i click on the row in grid everithing  is ok - detailview update by id from row.

But i need to upgrade it - the same behavior, but with the keyboard. If i press key down(or up) i need to update detailview with id from selected row.


Thank for yours help.

Josef

MainForm.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainForm.aspx.cs" Inherits="StartProject.MainForm" %> 
 
<%@ 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></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager" runat="server"> 
    </asp:ScriptManager> 
 
    <script type="text/javascript"> 
        function openWin() { 
            var oWnd = radopen("EditForm.aspx", "EditWindow"); 
        } 
 
   
     
    </script> 
 <telerik:RadAjaxManagerProxy ID="RadAjaxManager1" runat="server"> 
            <ajaxsettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                        <telerik:AjaxUpdatedControl ControlID="DetailsView1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                 
            </ajaxsettings> 
        </telerik:RadAjaxManagerProxy> 
     
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource"  
        GridLines= "None" width="55%" AllowPaging="True" AllowSorting="True"  
        AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" Skin="Black" 
        OnPreRender="RadGrid1_PreRender" > 
        <ClientSettings EnablePostBackOnRowClick="true" AllowKeyboardNavigation="true" > 
                <Selecting AllowRowSelect="True" />                
        </ClientSettings> 
        <mastertableview datasourceid="SqlDataSource" AutoGenerateColumns="False"  
                    DataKeyNames="dbID"  
                    ClientDataKeyNames="dbID" 
                    Width="100%" 
                    CommandItemDisplay="Bottom"  
                    PageSize="50"> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                 <telerik:GridBoundColumn  
                            DataField="dbID"   
                            HeaderText="dbID" 
                            ReadOnly="True"  
                            SortExpression="dbID"  
                            UniqueName="dbID" DataType="System.Int32"> 
                        </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn  
                            UniqueName="dbJmeno" 
                            DataField="dbJmeno"  
                     HeaderText="dbJmeno"  
                     SortExpression="dbJmeno"> 
                </telerik:GridBoundColumn> 
                 <telerik:GridBoundColumn  
                 DataField="dbPrijmeni"  
                 HeaderText="dbPrijmeni"  
                     SortExpression="dbPrijmeni"  
                     UniqueName="dbPrijmeni"> 
                 </telerik:GridBoundColumn> 
                 <telerik:GridBoundColumn  
                 DataField="dbStatus"  
                 DataType="System.Int32"  
                     HeaderText="dbStatus"  
                     SortExpression="dbStatus"  
                     UniqueName="dbStatus"> 
                 </telerik:GridBoundColumn> 
            </Columns> 
        </mastertableview> 
        <clientsettings> 
            <selecting allowrowselect="True" /> 
            <scrolling allowscroll="True" usestaticheaders="True" /> 
        </clientsettings> 
    </telerik:RadGrid> 
    <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
         
        SelectCommand="SELECT [dbID], [dbJmeno], [dbPrijmeni], [dbStatus] FROM [tabKlienti]"> 
    </asp:SqlDataSource> 
    <telerik:RadWindowManager showID="RadWindowManager" runat="server" ShowContentDuringLoad="false" 
        VisibleStatusbar="false" ReloadOnShow="true"> 
        <windows> 
    <telerik:RadWindow  
                    ID="EditWindow"  
                    Width="285px"  
                    Height="265px" 
                    NavigateUrl="EditForm.aspx"> 
                </telerik:RadWindow> 
          
    </windows> 
    </telerik:RadWindowManager> 
    <button onclick="openWin(); return false;"> 
        Open Edit form</button> 
    <br /> 
    <div style="margin-left: 440px"> 
    </div> 
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"  
        DataSourceID="SqlDataSource1" Height="50px" Width="125px" > 
        <Fields> 
            <asp:BoundField DataField="dbMistoNarozeni" HeaderText="dbMistoNarozeni"  
                SortExpression="dbMistoNarozeni" /> 
            <asp:BoundField DataField="dbOkresNarozeni" HeaderText="dbOkresNarozeni"  
                SortExpression="dbOkresNarozeni" /> 
            <asp:BoundField DataField="dbNarodnost" HeaderText="dbNarodnost"  
                SortExpression="dbNarodnost" /> 
            <asp:BoundField DataField="dbTypDuchodu" HeaderText="dbTypDuchodu"  
                SortExpression="dbTypDuchodu" /> 
            <asp:BoundField DataField="dbPobytNastoupilDatum"  
                HeaderText="dbPobytNastoupilDatum" SortExpression="dbPobytNastoupilDatum" /> 
            <asp:BoundField DataField="dbOPCislo" HeaderText="dbOPCislo"  
                SortExpression="dbOPCislo" /> 
        </Fields> 
    </asp:DetailsView> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"  
        SelectCommand="SELECT [dbMistoNarozeni], [dbOkresNarozeni], [dbNarodnost], [dbTypDuchodu], [dbPobytNastoupilDatum], [dbOPCislo] FROM [tabKlienti]  WHERE ([dbID] = @dbID)"> 
       <SelectParameters> 
                <asp:ControlParameter ControlID="RadGrid1" DefaultValue="1" Name="dbID" 
                    PropertyName="SelectedValue" Type="String" /> 
            </SelectParameters> 
     
     
    </asp:SqlDataSource> 
    </form> 
</body> 
</html> 
 


MainForm.aspx.cz
public partial class MainForm : System.Web.UI.Page 
    { 
        protected void Page_Load(object sender, EventArgs e) 
        { 
 
        } 
 
 
        protected void RadGrid1_PreRender(object sender, EventArgs e) 
        { 
            RadGrid1.MasterTableView.Focus(); 
        } 
    } 

Iana Tsolova
Telerik team
 answered on 25 May 2009
1 answer
233 views
Hi, I have big problem. I need to have application that have grid, which a can control by keyboard(up and down). And if i change position i need to update data in  detail view by  id. But i have problem. If i set 

<ClientSettings enablepostbackonrowclick="false" AllowKeyboardNavigation="true" >
                <Selecting AllowRowSelect="True" />
              
        </ClientSettings>

keyboard works well, but detail view isnt updating.

if i set enablepostbackonrowclick="true" AllowKeyboardNavigation="true", keyboard isnt working but by mouse clicking on row detail view is updating well.

IS there resolution for working this two things together?

Thanks. Im have WinXP, framework SP1, Q1 2009

Josef

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainForm.aspx.cs" Inherits="StartProject.MainForm" %> 
 
<%@ 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></title> 
</head> 
<body> 
    <form id="form1" runat="server"> 
    <asp:ScriptManager ID="ScriptManager" runat="server"> 
    </asp:ScriptManager> 
 
    <script type="text/javascript"> 
        function openWin() { 
            var oWnd = radopen("EditForm.aspx", "EditWindow"); 
        } 
 
 
           
    </script> 
 <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> 
            <ajaxsettings> 
                <telerik:AjaxSetting AjaxControlID="RadGrid1"> 
                    <UpdatedControls> 
                        <telerik:AjaxUpdatedControl ControlID="RadGrid1" /> 
                        <telerik:AjaxUpdatedControl ControlID="DetailsView1" /> 
                    </UpdatedControls> 
                </telerik:AjaxSetting> 
                 
            </ajaxsettings> 
        </telerik:RadAjaxManager> 
     
         
    <telerik:RadGrid ID="RadGrid1" runat="server" DataSourceID="SqlDataSource"  
        GridLines= "None" width="55%" AllowPaging="True" AllowSorting="True"  
        AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" Skin="Black"> 
        <ClientSettings enablepostbackonrowclick="true" AllowKeyboardNavigation="true" > 
                <Selecting AllowRowSelect="True" /> 
               
        </ClientSettings> 
        <mastertableview datasourceid="SqlDataSource" AutoGenerateColumns="False"  
                    DataKeyNames="dbID"  
                    ClientDataKeyNames="dbID" 
                    Width="100%" 
                    CommandItemDisplay="Bottom"  
                    PageSize="50"> 
            <RowIndicatorColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </RowIndicatorColumn> 
 
            <ExpandCollapseColumn> 
            <HeaderStyle Width="20px"></HeaderStyle> 
            </ExpandCollapseColumn> 
            <Columns> 
                 <telerik:GridBoundColumn  
                            DataField="dbID"   
                            HeaderText="dbID" 
                            ReadOnly="True"  
                            SortExpression="dbID"  
                            UniqueName="dbID" DataType="System.Int32"> 
                        </telerik:GridBoundColumn> 
                <telerik:GridBoundColumn  
                            UniqueName="dbJmeno" 
                            DataField="dbJmeno"  
                     HeaderText="dbJmeno"  
                     SortExpression="dbJmeno"> 
                </telerik:GridBoundColumn> 
                 <telerik:GridBoundColumn  
                 DataField="dbPrijmeni"  
                 HeaderText="dbPrijmeni"  
                     SortExpression="dbPrijmeni"  
                     UniqueName="dbPrijmeni"> 
                 </telerik:GridBoundColumn> 
                 <telerik:GridBoundColumn  
                 DataField="dbStatus"  
                 DataType="System.Int32"  
                     HeaderText="dbStatus"  
                     SortExpression="dbStatus"  
                     UniqueName="dbStatus"> 
                 </telerik:GridBoundColumn> 
            </Columns> 
        </mastertableview> 
        <clientsettings> 
            <selecting allowrowselect="True" /> 
            <scrolling allowscroll="True" usestaticheaders="True" /> 
        </clientsettings> 
    </telerik:RadGrid> 
    <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
         
        SelectCommand="SELECT [dbID], [dbJmeno], [dbPrijmeni], [dbStatus] FROM [tabKlienti]"> 
    </asp:SqlDataSource> 
    <telerik:RadWindowManager showID="RadWindowManager" runat="server" ShowContentDuringLoad="false" 
        VisibleStatusbar="false" ReloadOnShow="true"> 
        <windows> 
    <telerik:RadWindow  
                    ID="EditWindow"  
                    Width="285px"  
                    Height="265px" 
                    NavigateUrl="EditForm.aspx"> 
                </telerik:RadWindow> 
          
    </windows> 
    </telerik:RadWindowManager> 
    <button onclick="openWin(); return false;"> 
        Open Edit form</button> 
 
    <br /> 
    <div style="margin-left: 440px"> 
    </div> 
    <asp:DetailsView ID="DetailsView1" runat="server" AutoGenerateRows="False"  
        DataSourceID="SqlDataSource1" Height="50px" Width="125px"> 
        <Fields> 
            <asp:BoundField DataField="dbMistoNarozeni" HeaderText="dbMistoNarozeni"  
                SortExpression="dbMistoNarozeni" /> 
            <asp:BoundField DataField="dbOkresNarozeni" HeaderText="dbOkresNarozeni"  
                SortExpression="dbOkresNarozeni" /> 
            <asp:BoundField DataField="dbNarodnost" HeaderText="dbNarodnost"  
                SortExpression="dbNarodnost" /> 
            <asp:BoundField DataField="dbTypDuchodu" HeaderText="dbTypDuchodu"  
                SortExpression="dbTypDuchodu" /> 
            <asp:BoundField DataField="dbPobytNastoupilDatum"  
                HeaderText="dbPobytNastoupilDatum" SortExpression="dbPobytNastoupilDatum" /> 
            <asp:BoundField DataField="dbOPCislo" HeaderText="dbOPCislo"  
                SortExpression="dbOPCislo" /> 
        </Fields> 
    </asp:DetailsView> 
    <asp:SqlDataSource ID="SqlDataSource1" runat="server"  
        ConnectionString="<%$ ConnectionStrings:ConnectionString %>"  
        SelectCommand="SELECT [dbMistoNarozeni], [dbOkresNarozeni], [dbNarodnost], [dbTypDuchodu], [dbPobytNastoupilDatum], [dbOPCislo] FROM [tabKlienti]  WHERE ([dbID] = @dbID)"> 
    <SelectParameters> 
                <asp:ControlParameter ControlID="RadGrid1" DefaultValue="1" Name="dbID" 
                    PropertyName="SelectedValue" Type="String" /> 
            </SelectParameters> 
     
     
    </asp:SqlDataSource> 
    </form> 
</body> 
</html> 
 

Iana Tsolova
Telerik team
 answered on 25 May 2009
6 answers
254 views
I have been running into nothing but trouble with the FileExplorer control since I decided to go that direction with some code I am working on. I have not created a sample app yet, but here are the symptoms:

1) If I try to toggle the visibility of the FileExplorer control (regardless of EnableViewState setting), all hell breaks loose. Javascript errors are thrown left and right about the controls inability to load elements of its embedded grid, etc... However, if I leave it visible OR put it in a panel and toggle the panels visibility, the issues go away.

2) I get a permanent spinning loading indicator next to the root folder. If I double click on the + next to it, the folders below it are shown, but the indicator remains.

3) I am after a folder selection solution so I disabled the grid control to the right of the tree control. However, if I leave the grid enabled, I get a constant ajax loading panel indicator in the middle of the control that eventually goes away (30+ seconds) and the directory only contains 3 folders.

My setup:

1) Running the latest build.
2) Heavy use of RadAjaxManager but nothing is updating the FileExplorer control.
3) It is embedded in a RadTabStrip/RadMultiPage (second tab in the strip)

Is anyone else seeing any of these issues?
Fiko
Telerik team
 answered on 25 May 2009
3 answers
91 views
Is there a way to prevent a postback if we are using OnClientAppointmentInserting to present our own custom appointment inserting form?
T. Tsonev
Telerik team
 answered on 25 May 2009
1 answer
119 views
Hi,

I need to set the style of ASP.NET and HTML controls in accordance with Telerik Skins. I need to sert the styles of controls like <asp:panel> and <div>, to conform its appearance with Telerik Skins.

How can I do that. How can I set the style of a <div> or asp:panel so that they can be compatible visually with Telerik Skins ???

Thanks in advance
Paul
Telerik team
 answered on 25 May 2009
2 answers
153 views
I have a scenario here, I need help with.

I have a MasterPage with a TabStrip with 7 tabs. Each Tab navigates to seperate page in the content place holder.

7th tab opens a page with has a TabStrinp with 4 Tabs. Each Tab adds a pageview dynamically and loads a usercontrol in it. Here I am using RadAjaxManager to ajaxify the tabclicks.

On each of these dynamically loaded user controls I need to provide a feature where user can click a button to show a popup window (using radwindow manager), select some values in the popup, close popuup and return the value to the usercontrol field.

All the usercontrols have heavy db access operations on them.

How can I achieve that? I am moving away from infragistics and am trying to use telerik controls. The project is huge and it is difficult to send the sample code.

I have a tight deadline and I have been trying to do it on my own but have run into issues with postbacks and javascripts and all. ANy help will be greatly appreciated.

Thanks,
mss
Paul
Telerik team
 answered on 25 May 2009
1 answer
160 views
We have a graphic toolbar and are adding endcap graphics to each end to make things look better.

However I can't seem to remove the extra space that exists between the endcap graphic and the first/last toolbar graphic.

I had already added the following css to make sure all the toolbar graphics themselves were up against each other:

    <style type="text/css">     
       .RadToolBar .rtbIcon,     
       .RadToolBar .rtbIn,     
       .RadToolBar .rtbMid  {     
            padding: 0 !important;     
        }     
             
        .RadToolBar .rtbItem {     
            margin: 0 !important;     
        }     
    </style>    
 

But that doesn't seem to affect edges.  Is there a margin on the left and right side of the toolbar itself I need to also tweak via css?

Here's a snippet of the html that is the left endcap graphic and the toolbar itself:

                        <div id="primaryNavigation">   
                            <img src="/images/primarynav/pn-bgLeft.png" alt="" border="0" height="41" width="12" />  
                            <telerik:RadToolBar ID="RadToolBar1" runat="server" OnButtonClick="ToolBar1_ButtonClick" Skin="">  
                                <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation>  
                                <Items>  
... 

Thx!
Yana
Telerik team
 answered on 25 May 2009
4 answers
200 views
Hi,

I am having problem using AjaxLoadingPanel. It shows up twice, 1st at above updated control (it is desirable) and 2nd time parallel to 1st at top left corner of the screen.

Design:

<table cellpadding="0" cellspacing="0" border="0" width="100%" runat="Server" id="Table4"> 
                                                            <tr> 
                                                                <td style="text-align: left" width="40%"> 
                                                                    <asp:Label ID="lblSubTitle" runat="server" CssClass="SubTitle" Text="Summary"></asp:Label></td> 
                                                                <td style="text-align: right;"> 
                                                                     
                                                                </td> 
                                                                <td style="text-align: right;" valign="middle"> 
                                                                     
                                                                </td> 
                                                                <td style="text-align: right; display: none;" valign="middle"> 
                                                                     
                                                                </td> 
                                                                <td width="270px" style="text-align: right;"> 
                                                                     
                                                                    <table cellpadding="0" cellspacing="0" border="0" id="tableSearch" runat="server" 
                                                                        width="100%"> 
                                                                        <tr> 
                                                                            <td width="50%" style="text-align: left;"> 
                                                                                <asp:DropDownList Width="120px" ID="ddlFieldName" runat="server" CssClass="clsBtnControl" 
                                                                                    Font-Size="8pt" AutoPostBack="True" OnSelectedIndexChanged="ddlFieldName_SelectedIndexChanged"> 
                                                                                    <asp:ListItem Selected="True" Value="-Select-">-Select-</asp:ListItem> 
                                                                                    <asp:ListItem Value="mf">MF Name</asp:ListItem> 
                                                                                    <asp:ListItem Value="tfname">Client Name</asp:ListItem> 
                                                                                    <asp:ListItem Value="estab_date">Est. Date</asp:ListItem> 
                                                                                </asp:DropDownList> 
                                                                            </td> 
                                                                            <td id="tdSearch" runat="server" style="text-align: center;"> 
                                                                                <asp:TextBox ID="txtSearch" runat="server" Width="130px" CssClass="clsBtnControl" 
                                                                                    Font-Size="8pt"></asp:TextBox> 
                                                                            </td> 
                                                                            <td id="tdSetupDate" runat="server" style="display: none; padding-top: 3px; text-align: center;"> 
                                                                                <radCln:RadDatePicker ID="rdSetupDate" runat="server" Calendar-Skin="Default2006" 
                                                                                    MaxDate="2099/1/1" MinDate="1960/1/1" SharedCalendarID ="RadCalendar1"  UseEmbeddedScripts="false" 
                                                                                    Width="97%"> 
                                                                                </radCln:RadDatePicker> 
                                                                            </td> 
                                                                        </tr> 
                                                                    </table> 
                                                                </td> 
                                                                <td valign="bottom" align="center" style="padding-bottom: 1px;"> 
                                                                    <asp:ImageButton ID="btnsearch1" runat="server" ImageUrl="~/Images/New Button Image/go.gif" 
                                                                         /> 
                                                                </td> 
                                                                <td valign="bottom" align="center" id="TDsearchall" runat="server" style="padding-bottom: 1px;"> 
                                                                    <asp:ImageButton ID="btnShowall" runat="server" ImageUrl="~/Images/New Button Image/btn-all1.gif" 
                                                                         /> 
                                                                </td> 
                                                            </tr> 
                                                            <tr> 
                                                                <td colspan="3"> 
                                                                </td> 
                                                                <td> 
                                                                 
                                                                    <table cellpadding="0" cellspacing="0" width="100%"> 
                                                                        <tr> 
                                                                            <td width="50%"> 
                                                                                &nbsp; 
                                                                            </td> 
                                                                            <td style="text-align: center;"> 
                                                                                <asp:Label ID="lblsearchdate" runat="server" Text="dd/mm/yyyy" Style="display: none;"></asp:Label> 
                                                                            </td> 
                                                                        </tr> 
                                                                    </table> 
                                                                </td> 
                                                                <td colspan="2"> 
                                                                </td> 
                                                            </tr> 
                                                        </table> 
Ajax Setting:

<rada:RadAjaxManager ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest" 
            runat="server" UseEmbeddedScripts="false"  > 
            <AjaxSettings> 
                <rada:AjaxSetting AjaxControlID="tableSearch" > 
                    <UpdatedControls > 
                        <rada:AjaxUpdatedControl ControlID="tableSearch"  /> 
                        <rada:AjaxUpdatedControl ControlID="tdSearch" LoadingPanelID ="LoadingPanelSearch" /> 
                        <rada:AjaxUpdatedControl ControlID="tdSetupDate" LoadingPanelID ="LoadingPanelSearch" /> 
                        <rada:AjaxUpdatedControl ControlID="lblsearchdate"  LoadingPanelID ="LoadingPanel2" /> 
                    </UpdatedControls> 
                </rada:AjaxSetting> 
            </AjaxSettings> 
        </rada:RadAjaxManager> 
        <rada:AjaxLoadingPanel ID="LoadingPanel1" runat="server" InitialDelayTime="0" Transparency="30"> 
            <asp:Image ID="Image1" runat="server" ImageUrl="~/RadControls/AJAX/Skins/Default/Loading.gif" 
                BorderWidth="0px" AlternateText="Loading..."></asp:Image> 
        </rada:AjaxLoadingPanel> 
        <rada:AjaxLoadingPanel ID="LoadingPanelSearch" runat="server" InitialDelayTime="0" 
            Transparency="0"   > 
            <asp:Image ID="Image2" runat="server" ImageUrl="~/RadControls/AJAX/Skins/Default/loading1.gif" 
                BorderWidth="0px" AlternateText="Loading..."></asp:Image> 
        </rada:AjaxLoadingPanel> 
        <rada:AjaxLoadingPanel ID="LoadingPanel2" runat="server" InitialDelayTime="0" Transparency="0"> 
        </rada:AjaxLoadingPanel> 
        <radCln:RadCalendar ID="RadCalendar1" runat="server" Skin="Default2006" UseEmbeddedScripts="false" 
           Visible ="false" > 
            <SpecialDays> 
                <radCln:RadCalendarDay Repeatable="Today" Date=""> 
                    <ItemStyle BackColor="yellow"></ItemStyle> 
                </radCln:RadCalendarDay> 
            </SpecialDays> 
        </radCln:RadCalendar> 

Please let me know what is wrong with these setting. I want to display Loading Panel on Update control.

Thanks,
Gaurav
Pavlina
Telerik team
 answered on 25 May 2009
1 answer
101 views
Hi

I am trying to display the radAlert from User control but I recieve an error "Object Does not support this proprty or method"

I am using the following code below.

Master Page File :  MasterPage.master
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="UploadTest_MasterPage" %> 
 
<!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>Master Page</title> 
</head> 
<body> 
    <form id="form1" runat="server">  
    <asp:ScriptManager ID="scriptManager" runat="server"></asp:ScriptManager> 
 
    <div> 
        <asp:contentplaceholder id="PageContentPlaceHolder" runat="server">  
        </asp:contentplaceholder> 
    </div> 
    </form> 
</body> 
</html> 

RadAlert.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="RadAlert.aspx.cs"   
Inherits="UploadTest_RadAlert" MasterPageFile="~/UploadTest/MasterPage.master" EnableTheming="true" Theme="Default" %> 
 
<%@ Register Src="~/UploadTest/ParentUserControl.ascx" TagName="ParentUserControl" TagPrefix="uc" %> 
 
<asp:Content ID="content" ContentPlaceHolderID="PageContentPlaceHolder" Runat="Server">  
 
<div id="page_maincol">  
 
<table class="emex_outer_container">  
<tr>          
<td> 
              
            <div class="page_box" id="content_page">  
 
                <div class="page_box_title">  
                    <h1> 
                    <span>Rad Alert Test</span> 
                    </h1>         
                </div> 
 
                <div>                                 
                <uc:ParentUserControl ID="ParentUserControl1" runat="server" /> 
                </div> 
            </div> 
</td> 
</tr> 
</table> 
                  
</div> 
          
</asp:Content> 

The source code for the UserControl on the page
UserControl : ParentUserControl.ascx

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ParentUserControl.ascx.cs" Inherits="UploadTest_ParentUserControl" %> 
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %> 
 
 
<%@ Register Src="~/UploadTest/ChildUserControl.ascx" TagName="ChildUserControl" TagPrefix="uc" %> 
 
 
<uc:ChildUserControl runat="server" ID="ChildUserControl1" /> 
 
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Height="75px" Width="75px" Transparency="25" meta:resourcekey="RadAjaxLoadingPanel1Resource1">  
    <asp:Image ID="Image1" runat="server" AlternateText="Loading..." ImageUrl="~/RadControls/Ajax/Skins/Default/Loading.gif" /> 
</telerik:RadAjaxLoadingPanel> 
 
<telerik:RadAjaxManager EnableAJAX="true" ID="RadAjaxManager1" runat="server" > 
    <AjaxSettings> 
        <telerik:AjaxSetting AjaxControlID="ChildUserControl1">  
            <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="ChildUserControl1"   
                        LoadingPanelID="RadAjaxLoadingPanel1" /> 
            </UpdatedControls> 
        </telerik:AjaxSetting> 
    </AjaxSettings> 
    <ClientEvents /> 
</telerik:RadAjaxManager> 
 
<telerik:RadWindowManager ID="windowManager" runat="server" Skin="Vista"   
Behaviors="Close, Move" Height = "700px" Width="900px"  > 
<Windows> 
    <telerik:RadWindow ID="RadWindow1"        
     Skin="Vista" 
     VisibleOnPageLoad = "false" 
     Height="517px" Width="650px" VisibleStatusBar="false"       
     Title="Emex"   
     runat="server"></telerik:RadWindow> 
</Windows> 
<ConfirmTemplate>    
    <div class="windowpopup radconfirm">    
        <div class="dialogtext">    
        {1}    
        </div>    
        <div>    
        <a onclick="$find('{0}').callBack('true');" class="radwindowbutton" href="javascript:void(0);">    
        <span class="outerspan"><span class="innerspan">Yes</span></span></a>     
                            
        <a onclick="$find('{0}').callBack('false');"    
        class="radwindowbutton" href="javascript:void(0);"><span class="outerspan"><span    
        class="innerspan">No</span></span></a>    
                                
    </div>    
</div>    
</ConfirmTemplate> 
</telerik:RadWindowManager> 

The User Control also has another user control from which tries to print the RadAlert on which I get the error message.

File : ChildUserControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ChildUserControl.ascx.cs" Inherits="UploadTest_ChildUserControl" %> 

The code behind for this control

File : ChildUserControl.ascx.cs

using System;  
using System.Data;  
using System.Configuration;  
using System.Collections;  
using System.Web;  
using System.Web.Security;  
using System.Web.UI;  
using System.Web.UI.WebControls;  
using System.Web.UI.WebControls.WebParts;  
using System.Web.UI.HtmlControls;  
 
using Telerik.Web.UI;  
 
public partial class UploadTest_ChildUserControl : System.Web.UI.UserControl  
{  
    protected void Page_Load(object sender, EventArgs e)  
    {  
        Message = "Sample RadAlert Message";  
    }  
 
    public string Message  
    {  
        set  
        {  
            RadAjaxManager ajaxManager = RadAjaxManager.GetCurrent(this.Page);  
            ajaxManager.ResponseScripts.Add(string.Format("radalert('{0}', 330, 120)", value));  
        }  
    }  
} 

The teleriks dlls in my bin folder are 

Telerik.Web.UI - 2008.2.826.35
Telerik.Web.Design - 2007.3.1314.20
Telerik.Charting - 2.0.2.0

Please Advice!

Thanks
Prasad




Iana Tsolova
Telerik team
 answered on 25 May 2009
Narrow your results
Selected tags
Tags
+? more
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Tien
Top achievements
Rank 1
Iron
Krasimir
Top achievements
Rank 3
Bronze
Iron
Iron
Cedar
Top achievements
Rank 1
Iron
Emil
Top achievements
Rank 1
Iron
Kyle Watson
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?