Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
126 views
Hi,

When I try to upload a png image with the radeditor image manager, it always fails.
It doesn't show an error, but the uploaded file is 0kb.
The filetype is allowed (File extensions allowed:*.jpg, *.jpeg, *.png, *.bmp, *.gif)
It only happens with png.

What could be wrong?

Tnx.
Igor Kalders
Top achievements
Rank 1
 answered on 18 Nov 2010
3 answers
150 views
Hi everyone,

     Anyone noticed that when you hard code a pagination size (in the code behind) for a radgrid widget the default page size that appears in the drop-down (mine has options 10, 15, 20 and 50, with 15 as default) disappears?
   Has anyone else noticed this?

Example:

I have options 10, 15, 20 and 50. 15 is default. They all appear.

However when I set say (in the code behind): RadGrid1.Pagesize = 50;

what now happens is that I see (when I run the code) the following options: 10, 20 and 50. i.e. 15 has disappeared!

Ques: Is this a bug??
Vasil
Telerik team
 answered on 18 Nov 2010
1 answer
159 views
Hi,

I have a problem when i try to filter or group by any column of GridTemplateColumn Type, with anyother type there is no problem.
ther specific exception is: Microsoft JScript runtime error: Sys.InvalidOperationException: Handler was not added through the Sys.UI.DomEvent.addHandler method.
(Exception Screenshot is attached)

The declaration for the specific column is:
<telerik:GridTemplateColumn HeaderText="GMT" SortExpression="GMT" UniqueName="GMT" >
<HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
<ItemTemplate>
<asp:Label runat="server" ID="lblGMT" Text='<%# Bind("GMT") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<br />
<telerik:RadNumericTextBox runat="server" Width="100px" ID="txtGMT" Text='<%# Bind("GMT") %>'  DataType="System.Int16" MaxValue="12" MinValue="-12" NumberFormat-DecimalDigits="0" ShowSpinButtons="true" />
<span style="color: Red">*</span><br />                                           
<asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="txtGMT"
ErrorMessage="This field is required" runat="server" Display="Dynamic">
</asp:RequiredFieldValidator>
</EditItemTemplate
</telerik:GridTemplateColumn>

The scenario:
I have  a MutliView and tabstrips. I have a PageView that contains a combobox and a Radgrid, all with RadAjaxManagerProxy with a MasterPage. The combobox updates the RadGrid, everything works fine just when i try to filter or group by those kind of columns the app crushes with the exception.

I hope you can help me.

Best Regards.
-Luis
Marin
Telerik team
 answered on 18 Nov 2010
2 answers
286 views
I have two pages that use a RadAjaxLoadingPanel for a smooth refresh of a RadGrid. In each case, the RadGrid uses an ASP.NET ObjectDataSource to load data, and the object data source handles all paging, sorting, and filtering. The RadGrids enable multicolumn sorting and column reordering. Both pages use an ASP.NET timer for periodic refresh.

One page works perfectly; the page refresh is limited to the grid, for timer, paging, sorting, and column ordering. The loading panel shows during refresh, and the refresh is smooth. On the other page, the loading panel never shows. In the VS development server, the refreshes are usually limited to the grid (not always); however in IIS, I always get a full-page reload instread of a refresh, for all events (timer, paging, sorting, column reorder).

Environment: Windows 7 x64, VS 2010, IIS 7, Telerik ASP.NET Ajax Q2 2010 SP2.

Here is the markup for the loading panel on the page that fails. The page that works is essentially identical except that there are no scripts or services referrenced inside the radScriptManager.

 

 

 

<telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    <Scripts>
        <asp:ScriptReference Path="~/JavaScript/SynapseStudyCache.js" />
    </Scripts>
    <Services>
        <asp:ServiceReference Path="~/WebServices/Synapse/Caching.asmx" />
    </Services>
</telerik:RadScriptManager>
<telerik:RadAjaxLoadingPanel ID="RadiologistWorklistLoadingPanel" runat="server" InitialDelayTime="0" MinDisplayTime="300" />
<telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
    <AjaxSettings>
        <telerik:AjaxSetting AjaxControlID="Timer1">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rdWorkList" LoadingPanelID="RadiologistWorklistLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
        <telerik:AjaxSetting AjaxControlID="rdWorkList">
            <UpdatedControls>
                <telerik:AjaxUpdatedControl ControlID="rdWorkList" LoadingPanelID="RadiologistWorklistLoadingPanel" />
            </UpdatedControls>
        </telerik:AjaxSetting>
    </AjaxSettings>
</telerik:RadAjaxManager>

 

