Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
1.0K+ views
I want to after 1 minute. RadGrid automatically refresh again.
Jimmy
Top achievements
Rank 1
 answered on 29 Dec 2010
3 answers
55 views
Telerik Developers,

I have 2 Menu Controls Menu A | Menu B.  I'm using both of them on the same page.  I've created 2 Custom Styles for each of them using the Visual Style Builder and when I add the CSS for Menu B to my CSS Folder, Menu A Text color and margins change as they're both responding to ".RadMenu".  Why  didn't all my styles change to .RadMenuX?  Is this suppose to happen?
Kevon Hayes
Top achievements
Rank 1
 answered on 29 Dec 2010
3 answers
145 views

I have an extra RadGrid as Detail Table which needs to be editable (update, insert, delete). 

I thought that DetailTable contains the needed Event Handlers for that but obviously i was wrong. 

So now, i don't know how do i do that. I am using RadGrid1_DetailTableDataBind event to bind the nested Grid to Datatable:

Dim dataItem As GridDataItem = CType(e.DetailTableView.ParentItem, GridDataItem)
 
 If e.DetailTableView.Name = "Payments" Then
     Dim PurchaseID As Integer = Convert.ToInt16(dataItem.GetDataKeyValue("SaleID").ToString)
     e.DetailTableView.DataSource = PurchasesAccess.GetPayments(PurchaseID)
 End If

However i still don't know how do i call UpdateCommand, InsertCommand and DeleteCommand for the grid which is detail table. 

I am not using SqlDataSource objects and such. Rather i am using classes and stored procedures. 

Thanks

Elliott
Top achievements
Rank 2
 answered on 29 Dec 2010
5 answers
97 views
After switching to Q3 dlls my advanced template modal dialog has no background. Looking at it in Chrome there seems to be another style overriding the original one but since this is all coming from axd not sure how to correct it. If I switch back to Q2 dll the dialog renders as expected. Screenshots attached.

Kamen Bundev
Telerik team
 answered on 29 Dec 2010
0 answers
79 views
I am running into an issue picking up control clientIDs when it comes to master/content pages.  For example, using $find("<%= controlName.ClientID %>") in a single page would allow me to access the controls id.  However, if I place the same code in a content page, I get a 'null' error.  It cannot find the control.  Below is the content page I am attempting to access a controls ID.  Any help would be appreciated.
<%@ Page Title="" Language="C#" MasterPageFile="~/MES.master" AutoEventWireup="true" CodeBehind="timesheet.aspx.cs" Inherits="ESPS.Timesheet.timesheet" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
 
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
 
    <asp:ScriptManagerProxy runat="server"></asp:ScriptManagerProxy>
     
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
    <script type="text/javascript">
        var btn = $find("<%# rBtnTest.ClientID %>");
        alert(btn);
    </script>
    </telerik:RadCodeBlock>
        
    <div style="background-color: Blue;">
    
        <telerik:RadButton runat="server" ID="rBtnTest" Text="Test" />
         
    </div>
   
</asp:Content>


Disregard this post, I have figured the out the problem. 


Marcial
Top achievements
Rank 1
 asked on 29 Dec 2010
5 answers
237 views
We have a page that primarily features a RadScheduler control. Certain actions fire an Ajax request and we refresh the Scheduler in these cases. The Scheduler always refreshes properly, but the Loading Panel only shows occasionally. I haven't been able to determine a set pattern in terms of when it shows/doesn't show yet. I believe that I have the controls set up properly. Has anyone else ran into an issue like this before? I have tried to set up events for RequestStart and RequestEnd which manually hide/show the loading panel and this works a little better, but still not consistently. Any tips would be appreciated! Below is a sample of the code that I'm using.

    <telerik:RadAjaxManager ID="ajxmgr" runat="server" OnAjaxRequest="ajxmgr_AjaxRequest"
        UpdatePanelsRenderMode="Inline">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="ajxmgr">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="rdScheduler" LoadingPanelID="lpMdl" />
                    <telerik:AjaxUpdatedControl ControlID="control1" />
                    <telerik:AjaxUpdatedControl ControlID="dtPckr" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="rdScheduler">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="RadCalendar1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
        <ClientEvents OnRequestStart="RequestStart" OnResponseEnd="ResponseEnd" />
    </telerik:RadAjaxManager>
    <telerik:RadAjaxLoadingPanel ID="lpMdl" runat="server" Transparency="20" BackColor="#E0E0E0"
        IsSticky="false" InitialDelayTime="100">
        <div class="ldpnl">
            Please Wait...
            <br />
            <img src="images/icons/ajax-loader2.gif" alt="loading..." style="padding-top: 15px;" />
        </div>
    </telerik:RadAjaxLoadingPanel>

Thanks!

Jeff
Tsvetoslav
Telerik team
 answered on 29 Dec 2010
3 answers
114 views
Hello,

We have added the ImageManager in our Rad Editor. It's working fine, except when we try to upload images with certain 'invalid' characters (ex. '#'). Is there any work around for this? The image is not displayed when we try to insert it in the rad editor.


Thanks
Rumen
Telerik team
 answered on 29 Dec 2010
