Telerik Forums
UI for ASP.NET AJAX Forum
3 answers
344 views
I'm writing to ask how best to read folders and/or files from a populated RadFileExplorer control, programmatically with C#;

Each day, date sensitive .pdf and .xls files are uploaded, via the RadFileExplorer;  On subsequent days, the previous days .pdf and .xls are manually moved to an Archive folder - also contained in the RadFileExplorer;  

The objective is to eliminate the manual process of moving files, and programmatically accomplish the same task;     

Any insight is appreciated;  Best regards - Rob

<telerik:RadFileExplorer ID="RadFileExplorer1" Runat="server" Width="100%" OnClientItemSelected="OnClientItemSelected"
                    ExplorerMode="FileTree" 
                    OnClientLoad="OnFileExplorerLoad" 
                        VisibleControls="TreeView, Grid, Toolbar, ContextMenus" 
                    TreePaneWidth="100%" BorderColor="Transparent" BorderStyle="None" 
                    EnableCopy="True" Height="600px" >
                    <Configuration ViewPaths="~/Customers" UploadPaths="~/Customers/"
                        DeletePaths="~/Customers/" MaxUploadFileSize="2147483647" />
                </telerik:RadFileExplorer>
Dobromir
Telerik team
 answered on 14 May 2012
2 answers
158 views
Hi,

How can I Remove a Column by drag and drop it outside the contol? Is there a Column Chosser window to re-Add/Show the hidden columns?

thank you
Mohammad
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
116 views
Hi,

I have radupload setup and working fine on iis7.
I have all the maxfilesize , requestfiltering and so on setup to their maximum values.
I am using your sample java script to determine the file size and cancel if the file is over 1GB is size:

 
function checkUploadedFilesSize(progressArea, args) { 
          if (!progressArea.confirmed &&
  args.get_progressData().RadUpload.RequestSize > 1073741829) {
              document.getElementById('Label1').innerHTML = "max file size exceeded";
                  progressArea.cancelRequest();
               
          }
      }

its all working fine for files up to about 2GB is size, the java script catcthesh them and cancels them, however for files over 2GB in size nothing happens, javascript never fires,browser just load until file not found is displayed.
It this something that can be fixed ?

Also the above javascript doesnt seem to be working in Google Chrome browser for whatever reason..? Any ideas?
Plamen
Telerik team
 answered on 14 May 2012
1 answer
126 views
HI,

I am having an issue with the pager and radlistview.

below is my code, the problem is the First Page - Previous Page - Next Page - Last Page and Page Size controls dont work, however the direct page number buttons do.

I have striped out the Ajax component and the problem still exists.

Thanks,

Xavier.

<telerik:RadListView ID="rlvStaffNotes" ViewStateMode="Enabled" AllowPaging="True" runat="server" CssClass="ui-staffnote-container" ItemPlaceholderID="staffNotesPlaceHolder"
                            OnNeedDataSource="rlvStaffNotes_NeedDataSource">
                                <LayoutTemplate>
                                    <fieldset>
                                        <asp:Panel ID="staffNotesPlaceHolder" runat="server" />
                                        <telerik:RadDataPager ID="rpgrStaffNotes" runat="server" AllowSorting="true" PagedControlID="rlvStaffNotes" PageSize="5" ViewStateMode="Enabled">
                                            <Fields>
                                                <telerik:RadDataPagerButtonField FieldType="FirstPrev" />
                                                <telerik:RadDataPagerButtonField FieldType="Numeric" />
                                                <telerik:RadDataPagerButtonField FieldType="NextLast" />
                                                <telerik:RadDataPagerPageSizeField PageSizeText="Page size: " />
                                                <telerik:RadDataPagerTemplatePageField>
                                                    <PagerTemplate>
                                                        <div style="float: right">
                                                            <b>
                                                                Items
                                                                <asp:Label runat="server" ID="CurrentPageLabel" Text="<%# Container.Owner.StartRowIndex+1%>" />
                                                                to
                                                                <asp:Label runat="server" ID="TotalPagesLabel" Text="<%# Container.Owner.TotalRowCount > (Container.Owner.StartRowIndex+Container.Owner.PageSize) ? Container.Owner.StartRowIndex+Container.Owner.PageSize : Container.Owner.TotalRowCount %>" />
                                                                of
                                                                <asp:Label runat="server" ID="TotalItemsLabel" Text="<%# Container.Owner.TotalRowCount%>" />
                                                                <br />
                                                            </b>
                                                        </div>
                                                    </PagerTemplate>
                                                </telerik:RadDataPagerTemplatePageField>
                                            </Fields>
                                        </telerik:RadDataPager>
                                    </fieldset>
                                </LayoutTemplate>
                                <ItemTemplate>
                                    <div class="ui-staffnote-item">
                                        <div style="clear:both; position:relative;">
                                            <span class="ui-staffnote-created">
                                                <asp:Label runat="server" ID="created" Text='<%# DataBinder.Eval(Container.DataItem, "Created") %>' />
                                            </span>
                                            <span class="ui-staffnote-type">
                                                <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Type")%>' />
                                            </span>
                                            <span class="ui-staffnote-createdby">
                                                <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "CreatedBy")%>' />
                                            </span>
                                        </div>
                                        <div style="clear:both; position:relative;">
                                            <span class="ui-staffnote-title">
                                                <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Title").ToString().Trim()%>' />
                                            </span
                                            <span class="ui-staffnote-notation">
                                                <asp:Label runat="server" Text='<%# DataBinder.Eval(Container.DataItem, "Notation").ToString().Trim()%>' />
                                            </span>
                                        </div>
                                        <div style="clear:both; position:relative;"> </div>
                                    </div>
                                </ItemTemplate>
                            </telerik:RadListView>