There are no javascript references to either the loading panel or the RadGrid, and the code-behind handles only the ItemDataBound event for the grid. The code-behind handles Timer1.Tick but does nothing with it.

Any suggestions on why the page does not refresh properly?

Diane
Top achievements
Rank 1
 answered on 18 Nov 2010
0 answers
119 views

Hi,

i have a rad grid and i want to open popup to get data from web service and attach the column in grid.
in my grid auto add/edit and delete is true...

subActionTableView.AllowAutomaticDeletes = true;
            subActionTableView.AllowAutomaticUpdates = true;
            subActionTableView.AllowAutomaticInserts = true;
            subActionTableView.AutoGenerateColumns = false;

if i am using hyperlink colum then the link is not coming in add/edit popup window.

GridHyperLinkColumn hyperlinkColumn = new GridHyperLinkColumn();
            hyperlinkColumn.HeaderText = "AIPS Task";
            hyperlinkColumn.DataNavigateUrlFields = new string[] { "TaskId" };
            hyperlinkColumn.DataTextField = "EpssTask";
            hyperlinkColumn.Target = "_blank";
            hyperlinkColumn.DataNavigateUrlFormatString = "../TaskSelector.aspx?disableMaster=1";
            hyperlinkColumn.HeaderStyle.Width = new Unit("71");
            subActionTableView.Columns.Add(hyperlinkColumn);

please suggest...

waiting for your reply.
bharat kumar
Top achievements
Rank 1
 asked on 18 Nov 2010
1 answer
159 views
Hi all,

I'm using AsyncUpload with RadAjaxManager and RadBinaryImage to upload images, and preview them immediately in the page, before the Page Postback. This works fine, the preview works very well; I used the exact same setup as is shown in the "Ajax processing" sample.

However, I'd like to know which file was uploaded, when my page is posted back properly by the user. Unfortunately, the AsyncUpload1.UploadedFiles collection is empty. If I disable the RadAjaxManager.ajaxRequest() call (thereby disabling the preview), the UploadedFiles collection does work.

Is there a way to let these techniques work together? How can I retain info about the uploaded files until postback?

Thanks for any info.
Genady Sergeev
Telerik team
 answered on 18 Nov 2010
2 answers
42 views
<telerik:RadWindow runat="server" ID="radWindowSaved" AutoSize="true" Modal="true"
    VisibleStatusbar="false" VisibleTitlebar="false" Behaviors="None" Width="400px"
    Height="280px">
    <ContentTemplate>
        <div id="SavedPopUp" class="PopUp">
            <div id="SavedPopUpContent" class="PopUpContent">
                <img src="../../images/floppy-disk-icon_64x64.gif" style="position: absolute; top: 24px;
                    left: 22px" />
                <div style="position: absolute; left: 104px; top: 42px; width: 278px;">
                    <span class="TQWarningHeaderContent">Form has been saved.</span>
                </div>
                <div class="PopUpOKButton">
                    <input type="button" name="SavedPopUpOK" value="OK" id="SavedPopUpOK" class="TQButtonActive"
                        style="width: 105px;" onclick="CloseWindow($find(radWindowSaved));" /></div>
            </div>
        </div>
    </ContentTemplate>
</telerik:RadWindow>

I have the above code which renders fine in IE8 and FF 3.x but in IE 6 and 7 (compatibility mode) it is not rendered correctly. I even  tried specifying a Height and Width along with AutoSize="true".

Please help!
p
Top achievements
Rank 1
 answered on 18 Nov 2010
1 answer
39 views
Hi,
Is there any way so that the position of the splitbar should not change when the panel get collapsed?
Dobromir
Telerik team
 answered on 18 Nov 2010
7 answers
153 views
I have tried to get this working for the 2009 release, but I am having no luck.

http://www.telerik.com/community/forums/aspnet/calendar/popup-calendar-does-not-close-when-clicking-on-scrollbars.aspx

What I need to be able to do is close all (telerik) datepicker, timepicker, colorpicker, combo popup windows when I scroll, as I do not know the name of these controls at design time as they are dynamically loaded I need some way of getting them all.

Combo is easy as there is an array

        function closeCombos() {
            for (i = 0; i < Telerik.Web.UI.RadComboBox.ComboBoxes.length; ++i) {
                Telerik.Web.UI.RadComboBox.ComboBoxes[i].hideDropDown();
            }
        }
Richard M
Top achievements
Rank 1
 answered on 18 Nov 2010
6 answers
313 views
Is it possible to expose the context menu when the user performs a single left-click on a time-slot? 
Veronica
Telerik team
 answered on 18 Nov 2010
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?