Telerik Forums
UI for ASP.NET AJAX Forum
1 answer
188 views
Hi,

Before I begin, I want to say that I searched for this problem in the entire forum and googled it long in order to come up with a solution. But, no luck...

May be the Telerik guys can help me with the problem.

In the AsyncUpload - Binary Images And RadAsyncUpload in Grid demo, when I click on "Add New Record", then "Save" button, the validator for RadAsyncUpload control works. I click "Cancel", and then click on "Add New Record" again, there is no validator for AsyncUpload control anymore (validators for textboxes work OK). I tried that with the latest version 2013 Q1 and came up with the same result.

What I Expected...

I expected the RadAsnycUpload's custom validator to work as any other control validator (For textboxes, for example). No matter if I reload the page, or click Cancel to close the insert form, the error message should have appeared and prevented me closing the insert form.

In my project, I am working on multiple RadAsyncUpload controls in the RadGrid EditTemplate. At least one for video file and another for cover pictures for that video file. When a user upload the video (that takes enough time to get angry if it's needed to be uploaded again) and click OK before uploading the image file, query doesn't work and insert form closes. I thought to prevent that with validator from client side, but as I mentioned, it's not working as I expected. May be that is something nobody thought would be important but in the sake of creating a good application, I would like to know if there is any way to make custom validator for asyncupload control work fine in a RadGrid template.

The js code I used is the same with the demo codes, but I am pasting here anyway.

<telerik:RadCodeBlock ID="RadCodeBlock2" runat="server">
    <script type="text/javascript">
        var uploadedFilesCount = 0;
        var isEditMode;
        function validateRadUpload(source, e) {
            // When the RadGrid is in Edit mode the user is not obliged to upload file.
            if (isEditMode == null || isEditMode == undefined) {
                e.IsValid = false;
 
                if (uploadedFilesCount > 0) {
                    e.IsValid = true;
                }
            }
            isEditMode = null;
        }
 
        function OnClientFileUploaded(sender, eventArgs) {
            uploadedFilesCount++;
        }
    </script>
</telerik:RadCodeBlock>

I would appreciate if you lead me to the right way.

Thanks in advance!
Hristo Valyavicharski
Telerik team
 answered on 09 Apr 2013
2 answers
96 views
Dear dude
I want to add verification code to appointment when user want to insert new appointment get verification code and in edit for it should enter verification to allow editing. but when I add verification field to appointment table I got an error:
DataBinding: 'Telerik.Web.UI.Appointment' does not contain a property with the name 'Verification'.
shahab
Top achievements
Rank 1
 answered on 09 Apr 2013
1 answer
117 views
I am wondering if I can have a RadAsyncUpload control in an iframe and a dropzone in the parent document? If so, how should I wire them up?

See attached for detailed illustration.
Bozhidar
Telerik team
 answered on 09 Apr 2013
1 answer
76 views
Hi Telerik,

We have a serious issue after upgrading your Telerik version.
Image Button in the previous version there is no issue while mouse hover. In the new version the image is missing while mouse hover state.
Misho
Telerik team
 answered on 09 Apr 2013
1 answer
147 views
Dear Telerik Support Team,

I am reaching out to you to seek your assistance in regards to RadGridView.

The issue is that I can edit a row after the second trial. When the row is double-clicked for the first time to update, it allows me to use edit-textbox to edit. However, the number in the cell will remain the same. From the second time to try updating, it works. In other words, I can update the cells in RadGridView after double-cliking on a row from the second time.

Simply, I copied the sample code available on your website and pasted it to a .ascx file in a new sharepoint empty project. (the code is available at  http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx )

In ascx, 
The changes I made to the original code is the columns and DataSource that refer to my own data in my DB.
Also I removed the below lines, as one script is only allowed in a page.
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
I also removed  <form id="form1" runat="server"></form>

It would be highly appreciated if you could help me with this issue.

Best regards,

Marin
Telerik team
 answered on 09 Apr 2013
1 answer
117 views
Dear Telerik Support Team,

I am reaching out to you to seek your assistance in regards to RadGridView.

The issue is that I can edit a row after the second trial. When the row is double-clicked for the first time to update, it allows me to use edit-textbox to edit. However, the number in the cell will remain the same. From the second time to try updating, it works. In other words, I can update the cells in RadGridView after double-cliking on a row from the second time.

Simply, I copied the sample code available on your website and pasted it to a .ascx file in a new sharepoint empty project. (the code is available at  http://demos.telerik.com/aspnet-ajax/grid/examples/dataediting/editondblclick/defaultcs.aspx )

In ascx, 
The changes I made to the original code is the columns and DataSource that refer to my own data in my DB.
Also I removed the below lines, as one script is only allowed in a page.
<telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
I also removed  <form id="form1" runat="server"></form>

It would be highly appreciated if you could help me with this issue.

Best regards,

Marin
Telerik team
 answered on 09 Apr 2013
1 answer
109 views
Hi

I am not well versed in java script. From client click of a RadButton, How to delete all the tokens in a Autocompletebox.

Thankyou,
Sameer
Princy
Top achievements
Rank 2
 answered on 09 Apr 2013
1 answer
230 views
I have a RadAsyncUpload in repeater. The problem is that when the upload button is clicked (which is in the same row of the repeater), there is no file uploaded after the postback. my code is:

protected void rptAttendeeHeadShot_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
...
RadAsyncUpload fileUploadHeadShot = (RadAsyncUpload)e.Item.FindControl("fileUploadHeadShot");
fileUploadHeadShot.ID = "fileUploadHeadShot_" + (e.Item.ItemIndex + 1);
fileUploadHeadShot.ClientIDMode = ClientIDMode.Static;
...
}

protected void rptAttendeeHeadShot_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
...
RadAsyncUpload fileUploadHeadShot = (RadAsyncUpload)e.Item.FindControl("fileUploadHeadShot");
string[] validExtensions = { ".jpg", ".jpeg", ".png", ".gif", ".bmp" };
                if (fileUploadHeadShot.UploadedFiles.Count > 0)
                {
}
...
}