Tsvetina
Telerik team
 answered on 14 May 2012
1 answer
182 views
I am attempting to show a radWindow based on a combobox selection, and nothing is happening.

I have a radWindowManager on the page:

<telerik:RadWindowManager ID="RadWindowManager1" runat="server"
        EnableViewState="False">
    </telerik:RadWindowManager>

and the code behind is simply:

Protected Sub list_State_SelectedIndexChanged(sender As Object, e As Telerik.Web.UI.RadComboBoxSelectedIndexChangedEventArgs) Handles list_State.SelectedIndexChanged
 
        If list_State.SelectedValue = "NV" Then
            Dim url As String = String.Format("nevada-alert.aspx")
            Dim NewWindow As RadWindow = New RadWindow()
            NewWindow.ID = "win_ServiceState"
            NewWindow.Title = "Nevada is currently offline."
            NewWindow.Height = 330
            NewWindow.Width = 420
            NewWindow.ReloadOnShow = True
            NewWindow.Modal = True
            NewWindow.ShowContentDuringLoad = False
            NewWindow.KeepInScreenBounds = True
            NewWindow.VisibleOnPageLoad = True
            NewWindow.NavigateUrl = url
            RadWindowManager1.Windows.Add(NewWindow)
        End If
 
    End Sub

Shouldn't that be sufficient in launching the window?
Marin Bratanov
Telerik team
 answered on 14 May 2012
2 answers
218 views
I am not sure why this does not work ...
I get an error on the args.getvalue() of Object doesn't support property or method 'get_value'


<telerik:GridBoundColumn DataField="Name" FilterControlAltText="Filter Name column"
    FooterText="<h6>Count: " Aggregate="Count" AutoPostBackOnFilter="true" CurrentFilterFunction="StartsWith"
    ShowFilterIcon="False" HeaderText="Name" SortExpression="Name" UniqueName="Name"
    FooterStyle-HorizontalAlign="Left" AllowSorting="true" AllowFiltering="true"
    ItemStyle-HorizontalAlign="Left" ItemStyle-Wrap="false">
    <FilterTemplate>
        <telerik:RadTextBox ID="RadName" runat="server" Width="100px" ClientEvents-OnValueChanged="NameChanged">
        </telerik:RadTextBox>
        <telerik:RadScriptBlock ID="RadScriptBlock2" runat="server">
            <script type="text/javascript">
                function NameChanged(sender, args) {
                    var txtbox = $find("<%# ((GridItem)Container).OwnerTableView.ClientID %>");
                    txtbox.filter("Name", args.get_value(), "StartsWith");
                }
            </script>
        </telerik:RadScriptBlock>
    </FilterTemplate>
</telerik:GridBoundColumn>
Ken
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
165 views
For some reason the drag and drop functionality does not seem to work in the timeline view. I can delete the appointment but AppointmentUpdate event does not fire. What could be wrong? Thanks
Peter
Telerik team
 answered on 14 May 2012
1 answer
65 views

I am stuck in a problem with a Radwindow pop-up and need your help.

On Rad Window, when I click on a button, a new pop -up opens and hides behind the previous Radwindow.  In this
 case the javascript code written below

 

 returns incorrect parent.:

 

 

 

var parentPane = parent.getContentPane();

 

 

 

var parentForm = parentPane.getExtContentElement().contentWindow.document;

 

 

 

var TextBox = parentForm.getElementById(TextBoxID);

 

 

Ideally, the parent should be the Rad window from which the new  pop-up was opened but here it is showing "Home.aspx" as its
 parent. I tried window.opener() and other probable workarounds but none of them worked.

Marin Bratanov
Telerik team
 answered on 14 May 2012
1 answer
108 views
I have no idea why this would be, but it seems rather routine.

I have a combobox that displays all of the US States, and it populates fine.

<telerik:RadComboBox ID="StateList" Runat="server"
               Skin="Windows7" Width="150px"
                   ViewStateMode="Enabled"
               EmptyMessage="State/Region" ExpandAnimation-Type="InOutQuad"
                                   BorderStyle="None" AppendDataBoundItems="True"
                                   DataSourceID="sqlStates" DataTextField="StateName"
                                   DataValueField="StateAbbr" CausesValidation="False">
               <Items>
               <telerik:RadComboBoxItem runat="server" Text="" Selected="true"
                       Value="" />
               </Items>
                       <ExpandAnimation Type="InOutQuad" />
           </telerik:RadComboBox>

However, when I try to get the value from the btn_click event, it is empty.... why???

Protected Sub btn_submit_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles btn_submit.Click
 
Dim State as String = StateList.SelectedValue
'shows empty every time
'if I plug in a standard ASP.net DropDownList and tie it to the same SQL data source, it works fine.
 
End Sub

Shinu
Top achievements
Rank 2
 answered on 14 May 2012
2 answers
88 views
I replaced a group of TextBoxes with RadTextBoxes
when testing on IE9 I noticed that the bottom of the data is cropped
none of the other browsers do this
any suggestions on how to "fix"
Tsvetina
Telerik team
 answered on 14 May 2012
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?