Telerik Forums
UI for ASP.NET AJAX Forum
2 answers
67 views
I have a telerik grid with lots of rows. i have a delete button:
<telerik:GridButtonColumn ButtonType="ImageButton"
FilterControlAltText="Filter column column" UniqueName="GridButtonDelete" CommandName="Delete">

I initially had code in the postbackurl and after the delete button was clicked I successfuly went to another page and did what i had to do. But I decided to add a client side confirmation
(item["GridButtonDelete"].Controls[0] as ImageButton).OnClientClick = "return confirm ('OK to Delete?');";
Once the confirmation was added the postbackurl of the delete button does not fire.
what am i doing wrong?
Saro
Top achievements
Rank 1
 answered on 14 May 2012
1 answer
82 views
It would appear that in 2012.1.215.40, OnClientSelectedIndexChanging does not hit when the selection is changed via keyboard rather than mouse. I have not rolled back to the previous version to test the previous behavior--but all of a sudden we have an application in which data which should not be edited can be edited. I'm thinking this is a SERIOUS BREAKING BUG. (Note, we have AllowCustomText=false.) Please advise of any workaround. Meantime I'm going to try to block all characters using onKeyDown per this sample:
http://www.telerik.com/help/aspnet-ajax/combobox-prevent-typing-particular-characters.html 
However, it has to be set in code for every single RadCombo--so a very ugly solution if it works.

I'll put this in a support ticket as well.
Ivana
Telerik team
 answered on 14 May 2012
16 answers
2.3K+ views

Hi

I have 2 questions that I need some help with if possible.

1)

I have implemented the RadAsyncUpload conrol in my web application to allow a user to upload files to the server. I would like to clear the uplaoded file list above the select button and this uploaded files in Javascript. Is this possible?

2)

How do a person code for when a file already exists using the RadAsyncUpload conrol?

Thank you
Fred

Kartar
Top achievements
Rank 1
 answered on 14 May 2012
3 answers
297 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
117 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
94 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
105 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
151 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
200 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
139 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
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?