Telerik Forums
UI for ASP.NET AJAX Forum
6 answers
203 views
Hello,

I have the following RadAsyncUpload control on my page:
I set the EnableInlineProgress property to false but still i see the uploaded files above the control when selecting files.

Also when i set the following property:

ControlObjectsVisibility

 

="None"

 

 

 


I see when i debug that this property throws an InvalidCast exception.


is this a bug? Im using the 2010.3.1317.35 build


<

 

telerik:RadAsyncUpload ID="radUplFonts" runat="server" Width="290px" InputSize="35" MultipleFileSelection="Automatic" AllowedFileExtensions="otf,ttf" EnableInlineProgress="false" />

 

 

 

Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 05 Apr 2011
3 answers
343 views
With the following grid
<telerik:RadGrid ID="rgRates" runat="server" AutoGenerateColumns="false" Visible="true"
    <MasterTableView DataKeyNames="RecordID" EditMode="InPlace" CommandItemDisplay="Top"
        <CommandItemSettings AddNewRecordText="" AddNewRecordImageUrl="../../App_Themes/Default/images/Add.gif" RefreshText="Refresh" /> 
        <Columns> 
            <telerik:GridBoundColumn DataField="RecordID" Visible="false" /> 
            <telerik:GridEditCommandColumn ButtonType="LinkButton" CancelText="Cancel" EditText="Edit" UpdateText="Save" /> 
            <telerik:GridDateTimeColumn DataField="DateStart" HeaderText="Start" DataFormatString="{0:d}" ColumnEditorID="rgRatesDateEditor" /> 
            <telerik:GridDateTimeColumn DataField="DateEnd" HeaderText="End" DataFormatString="{0:d}" ColumnEditorID="rgRatesDateEditor" /> 
            <telerik:GridNumericColumn DataField="Commission" HeaderText="Commission" HeaderStyle-HorizontalAlign="Right" DataFormatString="${0:N4}" ItemStyle-HorizontalAlign="Right" ColumnEditorID="rgRatesCommission" /> 
            <telerik:GridNumericColumn DataField="Revenue" HeaderText="Revenue" HeaderStyle-HorizontalAlign="Right" DataFormatString="${0:N4}" ItemStyle-HorizontalAlign="Right" ReadOnly="true" /> 
            <telerik:GridButtonColumn ButtonType="LinkButton" Text="Delete" CommandName="Delete" ConfirmDialogType="Classic" ConfirmTitle="Confirm Delete" ConfirmText="Are you sure you want to delete the specified record?" /> 
        </Columns> 
    </MasterTableView> 
</telerik:RadGrid> 
<telerik:GridDateTimeColumnEditor ID="rgRatesDateEditor" runat="server" TextBoxStyle-Width="90" /> 
<telerik:GridNumericColumnEditor ID="rgRatesCommission" runat="server" NumericTextBox-Width="50" NumericTextBox-Type="Number" NumericTextBox-SelectionOnFocus="None" NumericTextBox-Label="$" NumericTextBox-IncrementSettings-InterceptArrowKeys="false" /> 
 

bound to a list of objects where:
"RecordID" type is Integer
"DateStart" type is Date
"DateEnd" type is Date
"Commission" type is Decimal
"Revenue" type is Nullable Decimal

Clicking the "Add" button to add a new InPlace edit row generates the following error:

"Object reference not set to an instance of an object." in the method "Telerik.Web.UI.GridNumericColumn.FormatDataValue"

Assembly Version: 2009.2.701.35

Albert
Top achievements
Rank 1
 answered on 05 Apr 2011
1 answer
176 views


We are planning to use RadEditor for creating our well formatted documents.

We want to create Text at certain positions in the editor.
These positions need to be defined in RadEditor by Creating Tab or Indent positions.

Example -

 This        text  is     indented
 and         starts at  certain        tabbed positions!

Please let me know how I can do this in RadEditor.

thanks
Shweta

Neil
Top achievements
Rank 1
 answered on 05 Apr 2011
2 answers
114 views
I noticed that after I submit a form that fails validation, my window (with autosize="true" set) does not auto-resize to account for the validation summary.

In my click event, I am trying to call autoSize() directly if IsValid id false without much success.  

