Telerik Forums
UI for ASP.NET AJAX Forum
5 answers
253 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
129 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
203 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
52 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
233 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
2 answers
96 views
Hi

I am  very new to telerik controls and still learning how to use them
Currently I have a telerik grid which has a dropdowncolumn getting the selected value fro the database.
but while editing, i want to show the list of values from an enumeration.
Can anybody tell me how to achieve this?
needy
Top achievements
Rank 1
 answered on 29 Dec 2010
2 answers
47 views

The schedular control isn't rendered correctly in any version of Opera as seen in the attached screenshot.

(Opera 11)

Kamen Bundev
Telerik team
 answered on 29 Dec 2010
1 answer
89 views
Telerik.Web.UI v2010.3.1109.35

We have a radgrid (Theme/Skin="Windows7") and we've added a custom header row like this:

// ***** Add Grid Header Summary Row *****
GridItem[] header = this.MyWorkRadGrid.MasterTableView.GetItems(GridItemType.Header);
//get the current THead element   
GridTHead head = ((GridTHead)header[0].Parent.Controls[1].Parent);
 
//create a new GridHeaderItem which will be the new row   
GridHeaderItem newHeaderItem = new GridHeaderItem(this.MyWorkRadGrid.MasterTableView, 0, 0);
newHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = " " });
newHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = " " });
newHeaderItem.Cells.Add(new GridTableHeaderCell() { Text = count, ColumnSpan = 5, Width = new Unit(100, UnitType.Percentage), HorizontalAlign = HorizontalAlign.Left, VerticalAlign = VerticalAlign.Middle });
 
for (int i = 0; i < head.Controls.Count; i++)
{
    // loop through the header controls collection and find the 'row' that has the same type of GridHeaderItem
    // Then insert the new row just above it - remember the 0 based index will push the original header row down
    if (head.Controls[i].GetType() == newHeaderItem.GetType())
    {
        head.Controls.AddAt(i, newHeaderItem);
    }
}

Our custom inserted header row takes on the windows 7 grid theme, which is cool.
But my boss wants to see if we can style this custom row with your existing "sorted by" column css style - which is like a split gradient.

If you look at the attached image (the customer data is fake data) -
The grid data is sorted by the "Contact Name" column, and so that column header has one of your css classes on it (circled in red)
The custom header I added is the one with the text "(9) Recent Contacts" (red arrow) and that is the row we want your sorted css class on.

Thanks,
Ray
Iana Tsolova
Telerik team
 answered on 29 Dec 2010
2 answers
374 views
The bolded item is where I am running into a problem.  When I run I get the javascript object expected error.  And this is what is in the dynamic code:
onclick="return confirmDelete(&quot;911 ETC, Inc.&quot;);"

<telerik:GridTemplateColumn>
                            <ItemTemplate>
                                <asp:Button ID="deleteButton" style="text-decoration:none" CommandName="Delete" runat="server" Text="Delete" CommandArgument='<%# Eval("VendorCode") + "," + Eval("Vendor") %>' OnClick="vendor_Delete" Enabled="false"
OnClientClick='<%# String.Format("return confirmDelete(\"{0}\");", Eval("Vendor"))%>' >
                                </asp:Button>

                                <asp:Button ID="editButton" style="text-decoration:none" CommandName="EditButton" runat="server" OnClick="vendor_Edit"
                                    Text="Edit" CommandArgument='<%# Eval("VendorCode") + "," + Eval("Vendor") %>' >
                                </asp:Button>
                           </ItemTemplate>
                           <ItemStyle Width="115px" VerticalAlign="Top" />
                    </telerik:GridTemplateColumn>
Amanda
Top achievements
Rank 1
 answered on 29 Dec 2010
1 answer
64 views
hi guys ,
I develop a application page for sharepoint 2010 and use RadScheduler , how i can use resx files ?
where I should copy these files ?
thanks
Kalina
Telerik team
 answered on 29 Dec 2010
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?