Telerik Forums
UI for ASP.NET AJAX Forum
29 answers
1.7K+ views
Hi,
I have two radlistboxes on the page, where we could move items from one to the other. There's a Radcombobox which comes after this set of radlistboxes which goes for an autopostback.
Now, if I choose one item and move it to the other radlistbox and select an item from radcombobox which goes for a postback and save - it all works fine. But if I choose the option to add all items in a click and after the radcombobox postback, i get the following error.
[ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index]
   System.Collections.ArrayList.get_Item(Int32 index) +10064164
   System.Web.UI.StateManagedCollection.System.Collections.IList.get_Item(Int32 index) +17
   Telerik.Web.UI.ControlItemCollection.get_Item(Int32 index) +22
   Telerik.Web.UI.ClientStateLogPlayer`1.Remove(ControlItemCollection items, Int32 index) +58
   Telerik.Web.UI.ClientStateLogPlayer`1.Play(ClientStateLogEntry entry) +453
   Telerik.Web.UI.ClientStateLogPlayer`1.Play(IEnumerable`1 clientStateLogEntry) +165
   Telerik.Web.UI.RadListBox.LoadClientState(RadListBoxClientState clientState) +66
   Telerik.Web.UI.RadListBox.LoadPostData(String postDataKey, NameValueCollection postCollection) +230
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +945
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2071

I cannot debug as well, as it doesnt hit any breakpoints. Fails before that.

 I get the same error even if I choose all items in the left radlistbox one by one to the right radlistbox as well. Basically if the radlistbox is empty, and if the page goes for a postback, I get this error. If the page doesnt go for a postback - all good.  So on postback, radlistbox is loosing its clientstate (dont know, am a newbie).
PS: Even after the postback, the state of the radlistboxes are maintained , ie. all items moved or unmoved remain the same.
<td>
<telerik:RadListBox ID="lstAvailableItems" ButtonSettings-Position="Right" EmptyMessage="None"
AllowTransferOnDoubleClick="true" EnableDragAndDrop="true" PersistClientChanges="true" ViewStateMode="Disabled"
Height="100px" AllowTransfer="true" TransferMode="Move" TransferToID="lstSelectedItems" SelectionMode="Single"
Width="200px" runat="server">                               
</telerik:RadListBox>
 </td>
 <td>
 <telerik:RadListBox ID="lstSelectedItems" AllowTransferOnDoubleClick="true" EmptyMessage="None" PersistClientChanges="true" EnableDragAndDrop="true" Height="100px" Width="200px" SelectionMode="Single" ViewStateMode="Disabled" runat="server">                               
</telerik:RadListBox>
</td>

Keith
Top achievements
Rank 1
 answered on 15 Jun 2018
5 answers
209 views
I just updated my application to the 2014_1_401 release. It works great on my PC in IE and Chrome.

When I run it on my Android tablet in the Chrome Browser, selection of items in the Treeview isn't working properly. The newly selected items shows selected by previous items don't unselect. Selection doesn't cause the app to post back.

I was thinking maybe there was just some sticky javascript files left over on the tablet. I dumped the cache and local data but this didn't help.

This was working fine with the previous version of the product.

Several different users have confirmed this issue with different Android devices.

--Mark
Peter Milchev
Telerik team
 answered on 15 Jun 2018
1 answer
150 views

Hi, how can I disable de Zebra effect in the radtreelist. Is there any setting like "<ClientSettings EnableAlternatingItems="false">" of the RAdGrid?

 

If not, How can I disable the Zebra Effect?

 

Thanks

Alejandro

Attila Antal
Telerik team
 answered on 15 Jun 2018
3 answers
110 views

     Hello-

I am using RadScheduler with the following options:

<telerik:RadScheduler runat="server" ID="RadSchedulerControl" 
    SelectedView="MonthView"
    OverflowBehavior="Expand" 
    ReadOnly="true" 
    ShowHoursColumn="false" 
    ShowViewTabs="false" 
    MonthView-VisibleAppointmentsPerDay="4" 
    NumberOfHoveredRows="0"
    >
    <AppointmentTemplate>
        <a id="calItem" class='<%#Eval("ButtonClass")%> tipme' title="" href='<%#Eval("SubjectLink")%>' data-tooltipurl='<%# Eval("ToolTipUrl")%>' style="width:100%;white-space:inherit;" ><%# Eval("Subject")%></a>    <!--white-space:inherit allows button text wrap-->  
    </AppointmentTemplate>
    <ExportSettings>
        <Pdf StyleSheets="http://localhost:58582/styles/site.css, http://localhost:58582/styles/bootstrap.min.pagereports.css"/>
    </ExportSettings>