private void Save_Click(object sender, EventArgs e)
        {
            if (this.IsValid)
            {
                    // save
            }
            else
            {
                    string autoSize = "getRadWindow().autoSize(true);";
                    // Register a startup script which will manually call autoSize() on radWindowActivity
                    RadScriptManager.RegisterStartupScript(
                    this,
                    this.GetType(),
                    "resizeWindow",
                    autoSize,
                    true);
            }

Neil
Top achievements
Rank 1
 answered on 05 Apr 2011
4 answers
140 views
Greetings,

 
 <telerik:RadTabStrip ID="RadTabStrip1" runat="server"   
SelectedIndex="0" MultiPageID="TabContainer1" Width="800px" >  
    <Tabs>  
    <telerik:RadTab runat="server" Text="tab1" PageViewID="tbpnl1" Selected="True" >  
    </telerik:RadTab>  
    <telerik:RadTab runat="server" Text="tab2" PageViewID="tbpnl2" >   
    </telerik:RadTab>  
    <telerik:RadTab runat="server" Text="tab3" PageViewID="tbpnl3" >  
    </telerik:RadTab>  
                                   
    </Tabs>  
</telerik:RadTabStrip>  
  
    <telerik:RadMultiPage ID="TabContainer1" runat="server" SelectedIndex="0"   
    Width="800px" Height="180px" >  
                              
    <telerik:RadPageView ID="tbpnl1" runat="server" Width="800px" Height="180px" >  
                                   
       <telerik:RadGrid ID="radgrid1" runat="server"  Width="800px" Height="180px"   
 
 
 

I'm using simple binding for radgrid, there is one grid in each pageview, as 1st load the page everything looking fine but  I am facing a problem when I click my asp:button to bind radgrids again, only the selected tab grid looks fine and other two grids are behaving like in img file
before(bfr.jpg) and after(aftr.jpg) clicking refresh button


Rony
Top achievements
Rank 1
 answered on 05 Apr 2011
5 answers
133 views
Hello,

I'm trying to create two ListBoxes, where items can be transferred from one ListBox to the other. The problem is that when items are transferred the items do not look like the original (they are missing the bound image). 

Here is the code I am using: 
     
                <telerik:RadListBox runat="server" ID="RadActorListBoxSource" Height="400px" Width="300px"
                    AllowTransfer="true" AllowTransferOnDoubleClick="true" ButtonSettings-ShowTransferAll="false"
                    EnableDragAndDrop="true" TransferToID="RadActorListBoxDestination" SelectionMode="Multiple"
                    DataSourceID="LinqDataSource4" CausesValidation="false" TransferMode="Move" DataValueField="ActorId">
                    <ItemTemplate>
                        <div>
                            <telerik:RadBinaryImage runat="server" ID="ActorImage" Width="50px" DataValue='<%# ((Binary) Eval("ActorImage")).ToArray() %>'
                                AutoAdjustImageControlSize="False" />
                            <%#  Eval("Name") %>
                        </div>
                    </ItemTemplate>
                </telerik:RadListBox>
                <telerik:RadListBox runat="server" ID="RadActorListBoxDestination" Height="400px"
                    Width="300px" EnableDragAndDrop="true" TransferMode="Move" SelectionMode="Multiple"
                    EmptyMessage="Please select at least one actor" CausesValidation="true" ValidationGroup="addSceneSubmit">
                    <ItemTemplate>
                        <div>
                            <telerik:RadBinaryImage runat="server" ID="ActorImage" Width="50px" DataValue='<%# ((Binary) Eval("ActorImage")).ToArray() %>'
                                AutoAdjustImageControlSize="False" />
                            <%#  Eval("Name") %>
                        </div>
                    </ItemTemplate>
                </telerik:RadListBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ControlToValidate="RadActorListBoxDestination"
                    ErrorMessage="Please select at least one actor" ValidationGroup="addSceneSubmit">
                </asp:RequiredFieldValidator>
<asp:LinqDataSource ID="LinqDataSource4" runat="server" ContextTypeName="DataClassesDataContext"
        OrderBy="Name" Select="new (ActorId, Name, ActorImage)" TableName="Actors">
    </asp:LinqDataSource>

Any ideas what is going on? 

Thanks,
Zeyad
Helen
Telerik team
 answered on 05 Apr 2011
6 answers
216 views
Hi,

I have fully ajaxified app, inside 1 dynamically loaded user control I have async upload:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUploadElementAttachments"  MultipleFileSelection="Automatic"<BR>                        
MaxFileInputsCount="5" MaxFileSize="31457280" InputSize="50"  Width="100%"  OnFileUploaded="RadAsyncUploadElementAttachments_FileUploaded"<BR>                        
OnClientFilesUploaded="onClientFilesUploaded"  OnClientFileUploading="onClientFileUploading"  TemporaryFolder="" ></telerik:RadAsyncUpload>

Above I have:

<script type="text/javascript">
        function onClientFileUploading() {
            getRadProgressManager().startProgressPolling(); 
        }
  
        function onClientFilesUploaded() {
            //getRadProgressManager().hideProgressAreas();
        }
  
        Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }
    </script>