6 answers
195 views
I have a complicated, though I suspect not unique scenario.

1. I have a page that is used to edit a record on a database.  The edit screen is shown as a popup form within the main page using a RadWindow control (definition as thus:...)

 

 

 

<telerik:RadWindow ID="wndPopup" runat="server" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" Skin="ControlCentre" VisibleOnPageLoad="false" VisibleStatusbar="false" VisibleTitlebar="true" Modal="true" ShowContentDuringLoad="false" Behaviors="Close" style="z-index:8000 !important" > </telerik:RadWindow> 



2. The popup page uses a master page to control the look and feel etc..  This has the following defined on the top of the page:

 

 

    <form id="form1" runat="server">  
         
        <telerik:RadScriptManager id="ScriptManager1" runat="server" EnablePageMethods="true" EnablePartialRendering="true" />           
        <telerik:RadAjaxManager ID="RadAjaxManager2" runat="server" EnableAJAX="true" EnableHistory="true" EnableEmbeddedScripts="true" DefaultLoadingPanelID="pnlLoading2" > </telerik:RadAjaxManager> 
 
        <telerik:RadAjaxLoadingPanel id="pnlLoading2" Runat="server" IsSticky="true" CssClass="divPleaseWait" InitialDelayTime="1" MinDisplayTime="250" > 
            <div class="divPleaseWaitSmall">  
                <div class="divPleaseWaitMsg">  
                    <asp:Image ImageUrl="~/_img/loading.gif" AlternateText="Please Wait" ID="Image2" runat="server"/><br /> 
                    <p><strong>Please Wait</strong><br />We're working on your request...</p>                
                </div>               
            </div>   
        </telerik:RadAjaxLoadingPanel> 
          
        <telerik:RadWindowManager id="wndManager2" runat="server" Skin="ControlCentre" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false" ></telerik:RadWindowManager> 
 

 

The RadWindowManager is used to show nice alerts to the user indicating that the validation isn't correct etc...


3. The popup page (content page not master page) has a checkbox on it to show / not show a datetime picker.  On checking the checkbox, the page should callback to the server to see if the datetime picker should be visible or not... The page has the following in the code:..

At the top of the page:

<asp:Content ID="Content5" ContentPlaceHolderID="cphServerControls"  Runat="Server">  
    <telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="chkDateEd" EventName="CheckedChanged">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="lblNotDiscontinued"  /> 
                    <telerik:AjaxUpdatedControl ControlID="dtpDateEnd" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            <telerik:AjaxSetting AjaxControlID="hidUpdateField" EventName="ValueChanged">  
                <UpdatedControls> 
                <telerik:AjaxUpdatedControl ControlID="cphMainPage" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
 
</asp:Content> 

In the content of the page:

                <asp:Panel ID="Panel6" runat="server" CssClass="divStandardForm">  
                   <asp:Label CssClass="formlabel" ID="lblEndDate" AssociatedControlID="pnlDateEnd" Text="End Date:" runat="server"></asp:Label> 
                   <asp:Panel id="pnlDateEnd" runat="server">  
                       <asp:CheckBox runat="server" ID="chkDateEd" AutoPostBack="true" /><span>&nbsp;&nbsp;<asp:label  ID="lblNotDiscontinued" runat="server" CssClass="OkData" Text="Continues, Click To Set Date"></asp:label><telerik:RadDateTimePicker ID="dtpDateEnd" runat="server" PopupDirection="TopLeft" ></telerik:RadDateTimePicker></span>  
                   </asp:Panel> 
                </asp:Panel>    

It seems to me that all of the AJAX is working well... the date picker control appears / hides correctly and all of the RadAlert messages appear correctly.  All of the AJAX looks ok!

However, the problem is that my loading panel is never displayed... ever! :(   

This is causing me:
(a) serious headaches as I've spent lots of hours looking at it
(b) project slippage caused by (a)
(c) lots of abuse from customers as this looks poor without a "please wait" message


Please help me try to recover my sanity

Simon
José Mª
Top achievements
Rank 1
 answered on 29 Dec 2010
1 answer
50 views
Hi,

I am developing a custom webpart for SharePoint 2010, and I have used Telerik RadGrid for ASP.Net in the webpart to display data.
Also, I am exposing some custom properties of webpart in such a way that, they can be set by the end user by doing 'Edit web part'.

Ideally, when the user clicks on 'Edit Web Part', enters some value  in some control (say textbox) in the Editor Pane, clicks on 'Apply' and then clicks on 'Ok', the value has to be set to the property of the webpart and it should be persistent.
My observation is, if I add Telerik radgrid to the webpart, the value is not persisting, and if I do not add Telerik radgrid, the value is persisting.
Kindly help on this issue.

Thanks,
Sumanth
Tsvetoslav
Telerik team
 answered on 29 Dec 2010
2 answers
223 views
I have a RadGrid there is Item template in it containing a asp.net Hyperlink . I want that, onclick of this hyperlink some event in code behind to be fired with respect to the that Item. I have the event code written in the CSharp. Is that possible ? How ?
dotnetrockerzzz
Top achievements
Rank 2
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?