and in the repeater:
<telerik:RadAsyncUpload ID="fileUploadHeadShot" runat="server" MultipleFileSelection="Disabled"
                                            MaxFileInputsCount="1" HttpHandlerUrl="~/CustomHandler.ashx" MaxFileSize="52428801"
                                            OnClientFilesUploaded="headShotOnchange" OnClientFileUploadRemoved="headShotOnRemove"
                                            >
                                        </telerik:RadAsyncUpload>
Peter Filipov
Telerik team
 answered on 09 Apr 2013
1 answer
102 views
Hi All,

I have Grid with country column here i need to apply filter for this column and also i need to make that filter as Combo Box.
How to bind data for that but not static data.How to implement this?

Thanks in Advance..!
Princy
Top achievements
Rank 2
 answered on 09 Apr 2013
4 answers
158 views
I have a radgrid and it has dynamically added columns using following code. I have phone number column and I want to apply dataformatstring for this column but it is not getting reflected. What is that I am missing here?

GridBoundColumn boundColumn1 = new GridBoundColumn();
RadGrid1.MasterTableView.Columns.Add(boundColumn1);
boundColumn1.ItemStyle.Wrap = false;
boundColumn1.DataField = "PhoneNumber";
boundColumn1.UniqueName = "PhoneNumber";
boundColumn1.SortExpression = "PhoneNumber";
boundColumn1.HeaderText = "Phone Number";
boundColumn1.AllowFiltering = AllowFiltering;
boundColumn1.ShowFilterIcon = false;
boundColumn1.AutoPostBackOnFilter = true;
boundColumn1.DataFormatString = "{0:(###)###-###}";

Please help

Thank you
Andrey
Telerik team
 answered on 09 Apr 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?