Once I upload file, polling starts and contunies (I can see in Fiddler constant requests to /Telerik.RadUploadProgressHandler.ashx
When I upload another file, polling speed increases, I believe it's because getRadProgressManager().startProgressPolling();  is called again, another file upload - again, speed of polling increases.

ProgressManager and ProgressArea are in masterpage and are outside of any update panels:
<telerik:RadProgressManager ID="Radprogressmanager1" runat="server" RegisterForSubmit="false"  />
    <telerik:RadProgressArea ID="progressArea1" runat="server" Culture="(Default)" Height="200px" Skin="Default" Width="400px" style="position: absolute !important; top: 300px !important; left: 280px !important; z-index:10100 !important;"  />

Question is:how to stop it from polling, I would like to start/stop polling manually (this will also solve poll speed increase issue, I think)?

P.S.: getRadProgressManager().hideProgressAreas(); is commented out cause progress area automatically disappears when upload has completed. Also when I load another user control polling speed drops to initial speed (first file upload case)

Thanks!
Shukhrat Nekbaev
Top achievements
Rank 1
 answered on 05 Apr 2011
2 answers
133 views
In the AdvancedInsertTemplate, if you use a radcombobox, expand it, and scroll with the mouse while its expanded, the list breaks from the combobox. You can view this occurance going here:
 http://demos.telerik.com/aspnet-ajax/scheduler/examples/advancedformtemplate/defaultcs.aspx then
Edit an appointment then expand or drop down  reminder or  room radcomboboxes. Afterwards, scroll with your mouse while its expanded.

I believe the issue is that the radscheduler is not modal.  If we can set the radscheduler to modal or not move in the background that would be great.

Jeremy
Kalina
Telerik team
 answered on 05 Apr 2011
0 answers
49 views
If I select a TimeSlot in javascript code, get_selectedSlots() does not update correctly.

function TimeSlotContextMenu(sender, eventArgs) {
        var RadScheduler = $find("<%= RadScheduler.ClientID %>");
        // RadScheduler.get_selectedSlots().length = 1
        eventArgs.get_targetSlot().set_selected(true);
        // RadScheduler.get_selectedSlots().length still = 1
}

I'm using 2010.3.1109.40 version.
Jorge
Top achievements
Rank 1
 asked on 05 Apr 2011
5 answers
122 views
I have a Parent RadGrid, you can click on the Rows and the child rad grid will appear. You can then go and add items to the child grid, once a new item is inserted I need to rebind the parent grid but still maintain the originally selected row.

I have the folllowing code, it rebinds the parent gird but i lose my selected row.

Protected Sub rgRiskAssessmentItems_ItemInserted(ByVal source As Object, ByVal e As Telerik.Web.UI.GridInsertedEventArgs) Handles rgRiskAssessmentItems.ItemInserted
        If Not e.Exception Is Nothing Then
            e.ExceptionHandled = True
            e.KeepInInsertMode = True
            SetMessage("Risk Assessment Item cannot be inserted. Reason: " + e.Exception.Message)
        Else
            SetMessage("New Risk Assessment Item has been added!")
            'Make sure we get a submit button in the top grid after adding an item to the lower grid
            rgRiskAssessment.Rebind()
            'rgRiskAssessmentItems.Rebind()
 
        End If
 
    End Sub

Thanks for reading..
Pavlina
Telerik team
 answered on 05 Apr 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?