Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
56 views
Hi,
i've into web page a radupload...now in my vb code:

Protected Sub Imgbtnesci_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtnesci.Click
    Me.ClientScript.RegisterStartupScript(Me.GetType, "", "Close_and_load();", True)
End Sub
 
Protected Sub CustomValidator1_ServerValidate(source As Object, e As System.Web.UI.WebControls.ServerValidateEventArgs) Handles CustomValidator1.ServerValidate
    e.IsValid = (RadUpload1.InvalidFiles.Count = 0)
End Sub
 
Protected _image As String
Private Sub Imgbtnupload_Click(sender As Object, e As System.Web.UI.ImageClickEventArgs) Handles Imgbtnupload.Click
    If RadUpload1.UploadedFiles.Count > 0 Then
        _image = "/public/image_profile/" & RadUpload1.UploadedFiles.Item(0).FileName
        Label2.Text = "/public/image_profile/" & RadUpload1.UploadedFiles.Item(0).FileName
    Else
        Label2.Visible = True
    End If
End Sub
 
function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}
function Close_and_load() {
       GetRadWindow().close();
}

when i click on button imgbtnesci, the upload is also, however you need to start only if I click on the button Imgbtnload...
how do it?

Bye
Plamen
Telerik team
 answered on 04 Dec 2012
1 answer
63 views
i used RadAsyncUpload Control in my code and its working fine with all browsers using windows 7 but when i tested this on windows xp using IE8 browser its not working.   actually the problem is  when i want to upload files than file dialog not opening and I could not browser files. so please tell me what settings i need to do for work in Windows Xp and 2012.1.215.40  version i am using for telerik controls.



<telerik:RadAsyncUpload ID="aUpload" runat="server" AllowedFileExtensions="pdf,txt,doc,docx,png,jpg,jpeg" EnableFileInputSkinning="false" ClientIDMode="AutoID" OnClientFileUploadFailed="fileUploadFailed" MultipleFileSelection="Disabled"
                        OnClientValidationFailed="fileValidationFailed" OnClientFileUploadRemoved="fileUploadRemoved" AutoAddFileInputs="false"
                        EnableInlineProgress="true" InitialFileInputsCount="1" MaxFileInputsCount="1"
                        UploadedFilesRendering="BelowFileInput" InputSize="35" Width="300px" MaxFileSize="2097152"
                        OnClientFileUploaded="fileUploaded" OnFileUploaded="asyncFileUploaded" PostbackTriggers="rToolBarDocument">
                        
              /telerik:RadAsyncUpload>
Peter Filipov
Telerik team
 answered on 04 Dec 2012
7 answers
209 views
Hello Telerik team,

I have some troubles in difference browsers! There are difference errors when I move Appointment up-down or in other column.
As an example, look at the attached screenshot.

Please, help to resolve those problems!


Boyan Dimitrov
Telerik team
 answered on 04 Dec 2012
3 answers
285 views
Hello,
I am using item template in radlistview control to create items of list.
I am firing item command on item click. I want that when user click on item then that item looks highlighted on web page. How I will achieve that.
thanks.
Eyup
Telerik team
 answered on 04 Dec 2012
5 answers
173 views
Hi there, 

I recently upgraded my RadControls to (Q1 2011 I believe?)  I noticed a problem with the RadEditor while working in Chrome where all my class names got changed to lower-case and thus when I tried to apply a style the style wouldn't work.   I first noticed this error when I try to apply a class to a order list item and it worked fine in IE but not in Chrome.  The class names I'm using in my CSS have mix-casing (e.g.  lowerAlpha) and in Chrome the RadEditor was inserting (loweralpha).  Please help.

Thanks
Ivan
Top achievements
Rank 1
 answered on 04 Dec 2012
1 answer
80 views
I'm would like to expand the use of a RadAjaxLoadingPanel with further information, like "Loading Customers from Database", "Fetching Invoice Data" in a single page load.

What I'm trying to do is to show the user what exactly the Server is doing in a long loading page with extreme amount of information. So at first it would show "Loading Customers", then, after a change on the server, it should somehow change the message for the user to "Loading Invoices"

Is this even possible with RadAjaxLoadingPanel or Ajax in general?
Eyup
Telerik team
 answered on 04 Dec 2012
9 answers
151 views
Hi All,