</telerik:RadScheduler>

The issue is that appointments are not using the styles listed in ExportSettings.  I know this because they are the wrong color and appointment text is truncated.  I have tried both relative paths and full paths.  What do I need to do differently?  Thanks!

Ben

Peter Milchev
Telerik team
 answered on 15 Jun 2018
2 answers
1.2K+ views

Hi,

 

I'm using RadAsyncUpload to upload multiple files.

when uploading i can see in fiddler extra data on the headers of the AJAX upload.

The file are uploaded correctly buy he problem is that I have a firewall that needs to get the correct filename that is uploaded and not a generic "blob"

Content-Disposition: form-data; name="%%File.48257279001171c9.2c36671da7f1b6c9482575de002e1f14.$Body.0.3D8"; filename="blob"
Content-Type: image/png
------WebKitFormBoundaryW0NQVOkdrfkYGWV3--

additional data:

1. using the older radupload (which does not support multiple files to be uploaded) sets the right name

2. we inspected the telerik dll and noticed that there are specific code lines that set the filename to blob.

Can you please advise on solution to the name setting ?

Thank you

 

Marin Bratanov
Telerik team
 answered on 14 Jun 2018
1 answer
76 views
Olá,

Gostaria que a coluna fosse formatada como moeda, 0.000,00 (Real / Brazil), quando exportada para o excel.

Desde já agradeço.
Fábio
Top achievements
Rank 1
Iron
 answered on 14 Jun 2018
0 answers
121 views

Hi,

I'm using the property  ClickToOpen="true" in the RadMenu, but it is not working. When I click, the menu doesn't open. When not using the ClickToOpen="true"  the menu works correctly. I checked the browser console and no error is logged. 

 

<telerik:RadMenu RenderMode="Lightweight" runat="server" ID="RadMenu4" Style="z-index: 7" EnableRoundedCorners="true" ShowToggleHandle="true" EnableImagePreloading="true"
                       EnableShadows="true" EnableTextHTMLEncoding="true" CausesValidation="False" OnItemDataBound="RadMenu4_ItemDataBound" ClickToOpen="true">
                       <DataBindings>
                           <telerik:RadMenuItemBinding DataMember="Menu"
                               TextField="PageTitle"
                               NavigateUrlField="ControllerURL" />
                       </DataBindings>
                   </telerik:RadMenu>

 

Version: 2016.3.1018.45

 

 

Thanks for your help.

Regula
Top achievements
Rank 1
 asked on 14 Jun 2018
0 answers
87 views

Hi guys,
I'm having trouble getting some kind of a feedback after the "Save" button.I've disabled the dialogbox with the 2 options and directly save the image on my server and it works fine, but I'm unable to set a label value to something like "Image saved" or whatever. I leave my javascript for the toggle. Another option would be to redirect my user whatever page, but can't get it done either.

Any ideas? 

Thanks!

function OnClientCommandExecuting(imEditor, eventArgs) {

        if (eventArgs.get_commandName() == 'Save') {
            imEditor.saveImageOnServer('', true);

            //Prevent the buil-in Save dialog to pop up
            imEditor.setToggleState('Save', false);
            imEditor.saveImageOnServer('', true);
           
            eventArgs.set_cancel(true);
           
        }
    }

TI
Top achievements
Rank 1
 asked on 14 Jun 2018
0 answers
78 views

Hi,

I can't export Excel file from Spreadsheet ,the js error message is "Error: Unable to get property '2' of undefined or null reference".How should I solve this question?

Jian
Top achievements
Rank 1
 asked on 14 Jun 2018
3 answers
272 views

Hi,

How do I add custom buttons that  can call my functions in addition to the buttons available in Image Editor? I tried to add this way:

<telerik:RadImageEditor ID="imgEditor" runat="server" OnImageLoading="RadImgEdt_ImageLoading"
            OnImageSaving="RadImgEdt_ImageSaving" OnClientSaved="disableTools">
            <Tools>
                <telerik:ImageEditorToolGroup>
                    <telerik:ImageEditorTool CommandName="Custom1" />
                    <telerik:ImageEditorTool CommandName="Custom2" />
                </telerik:ImageEditorToolGroup>
            </Tools>
        </telerik:RadImageEditor>

But this removed the standard default buttons.


Rumen
Telerik team
 answered on 13 Jun 2018
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?