I have a requirement to implement in a grid and the grid should support the below features.
1. Multi Row Edit - The user should be able to edit all the columns in all the rows in a grid at any point of time. There shouldn't be any Edit button on each row to make the row editable or something similar to this.
2. Dynamic Column generation - Based on a Start Date and End Date, there should be way to dynamically generate Columns for Each month in a year within the time frame (Start Date and End Date). There will also be bound columns addition to these columns. (i.e.,) There will be a Employee Name, Employee Address columns as bound columns and depending on the Period of Service say June 2011 to June 2012 we need to generate columns for each month say June 2011, July 2011, thru May 2012, June 2012. For Every row, this column generation will be the same as per my requirement. i.e., the time span will NOT be different for different rows.
3. When I navigate to the Last column in a row in the grid and if I press Tab a new row should be created
4. Sorting should work on all the column in the grid
5. Pagination should also work. There should be a drop down for the user to choose the page size of the grid
6. Filter on Every column. Filter is to be like Excel-Like Filter. i.e., populating the distinct values from a column and populating these values in a dropdown and displaying it in the corresponding header of that column.
7. Ways to carry out the different types of validations and to display proper Error messages to the incorrect values that the user keys in to the columns
8. Ways to identifying the modified column values alone when there are more number of rows in the grid
9. Finally, we are supposed to use Oracle Database for development.So, any guidelines to be in compatible with the database.

Please do reply to this thread with whichever information you feel will help us to achieve the above requirements. We are in the process of evaluating Telerik RadGrid and if all the above are achievable, then we will be purchasing a licensed version.

Thanks Shri Prakash
Eyup
Telerik team
 answered on 04 Dec 2012
5 answers
175 views
I have a simple grid that displays master records and their related child records.  The following is my grid:

<telerik:RadGrid runat="server" ID="rgGrid1" AutoGenerateHierarchy="true" Skin="RAPIDSKIN"  EnableEmbeddedSkins="false" data-role="none" AutoGenerateColumns="false">
   <ClientSettings AllowExpandCollapse="true">
      <ClientEvents OnRowClick="RowClick" />
   </ClientSettings>
   <MasterTableView Name="Master">
      <DetailTables>
         <telerik:GridTableView>
            <Columns>
               <telerik:GridBoundColumn DataField="RISK_STATE" HeaderText="EXPOSURE" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
               <telerik:GridBoundColumn DataField="PREMIUM" HeaderText="PREMIUM" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" DataType="System.Decimal" DataFormatString="{0:c}" ItemStyle-HorizontalAlign="Right"></telerik:GridBoundColumn>
            </Columns>
         </telerik:GridTableView>
      </DetailTables>
         <Columns>
            <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Left" DataField="HOME_STATE" HeaderText="HOME STATE" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Left"></telerik:GridBoundColumn>
            <telerik:GridBoundColumn ItemStyle-HorizontalAlign="Right" DataField="PREMIUM" HeaderText="PREMIUM" HeaderStyle-Font-Bold="true" HeaderStyle-HorizontalAlign="Right" DataType="System.Decimal" DataFormatString="{0:c}"></telerik:GridBoundColumn>
         </Columns>
   </MasterTableView>
</telerik:RadGrid>

In the NeedDataSource event of the grid, I retrieve a Dataset from the database.  The Dataset contains 2 Datatables, and once it is retrieved I set a relation on the primary column of each Datatable using a DataRelation, then set the grid's DataSource equal to the Dataset.  This all works fine - my grid is shown with all the parent records displayed - and when I click to expand any parent record it sucessfully displays that rows detail records.

The problem is, the grid posts back each time a parent is expanded - which I don't want.  The Dataset is small enough that I want the entire grid loaded and set up to make expanding and collapsing parent records faster and smoother with no screen refresh.  I tried adding the HierarchyLoadMode="Client" to both the MasterTableView tag as well as the telerik:GridTableView tag within the DetailTables tag - no matter where I put it it doesn't work - what I get with HierarchyLoadMode="Client" is a grid that displays all my parent records, and when I expand any parent record I see an empty detail grid stating "No records to display"

After reading up on the HierarchyLoadMode="Client" option I thought it would force the grid to load all parent and child records up front so there would be no need to post back on expanding parent records but I must be missing something - what else do I need to set up to allow this to work?

TIA
Antonio Stoilkov
Telerik team
 answered on 04 Dec 2012
1 answer
98 views
We have a simple bar chart that we would like to be able to put the xaxis labels and hash marks on top instead of on teh bottom. Is this possible? If so, can someone point me to some example code?
Thanks ... Ed
Princy
Top achievements
Rank 2
 answered on 04 Dec 2012
1 answer
100 views
We have a problem where in IE (6,7,8) RadGrid response is rather slow and we're trying to improve performance. I understand that IE has a slower JS processor, but I think the major issue we have is that for each paging/filtering request, OnNeedDataSource is called and that takes a chunk of time. My question is whether we can have the data pulled once on page load and paging/filtering done on the client side to improve performance?
Jayesh Goyani
Top achievements
Rank 2
 answered on 04 Dec 2012
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?